Sign in
Lessons Learned
My drop-site for interesting snippets and tips. If it's useful to you as well, great!
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Add-Member
Certificates
credentials
DateTime
Foreach-Object
formatting
Get-Alias
Get-Member
Host.RawUI.WindowSize.Width
Join
MyInvocation
New-Alias
One-Liner
password
PowerShell
PowerShell for N00bs
PowerShell for Non-N00bs
RegEx
Sort-Object
TechTips
tutorial
Unix
Where-Object
WMI
X509
Archive
Archives
May 2013
(1)
April 2013
(4)
March 2013
(13)
February 2013
(3)
December 2012
(1)
November 2012
(1)
October 2012
(1)
August 2012
(5)
July 2012
(3)
February 2012
(2)
November 2011
(5)
October 2011
(6)
July 2011
(19)
June 2011
(14)
May 2010
(4)
March 2010
(1)
October 2009
(11)
September 2009
(11)
August 2009
(12)
MSDN Blogs
>
Lessons Learned
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Lessons Learned
TechTips: Debuggers, Process Explorer and Symbols
Posted
over 4 years ago
by
timdunn
0
Comments
Quick and dirty how-to for configuring symbols for Process Explorer and WinDbg. A knowledge capture from David Solomon's Windows OS Internals Lab, because I know I'll need this later....
Lessons Learned
PowerShell One-Liner: Decrypt-SecureString
Posted
over 4 years ago
by
timdunn
0
Comments
PSH> [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($securestring)) ...
Lessons Learned
PowerShell for Non-N00bs: Symlinks
Posted
over 4 years ago
by
timdunn
0
Comments
To review, we learned a few things: 1) PowerShell interacts with COM pretty cleanly. 2) WScript.Shell creates shortcuts. 3) My $profile has stuff I don't ever use. ...
Lessons Learned
Tech Tips: Command Prompt++ - the console.exe tool
Posted
over 4 years ago
by
timdunn
2
Comments
Enter console.exe, found at http://sourceforge.net/projects/console/. To be accurate, the project is actually named 'Console 2.0', explicitly called out here for search engine indexing. It provides a modern terminal interface, and allows other shells to be hosted, such as cmd.exe (default), PowerShell, and CygWin *sh....
Lessons Learned
PowerShell One-Liner: List Time Formats
Posted
over 4 years ago
by
timdunn
1
Comments
PSH> (Get-Date).GetDateTimeFormats() | & { begin { $i = 0; } process { "{0}`t$_" -f $i++ } }...
Lessons Learned
TechTips: Don't Recall, Delay (Your Email, That Is)
Posted
over 4 years ago
by
timdunn
0
Comments
Instead of saying 'oops' and sending out a recall request after re-reading the email and realizing I completely mis-read the intent (or other reasons behind office seppuku), I've told Outlook to queue my mail for a few minutes before sending....
Lessons Learned
PowerShell for N00bs 4: More Properties than a Monopoly Board
Posted
over 4 years ago
by
timdunn
0
Comments
To review, we learned a few things: 1) Get-Member allows us to inspect an object's class members. 2) We can specify MemberType to filter Get-Member's output. 3) Foreach-Object loops over each item in a list, such as an object's properties....
Lessons Learned
PowerShell One-Liner: Is this a debug build or not?
Posted
over 4 years ago
by
timdunn
0
Comments
PSH> (Get-Command kernel32.dll).FileVersionInfo.IsDebug...
Lessons Learned
PowerShell One-Liner: sort | uniq -c
Posted
over 4 years ago
by
timdunn
1
Comments
PSH> gc file | group | ft count, name | select -f 10 ...
Lessons Learned
PowerShell for Non-N00bs: My Script Outline
Posted
over 4 years ago
by
timdunn
1
Comments
In review, we learned a few things: 1) The PowerGUI Script Editor does syntax colouring, code block folding, and many more IDE features. And it's free. 2) A PowerShell script can have an enormous amount of UI functionality. It's command-line, but it's still a UI. 3) We really have no excuse to write scripts that are lacking help text, poorly factored, or lack code documentation....
Lessons Learned
PowerShell for N00bs 3: What's a.k.a. short for?
Posted
over 4 years ago
by
timdunn
0
Comments
To review, we learned three things: PowerShell comes with a bunch of aliases for common commands. 1) We can dump the list to see what it provides, and sort it by either alias or definition. 2) We can create more, so long as we don't overwrite existing ones. (More on that later.)...
Lessons Learned
PowerShell for N00bs 2: Power Under the Hood
Posted
over 4 years ago
by
timdunn
1
Comments
To review, we learned two things: 1) We can use Get-Member to inspect any object for its member set (methods and properties.) 2) We can override the default output formatter to overcome PowerShell's insistence on truncating lines....
Lessons Learned
PowerShell for Non-N00bs: How Much is That Character in the Window? (Or, How to Change Your Password Without Really Trying)
Posted
over 4 years ago
by
timdunn
2
Comments
To review, we learned a few things: 1) How to inspect a non-printing character that is fouling things up. 2) How to use cmdkey.exe to update cached credentials for Remote Desktop. 3) [byte][char] is a long way to say ord(). 4) When the PowerShell team said, "Saving the world, one one-liner at a time," they didn't limit themselves to 80 characters....
Lessons Learned
Automated Logins with PuTTY, Pagent, ssh and ssh-agent
Posted
over 4 years ago
by
timdunn
0
Comments
To review, we learned a few things: 1) We can automate our login with ssh-agent and PuTTY's pagent. 2) We scratched the surface of public/private key infrastructure. 3) Now we can automate tasks across Unix hosts without the security hole that is rsh....
Lessons Learned
PowerShell for N00bs 1: Hello, World
Posted
over 4 years ago
by
timdunn
0
Comments
To review, we learned two things: 1) "To execute an object, call its ToString() method, then print the value returned." This is useful because we know every object has a ToString() method, so we can safely print any chunk of data, er, object. 2) PowerShell, like an onion, has layers. ...
Lessons Learned
PowerShell for N00bs 0: References
Posted
over 4 years ago
by
timdunn
0
Comments
To review, we learned a few things: 1) There are a lot of PowerShell books out there. 2) Some won't apply to us at the beginner's level....
Page 5 of 5 (116 items)
1
2
3
4
5