Scripting Blog

A place to learn about PowerShell and share stories of automation

Keep Your PowerShell Versions Straight and Avoid Errors

Summary: Learn how to keep your Windows PowerShell versions straight, and avoid errors while using a one-line command to add computers to domain. Microsoft Scripting Guy, Ed Wilson, is here. Earlier this week I wrote Use PowerShell to Replace netdom Commands to Join the Domain. It turned out to be a very popular post. To be honest, however, ...

Use PowerShell to Collect, Store, and Parse IIS Log Data

Summary: Guest blogger, Microsoft PFE Chris Weaver, shows how to use Windows PowerShell to collect, store, and parse IIS log data. Microsoft Scripting Guy, Ed Wilson, is here. Today we have back with us Chris Weaver. I have been working at Microsoft since late 2008, during that time I have been an engineer within CSS, a SharePoint 2010 ...

Use PowerShell to Reset the Secure Channel on a Desktop

Summary: Learn three ways to use Windows PowerShell to reset the computer secure channel.  Hey, Scripting Guy! We have a problem with the computers in our computer classroom. We set up this classroom to teach new hires how to use our mission critical application. We are, however, not hiring as many people as we used to, and as a result it...

The Easy Way to Use PowerShell to Move Computer Accounts

Summary: Use the Active Directory module and Windows PowerShell to move computer accounts.  Hey, Scripting Guy! I need to figure out a way to manage computer accounts in Active Directory. We are running Windows Server 2008 R2. I have seen some VBScript scripts to manage computer accounts, but they are rather complicated. In fact...