See all products »
Curah! curation service
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Server and Tools Blogs
TechNet Flash Newsletter
Cloud and Datacenter
Windows Server 2012 R2
System Center 2012 R2
Microsoft SQL Server 2012 SP1
Windows 8.1 Enterprise
See all trials »
Microsoft Download Center
TechNet Evaluation Center
Compatability & Converters
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
MCSA: Windows 8
Windows Server Certification (MCSE)
Private Cloud Certification (MCSE)
SQL Server Certification (MCSE)
Second shot for certification
Born To Learn blog
Find technical communities in your area
For small and midsize businesses
For IT professionals
For technical support
For home users
Microsoft Premier Online
Microsoft Fix It Center
Security Bulletins & Advisories
International support solutions
Log a support ticket
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Blog of Microsoft Premier Field Engineer Ashley McGlone featuring PowerShell scripts for Active Directory.
Central Ohio PowerShell Users Group
Heroes To Mentors
powershell web access
Windows Server 2012
Year in Review
Browse by Tags
Using PowerShell to Find Stale and Duplicate Active Directory Groups
PowerShell… “My mop!” One of the undisputed greatest movies of all time was UHF in 1989. Stanley Spadowski and his mop were an amazing force for good. He gave us all an important life lesson… “Life is like a mop. Sometimes it gets dirty, and you have to clean it out...
14 Mar 2014
Use PowerShell to Find Windows XP Computers Still Alive in Your Active Directory Domain
PS PSA – PowerShell Public Service Announcement Usually I like to offer deep technical content on the blog, but today I’m going to keep it simple. Everyone should be keenly aware that Windows XP support officially ends on April 8, 2014 . Many companies are migrating from Windows XP...
30 Jan 2014
Active Directory PowerShell SIDHistory Module Update 1.5
To see all of the articles in this series visit http://aka.ms/SIDHistory . I would like to thank everyone who has been using the Active Directory SIDHistory PowerShell module and sending me feedback . Your input helps guide future releases like the one I am publishing today. I’ve been sitting...
9 Jul 2013
How To Use The 2012 Active Directory PowerShell Cmdlets From Windows 7
Antique Tools? The Windows Server 2012 Active Directory PowerShell module has some handy new cmdlets. However, many IT shops struggle to stay current on the latest operating system releases due to a variety of issues (budget, resources, compatibility, etc.). They desperately want to use the latest...
27 Jun 2013
Active Directory OU Permissions Report: Free PowerShell Script Download
Who owns your OUs? Have you ever lost your keys? It is a scary feeling. Someone out there could have keys to your house and your car. Your personal safety could be at risk. The same is true in Active Directory. Do you know who has the keys to all of your accounts? The Problem In Active Directory...
25 Mar 2013
AD PowerShell Password Reset Shortcut for Helpdesk
Introduction Back in May I released a post on the Hey Scripting Guy blog showing how to create a shortcut to unlock a user account with a PowerShell desktop shortcut . That post was very popular, and the comments evolved into another shortcut to reset passwords. Due to the popularity and utility of...
26 Nov 2012
DogfoodCon 2012 - Columbus, Ohio
Today I have the privilege of speaking at DogfoodCon 2012 in Columbus, Ohio. My topic is “Active Directory PowerShell Step-By-Step” . This post includes a download of the slide deck and demo scripts for the session. Here are the resource links that I shared today: RSAT Download for...
9 Nov 2012
AD Group History Mystery: PowerShell v3 REPADMIN
I remember back in high school the janitor had this massive ring of keys on his belt. The keys would jingle with each step as he pushed the broom down the hall. It was like his own percussion section accompanying the tune he whistled. So what does this have to do with PowerShell? The Scenario After...
17 Oct 2012
Active Directory PowerShell Notes From The Field
PowerShell Saturday 002 Today I have the privilege of speaking at the second-ever PowerShell Saturday event. As a Microsoft Premier Field Engineer I get to meet many customers and help them with their Active Directory and PowerShell needs. I’ve taken some of that experience and wrapped it into...
15 Sep 2012
Freaky neat Active Directory site links with PowerShell
Author's note: Before you dismiss this article you should know that the top two areas where I find issues for AD health are replication and DNS. If you're short on time skip to the bottom section "But Wait… There's More" and run that report in your environment. Otherwise I think you'll get a lot...
10 Sep 2012
How to copy AD user attributes to another field with PowerShell
TechMentor Last week I spent some time working on my presentation for the TechMentor conference coming up in August. It's not too late to get in on the action, and this year it's going to be in the heart of Microsoft country. I hope to see you there. Tapioca Goodness I love tapioca pudding...
23 Jul 2012
New Microsoft Download: Active Directory Replication Status Tool
Our Microsoft Customer Service and Support experts have released a new tool for diagnosing AD replication errors: ADREPLSTATUS . Here is the description from the download page : The Active Directory Replication Status Tool (ADREPLSTATUS) analyzes the replication status for domain controllers in an...
25 Jun 2012
PowerShell Tip: Active Directory Account Unlock Shortcut for Help Desk
Today I posted over on the Hey Scripting Guy blog with a quick tip to unlock Active Directory user accounts . Check it out: Active Directory Account Unlock Shortcut for Help Desk
5 May 2012
Five free ways to script Active Directory in PowerShell: Part 1
Free. Double your money back. Cheap at twice the price. Today IT budgets are tighter than packets on a 56k modem. Have you ever asked your boss to buy some scripting tools to help do your job? Which response did they give you? "Where do you think you are? Wal-Mart?" "Sure. Email me an ROI...
28 Feb 2012
How to find AD schema update history using PowerShell
This article is for all of the IT Pros who have inherited an Active Directory environment which they did not build. Today's post offers some simple scripts to document the history of schema updates. This is particularly handy when it comes time to extend the schema for a domain upgrade or Exchange implementation...
5 Jan 2012
Everything you need to get started with Active Directory
As a Microsoft Premier Field Engineer I frequently get asked for more information on Active Directory topics. Most of the time I end up passing along one or more of the links in today's post. I finally decided to put these all in one place for quick reference. This list will be extremely valuable for...
3 Jan 2012
PowerShell Module for Working With AD SID History
This weekend I'll be celebrating Christmas in the US. Today Santa brought me a 1500VA 865W UPS for my home lab server. Now I don't have to worry about those winter power hiccups rebooting all of my HyperV guests. Best of all the scripting elves will be able to write presents without interruption. ...
23 Dec 2011
PowerShell: SID Walker, Texas Ranger (Part 3): Exporting Domain SIDs and Trusts
This post is part three in a series on documenting and remediating SID history in your AD forest. Go back and read part 1 and part 2 if you haven't had a chance yet. In today's episode we will document the domain SIDs so we know from where this latent access originates. Rosetta Stone Many AD admins...
12 Oct 2011
PowerShell: SID Walker, Texas Ranger (Part 1)
SID Walker First things first: If Chuck Norris wrote a PowerShell script it would be a one-liner, because Chuck Norris can do anything in one strike. Chuck Norris does not have SID history, because there is only one Chuck Norris. Chuck Norris' ACL only has one ACE: Chuck Norris –...
30 Aug 2011
Rip off the bandaid with PowerShell (Using bitwise LDAP filters to search and destroy manual server connection objects)
AD Replication Bandaids The worst part of a bandaid is ripping it off. The cure is worse than the problem. The only thing worse than a bandaid is surgical tape, especially when… never mind. Do you have any bandaids in your AD replication? You know… those manual server connection objects...
12 Jul 2011
Report and Edit AD Site Links From PowerShell (Turbo Your AD Replication)
AD Replication in TRON terms “The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships, motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day... I...
29 Jun 2011
Step-by-Step: How to use Active Directory PowerShell cmdlets against 2003 domain controllers
Irish Soda Bread with Guinness Reduction Dip. Doesn't that sound good? It makes my mouth water just thinking about it. Recently I used my frequent flier points to take the family to Disney, and the best food we ate all week was at the Raglan Road Irish Pub in Downtown Disney. We liked the bread and dip...
17 Mar 2011
Consolidate All AD Empty Sites Into A Single SiteLink Using PowerShell
Do you have a large Active Directory site topology with many empty sites? If so, this post is for you. Empty sites are AD sites without a domain controller. These sites are used to support AD site-aware applications like SCCM and DFS where clients get local site referrals. Recently I encountered...
11 Feb 2011
Finally! Copy and merge GPOs! PowerShell saves the day!
The Problem I wish I had this script five years ago. At the time I was searching for a way to combine or merge GPOs, but there simply wasn’t a way to do it. And today there still isn’t a way to do it… until POWERSHELL! Almost every environment I see (including my own former environment...
19 Jan 2011
PowerShell to automatically create all AD hub-to-spoke site links
So you've just finished creating all of the sites in your AD forest, or you've chosen to rebuild your site link topology. You want to create a simple hub-and-spoke site link topology. You dread all the clicks it will take to create each site link, type the name, and add the member sites. Enter today...
7 Oct 2010
© 2014 Microsoft Corporation.
Privacy & Cookies