Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Adding Local Users to Local Groups

Summary: Learn how to use Windows PowerShell to add local users to local groups. Microsoft Scripting Guy, Ed Wilson, is here. Creating local user objects and local group objects is fine, but to be useful, I need to be able to add users to groups. When working with local accounts, I need to use the ADSI type accelerator to facilitate the way ...

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

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