Scripting Blog [archived]

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

PowerTip: Determine What Character a String Starts With

Summary: Use Windows PowerShell to determine what character a string starts with. (image)  How can I use Windows PowerShell to show me if a string starts with a particular letter (this also needs to be           case sensitive)? (image)  Use the StartsWith method from the String class...

Working with Users in Active Directory

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to work with users in Active Directory Domain Services. (image)  Hey, Scripting Guy! We are a rather diversified IT shop, but we have a heavy investment in Microsoft, and particularly in Active Directory. We use it for everything. I need to be able to update...

PowerTip: Convert All Uppercase String to Lowercase

Summary: Use Windows PowerShell to convert a string to all lowercase characters. (image)  How can I use Windows PowerShell to convert a string that is in all uppercase to all lowercase characters? (image)  Use the ToLower method from the String class: "STRING".ToLower() (image...

Create Users in Active Directory Without Using Module

Summary: Ed Wilson, Microsoft Scripting Guy, talks about creating users in Active Directory Domain Services without using a module. Hey, Scripting Guy! In my company, we do a lot of work with Active Directory, and my team is responsible for this. But not all of the administrators have the Active Directory module, so I cannot assume that it ...