Showing results for September 2014 - Scripting Blog [archived]

Sep 30, 2014
0
0

PowerTip: Retrieving Specific Items from Hash Table

Doctor Scripto
Doctor Scripto

Summary: Retrieve specific items from a Windows PowerShell hash table.  How can I use Windows PowerShell t retrieve specific values associated with specific keys in a hash table?  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   Name  &...

Scripting Guy!Windows PowerShellPowerTip
Sep 30, 2014
0
0

Use PowerShell to Create Ordered Dictionary

Doctor Scripto
Doctor Scripto

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 PowerShell...

Scripting Guy!Windows PowerShellscripting techniques
Sep 29, 2014
0
0

PowerTip: Find Syntax for Related PowerShell Cmdlets

Doctor Scripto
Doctor Scripto

Summary: Easily find the syntax for related Windows PowerShell cmdlets.  How can I easily find the syntax for related Windows PowerShell cmdlets with the least effort?  Use the Get-Command cmdlet, select the noun, and use the –syntax switch, for example: Get-Command -Noun csv -Syntax...

Scripting Guy!Windows PowerShellPowerTip
Sep 29, 2014
0
0

PowerShell and Active Directory Recycle Bin

Doctor Scripto
Doctor Scripto

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, North ...

Scripting Guy!Windows PowerShellActive Directory
Sep 28, 2014
0
0

PowerTip: Display Keys from Hash Table

Doctor Scripto
Doctor Scripto

Summary: Learn how to display keys from a hash table.  How can I display only the keys in a Windows PowerShell hash table?  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...

Scripting Guy!Windows PowerShellPowerTip

Feedback