Scripting Blog [archived]

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

PowerTip: Use PowerShell to Get Inactive Active Directory Accounts

Summary: Use Windows PowerShell to get a report of inactive Active Directory accounts.(image) How can I use Windows PowerShell to get a report of inactive Active Directory accounts?(image) The Search-ADAccount cmdlet has a number of parameters and switches to help identify stale accounts: You can also use the -...

Domain Migration: Why We Need the Script

Summary: An anonymous blogger shares a domain migration script. Microsoft Scripting Guy, Ed Wilson, is here. Today’s guest blogger will remain anonymous due to privacy considerations at his company. This does not mean that his knowledge needs to remain undisclosed. Without further ado, here is a really nice guest blog… We are a ...

Use PowerShell to Log Changes to AD DS Attributes

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to log changes made to Active Directory Domain Services attribute values. (image)  Hey, Scripting Guy! We are in the process of merging a couple of resource domains, and we need to modify some user accounts prior to the move. I have been tasked with making ...

Use PowerShell to Change Sign-in Script and Profile Path

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to modify the sign-in script and profile path in Active Directory. Hey, Scripting Guy! We are in the middle of an Active Directory migration (primarily moving our client computers from Windows XP to Windows 8). We are also consolidating our file servers...

Add User Principal Names in Active Directory via PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to add user principal names to users in Active Directory. (image)  Hey, Scripting Guy! We are planning for our Active Directory migration, and as part of that, I am reviewing users. The problem is that I found out that whoever set up our original installation...