Showing archive results for 2014

Oct 2, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Reverse Array

Doctor Scripto

Summary: Easily use Windows PowerShell to reverse an array.  How can I use Windows PowerShell to reverse an array?  Pipe the array to the Sort-Object cmdlet and use the –Descending switch, for example: $a = 1,2,3,4,5 $b = $a | sort -Descending

Scripting Guy!Windows PowerShellPowerTip
Oct 2, 2014
Post comments count0
Post likes count0

Use PowerShell to Create Local Groups

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating local groups. Microsoft Scripting Guy, Ed Wilson, is here. Creating a local group works exactly the same way as creating a local user account (see Use PowerShell to Create Local User Accounts). The process involves the following steps:   Notes  At this p...

Scripting Guy!Windows PowerShellother Directory Services
Oct 1, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Create Hash Table to Hold Lowercase Letters

Doctor Scripto

Summary: Use Windows PowerShell to create a hash table that holds all ASCII lowercase letters.  How can I use Windows PowerShell to create a hash table that holds all lowercase ASCII letters?  Create an empty ordered dictionary, and then use the add method to add the numbers 97-122            as key...

Scripting Guy!Windows PowerShellPowerTip
Sep 30, 2014
Post comments count0
Post likes count0

PowerTip: Retrieving Specific Items from Hash Table

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
Post comments count0
Post likes count0

Use PowerShell to Create Ordered Dictionary

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