Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell to Prepare for a Domain Upgrade

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to obtain operating system version information from domain controllers. Microsoft Scripting Guy, Ed Wilson, is here. The weather in Charlotte, North Carolina, has been a bit strange of late. There were tornados in Georgia recently, and the temperatures around ...

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

Use PowerShell to Replace netdom Commands to Join the Domain

Summary: Learn how to replace netdom commands with simple Windows PowerShell cmdlets to rename and reboot the computer or join the domain.  Hey, Scripting Guy! It seems that I have been hand building a number of computers recently for a computer lab we are setting up at work. I have written a batch file that uses netdom commands to join ...

Feedback usabilla icon