Showing results for June 2015 - Scripting Blog [archived]

Jun 30, 2015
Post comments count0
Post likes count0

PowerTip: Determine What Character a String Starts With

Doctor Scripto
Doctor Scripto

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

Jun 30, 2015
Post comments count0
Post likes count0

Working with Users in Active Directory

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to work with users in Active Directory Domain Services.  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 user informa...

Jun 29, 2015
Post comments count1
Post likes count0

PowerTip: Convert All Uppercase String to Lowercase

Doctor Scripto
Doctor Scripto

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

Jun 29, 2015
Post comments count0
Post likes count0

Create Users in Active Directory Without Using Module

Doctor Scripto
Doctor Scripto

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 will be ...

Jun 28, 2015
Post comments count0
Post likes count0

PowerTip: Select Two Random Numbers from 20 Possibilities

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to select two random numbers from twenty possible numbers.  How can I use Windows PowerShell to select two of twenty attendees at user group to receive prizes?  Create a range of input numbers with the Get-Random cmdlet, then use the –Count parameter to retrieve     ...

Scripting Guy!Windows PowerShellscripting techniques