Scripting Blog [archived]

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

PowerTip: Use a PowerShell Cmdlet to Obtain AD DS Replication Information

Summary: Use a Windows PowerShell cmdlet from the ActiveDirectory module to obtain information about replication connections. (image)  I need to find information about the connections established for Active Directory replication. How can I use Windows PowerShell to do this? (image)  Use the Get-ADReplicationConnection ...

Use PowerShell to Simplify Removing Old ADM Files from AD DS

Summary: Two Microsoft PFEs talk about a Windows PowerShell script to remove old ADM files from Active Directory Domain Services (AD DS) after converting to a central store. Microsoft Scripting Guy, Ed Wilson, is here. Today is the first of a three-part series written by two Microsoft PFEs Mark Morowczynski and Tom Moser. First a little bit ...

PowerTip: Easily Create a Script that Creates PowerShell Aliases

Summary: Learn how to run a one-line Windows PowerShell command to create a Windows PowerShell script that automatically recreates all of your aliases. (image)  I want to create a script that will create a standardized set of Windows PowerShell aliases for my environment. I need to do this in a single line. How can I easily do this...

The PowerShell LoveOMatic Revisited for Valentine’s Day

Summary: Microsoft Scripting Guy, Ed Wilson, revisits the LoveOMatic, a Windows PowerShell Script that sends random email messages at random times. Microsoft Scripting Guy, Ed Wilson, is here. Several months ago, I wrote a Windows PowerShell script I called the LoveOMatic (See Weekend Scripter: Introducing the Scripting Guys PowerShell ...