Skype for Business
See all products »
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
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
Desired State Configuration
Microsoft Virtual Academy
PowerShell User Group
powershell web access
Six Million Dollar Man
Windows Server 2012
Year in Review
Browse by Tags
Forensics: Automating Active Directory Account Lockout Search with PowerShell (an example of deep XML filtering of event logs across multiple servers in parallel)
Overview Today we learn how to efficiently filter event log queries, going beyond simple event ID filtering into the specific values of the XML message data. Then we will run this filter against multiple servers in parallel for faster data collection. This posts meets the following objectives:...
1 Sep 2015
Let's meet up in North Carolina Monday evening (8/10)
This is a quick announcement that I'll be in Raleigh/Durham, North Carolina this coming Monday night, August 10th. I'll be speaking on one of my favorite topics (Active Directory PowerShell) at the Research Triangle PowerShell User Group . Find out more information here . Hope to see you there...
4 Aug 2015
Configuring Active Directory with PowerShell DSC and the New xADRecycleBin Resource
Active Directory and PowerShell DSC Today’s post is the second in a series on using PowerShell DSC with Active Directory . We will demonstrate configuring the AD Recycle Bin and domain trusts with PowerShell Desired State Configuration. As a bonus we will throw in a registry key for some special...
15 Jul 2015
UPDATED: Copy and Merge Group Policies (GPOs) with PowerShell
GPO Consolidation Redux Do you have Group Policies gone wild? Did you realize too late that it might not be such a good idea to delegate GPO creation to half the IT department? Have you wanted to combine multiple policies into one for simplicity? This blog post is for you. One of my most popular...
11 Jun 2015
17 Hours of PowerShell Desired State Configuration (DSC) Video Training
PowerShell DSC Video Training now available! I am excited! Microsoft Premier customers now have access to 17 hours of real-world PowerShell Desired State Configuration (DSC) video training through the Premier Workshop Library on Demand (WLOD) subscription. We recorded 11 modules on topics from beginner...
22 May 2015
PSHSummit: Managing PowerShell in the Enterprise Using Group Policy
PowerShell Summit North America 2015 Do you want to meet other people enthused about PowerShell? Do you wish you had access to experts who could answer all of your PowerShell questions… in person? Yes? The PowerShell Summit is your opportunity hosted in the United States and Europe each year...
22 Apr 2015
Deploy Active Directory with PowerShell DSC (a.k.a. “DSC-PROMO”)
Active Directory and PowerShell DSC Today’s post is the first in a series on using PowerShell DSC with Active Directory . I don’t know how many blog posts there will be. I haven’t written them yet. What I can tell you, is that I have a load of fun scripts to share. Today we will...
20 Mar 2015
Helper Function to Create a PowerShell DSC Composite Resource
PowerShell Desired State Configuration (DSC) Although I have not blogged about PowerShell Desired State Configuration (DSC) very much, it has been my sole focus for the last several months. I have been doing Introduction to PowerShell DSC talks for customers and helping them get started with their...
25 Feb 2015
Forensics: Audit Group Policy Links and Changes with PowerShell
Honorary Scripting Guy I would like to thank Ed and Teresa Wilson, the Microsoft Scripting Guy and the Scripting Wife, for bestowing upon me the title of Honorary Scripting Guy . This was a humbling surprise. It has been a joy to share my scripting passion with the community, and I will continue to...
26 Jan 2015
Forensics: Monitor Active Directory Privileged Groups with PowerShell
Someone just now added Jimmy to the Domain Admins group! How do I know? Because I used PowerShell to check. Let me show you how. Some of the best customers that I visit get email pages when high value group memberships change. Obviously this is strongly encouraged for IT shops of any size. Of course...
17 Dec 2014
Active Directory Week on the Hey Scripting Guy Blog and Free AD PowerShell Videos at Microsoft Virtual Academy
Hello, everyone. Today I have a short post with some helpful links to share. If you are in the US, I hope you have a good Thanksgiving holiday week and not too much after-hours support. Spending time with family is refreshing for me at the holidays. Hey Scripting Guy Blog - Active Directory Week ...
26 Nov 2014
Microsoft Virtual Academy: Using PowerShell for Active Directory
Welcome! Today’s post includes demo scripts and links from the Microsoft Virtual Academy series: Using PowerShell for Active Directory . Go watch the videos here . We had a great time creating this for you, and I hope you will share it with anyone needing to ramp up their AD PowerShell skills....
29 Oct 2014
See GoateePFE Live or On-Demand Talking about Active Directory PowerShell
Whew. This has been a busy season for speaking, blogging, and recording. I’ve spent more time on airplanes than in my office at home for the last few months. It’s all good, and I want to share it with you. Here are some places you can find me online, on stage, and on camera… ...
16 Oct 2014
DogFoodCon 2014: Reduce Server Outages Using PowerShell Desired State Configuration
DogFoodCon 2014 I always look forward to catching up with customers and associates at the Columbus, Ohio DogFoodCon . This is a growing IT conference, and it has become quite popular for several states around. Here is the abstract for my session Tuesday: Reduce Server Outages Using PowerShell Desired...
30 Sep 2014
PowerShell Module for Active Directory SID History Now Faster
It has been a while since I’ve released any updates to the Active Directory SID History PowerShell Module . Today’s release leverages improvements in PowerShell v3.0 for faster and better results. “We can rebuild him. We have the technology.” Before Stone Cold Steve Austin...
5 Sep 2014
GPO Migration with PowerShell – Now including WMI filters
TechMentor Redmond 2014 This week I am presenting a session on GPO migration at TechMentor Redmond 2014. This is an expanded version of the session I gave at the PowerShell Summit back in April. I received feedback in April that WMI filters must be supported before this would be considered a viable...
11 Aug 2014
DNS Server and Zone Reporting with PowerShell
Who-Is On First? While working on DNS automation for a customer recently I needed some quick scripts to inventory Active Directory-integrated DNS server and zone configurations . All too often the way we think things are configured does not match reality. Are the forwarders consistent and correct...
1 Aug 2014
DNS Zone Copy and Merge with PowerShell
Have you ever wanted to roll up all of your reverse zones into a "big 10" super zone? Do you need to copy DNS zones between environments and preserve the record aging? Today's post is for you. Author’s note: While flying home on a Friday night this blog post was mostly composed...
31 Jul 2014
The GoateePFE Active Directory PowerShell Link Fest
Summer Time! Hi folks. It’s vacation time, so I’m going to keep it short today. This summer I am taking my family to Seattle on vacation. I’ve been there more times that I can count, but this time the family will get to see all of the sights for themselves rather than looking at...
18 Jun 2014
PowerShell Summit North America 2014
I know this post is a little late, but I wanted to offer some helpful information that I picked up at the PowerShell Summit last month. This post is packed with links to keep you surfing high-value PowerShell content for days. Community This was a true “community” experience. After...
27 May 2014
Three Steps to Migrate Group Policy Between Active Directory Domains or Forests Using PowerShell
Three Steps Ahead Have you ever wished that you had three legs? Imagine how much faster you could run. Today we are going to look at three steps to migrating GPOs between domains or forests with PowerShell. Now that is fast! The Problem Have you ever wanted to copy all of your production Group...
29 Apr 2014
Oh Snap! Active Directory Attribute Recovery With PowerShell
The Problem Have you ever had to repopulate a batch of corrupted attributes for a large set of Active Directory objects ? (Think Exchange or Lync, for example.) The Active Directory Recycle Bin is great for recovering deleted objects, but it will not help with corrupted objects. Authoritative restore...
24 Apr 2014
PowerShell to Find Where Your Active Directory Groups Are Used On File Shares
Happy St. Patrick’s Day! Enjoy some PowerShell limericks here . Download today’s script from the TechNet Script Gallery . Where are my AD groups used? Today's post gives you a script to crawl your file shares and document the AD users and groups referenced in NTFS permissions. I’m...
17 Mar 2014
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
PowerShell Saturday 007 Charlotte: From Cmdlets to Scripts to PowerShell Hero
PowerShell Saturday 007 Today I am spending time with passionate PowerShell people in Charlotte. This is a blast! Greetings to: Ed Wilson @ScriptingGuys Theresa Wilson @ScriptingWife Glenn Sizemore @GlnSize Jim Christopher @Beefarino Brian Wilhite @BWilhite1979 And many more…...
8 Feb 2014
© 2015 Microsoft Corporation.
Privacy & Cookies