The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Summary: Retrieve specific items from a Windows PowerShell hash table.
(image) How can I use Windows PowerShell t retrieve specific values associated with specific keys in a hash table?
(image) Suppose you have a hash table such as this:
$d = @{a=28;b=29;c=30}
The keys and values associated with the hash table are:
PS C:> $d
&...
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create an ordered dictionary.
Microsoft Scripting Guy, Ed Wilson, is here. One of the really cool things that was introduced in Windows PowerShell 3.0, is that I can create an ordered dictionary. Basically, an ordered dictionary works like a Windows ...
Summary: Easily find the syntax for related Windows PowerShell cmdlets.
(image) How can I easily find the syntax for related Windows PowerShell cmdlets with the least effort?
(image) Use the Get-Command cmdlet, select the noun, and use the –syntax switch, for example:
Get-Command -Noun csv -Syntax
(image...
Summary: Guest blogger, Alan Kaplan, talks about using Windows PowerShell with the Active Directory Recycle Bin.
Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blog post written by Alan Kaplan. I met Alan several years ago when the Scripting Wife and Jim Christopher started the Windows PowerShell User Group in Charlotte, ...
Summary: Learn how to display keys from a hash table.
(image) How can I display only the keys in a Windows PowerShell hash table?
(image) Store the hash table in a variable, and then use the Keys property, for example:
$a = @{a=1;b=2;c=3;d=4}
$a.Keys
(image...