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
Support by product
Forefront Edge Security
Forefront Server Security
Other support links
Microsoft Premier Online
Microsoft Fix It Center
Security Bulletins & Advisories
International support solutions
Log a support ticket
Look up event IDs and error codes
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
DogFoodCon 2013: From Cmdlets to Scripts to PowerShell Hero: An essential session on the scripting process
Session Description Tired of copying and pasting scripts from the internet? Want to write your own scripts? Become the go-to scripter on your team. This session will break down the scripting process into logical steps you can follow. Learn how to wrap cmdlets into scripts into functions...
25 Nov 2013
PowerShell Saturday 005 Atlanta: It's Time To Part With Blankie: Moving from command line tools to PowerShell for Active Directory
Atlanta-bound I am drafting this post from the airplane as I make my way to Atlanta, Georgia USA for PowerShell Saturday 005 . I am looking forward to spending the weekend with folks who share my passion for PowerShell. I’ll get to reconnect with some Microsoft PFE buddies, and I’ll finally...
26 Oct 2013
PowerShell Active Directory Schema Report
Last year I published a script on the Hey Scripting Guy blog to review the AD schema. This comes in handy when you want a report on the history of schema changes in your forest and the related OIDs. The script lives on the TechNet Script Gallery, and I keep it updated with new product schema versions...
20 Sep 2013
PowerShell Get-WinEvent XML Madness: Getting details from event logs
Announcements Before we jump into today’s script here are some current events: This blog post celebrates three years of PowerShell blogging on TechNet as GoateePFE . It has been a great ride, and I am far from done. See the most popular posts here . Thank you for making this blog successful...
29 Aug 2013
Dude, where’s my GPO? Using PowerShell to find all of your Group Policy links.
Stratego I only played Stratego once as a kid when I was over at a friend’s house. Strategy, challenge and mystery made the game captivating. A few years ago I bought a vintage 1961 edition on eBay so I could teach my sons to play. As it turns out this game has been around for centuries among...
29 May 2013
Touch-Free PowerShell DCPROMO in Windows Server 2012
DCPROMO Keeping You Up At Night? Do you schedule DCPROMO activities for the weekend? After hours? Middle of the night? I remember those days. Often it was hard to get in the right frame of mind to think through all of the exact procedural steps during those late night change controls. It was always...
18 Apr 2013
How to do PowerShell on your phone
Even Spiderman would envy this web action. Today we're going to walk through setting up a portable PowerShell v3 Web Access demo . Using this demo guide you can explore PowerShell from any web-capable device: your phone, your tablet, or your Raspberry Pi . The links in this post will guide you to all...
5 Feb 2013
Free Download: CMD to PowerShell Guide for AD
New Years Resolution Hi folks. It's your friendly, neighborhood PFE again. In order to avoid the long lines to buy a treadmill the first week of January I thought I would save you some time and give you an easier New Years Resolution… Learn PowerShell. It's time to part with "blankie". ...
2 Jan 2013
TIP: 2 Ways userAccountControl Is Easier In AD PowerShell
Background Anyone who wants to write scripts for Active Directory will eventually run into the famous userAccountControl attribute. Usually this comes up when you are searching for disabled accounts. Actually this attribute is a bit flag for 22 different account settings! You can find them clearly...
13 Dec 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
PowerShell Module for Working with AD SID History Updated
TechReady At Microsoft we have an internal event called TechReady that happens twice each year. It is similar to our public TechEd event. Approximately 5,000 Microsoft technical field people from all over the world gather to learn the details of the latest product releases and dialog with the product...
15 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
How to close helpdesk tickets faster with PowerShell
I was grocery shopping the other day and had to take a picture of this. What exactly differentiates a "fancy" octopus. I know. Do you? It's PowerShell. Fancy octopi always use PowerShell. I'm glad it's in an "easy open can". Today we're going to open up a can of PowerShell for the helpdesk . Helpdesk...
18 Apr 2012
Five free ways to script Active Directory in PowerShell: Part 2
The PowerShell Tool Belt For Active Directory This is huge. Today's post includes demo scripts for all five free ways to script Active Directory in PowerShell . I presented these last weekend at the first ever PowerShell Saturday event in Columbus, Ohio . You will also find attached a one hour audio...
14 Mar 2012
Everything you need to get started with Group Policy
My last post on getting started with Active Directory was so popular that I thought I would do one for getting started with Group Policy . Once again this link list will satisfy everyone from beginner to advanced. I know there are many other third party resources and books, but I want to surface Microsoft...
9 Jan 2012
How To Remove SID History With PowerShell
Update: To see all articles in this series click here . In the United States we celebrate Thanksgiving tomorrow. No matter where you are in the world let us all give thanks for PowerShell. If Windows were the pumpkin pie, then PowerShell would be the whipped cream on top. If Active Directory were...
23 Nov 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 v3 preview download available
Here is your chance to preview the next release of PowerShell and offer feedback before it gets baked for release. As with any dogfood software don't put it on your primary machine. Announcement here: http://blogs.msdn.com/b/powershell/archive/2011/09/20/windows-management-framework-3-0-community...
21 Sep 2011
PowerShell: SID Walker, Texas Ranger (Part 2)
More bad Chuck Norris one liners: You don't get access unless Chuck Norris says you get access. The Chuck Norris array starts and ends on 1, because Chuck Norris is never a zero. Chuck Norris' PowerShell console NEVER shows red text. This is part two in a series on translating SIDs...
16 Sep 2011
Do Over: SID History One-Liner
Wouldn’t you know it. The very same day I posted the SID history script I found a shorter way to do it. I'm calling a "do over". I love the PowerShell.com email tip-of-the-day. On that particular day the tip was how to use the ExpandProperty switch on the Select-Object cmdlet. This was new for...
26 May 2011
Using PowerShell to resolve Token Size issues caused by SID history
Update: To see all articles in this series click here . No matter how bad he wants to an elephant simply cannot drive a Volkswagen. He just won’t fit in that space. People can drive VWs, because that is who the VW was designed to accommodate. There is nothing worse than frustrated elephants...
19 May 2011
PowerShell Remoting Exposed: How To Command Your Minions
We have many words to describe those who do the boss's dirty work: minion, henchman, and toadie. My personal favorite is "toadie", as referenced in A Christmas Story . You can tour the house just outside of Cleveland, Ohio. Of course I got my picture taken with the leg lamp. "So what does 'toadie...
18 Apr 2011
Update available for PowerShell Get-Help cmdlet
Now Get-Help goes to the next level. I don't know why they waited so long to add this. You have already installed the update for Get-Help. It was delivered via Windows Update several months ago. I could post the usual links and long-winded explanation, but instead I’ve attached a short script...
1 Apr 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
A Dickens of a DNS Puzzle: How to clean up those stale AD site DNS records (with PowerShell of course)
Typically DNS scavenging takes care of old DNS records, and that is the recommended path of resolution. For those who choose not to use scavenging, this post may be of some assistance. Frequently when I visit customers I find a graveyard down in the DNS tree where stale AD sites live like the ghost...
23 Dec 2010
© 2013 Microsoft
Manage Your Profile