Category Archives: PowerShell

Active Directory Scripting Highlight: Identify and Move Active Directory Operations Master Roles with PowerShell

Getting your bearings and knowing everything you can about a Forest/Domain you are migrating is key.  Which domain controllers in the Forest and Domains hold the Operation Masters roles is one of those important details as you modify or decommission … Continue reading

Posted in Active Directory, PowerShell | Tagged , , , , , , , , | Leave a comment

Active Directory Script Highlight: Simple HTML Export of all Group Policy Object Details

So once you have cleaned up your group policies like I outlined in my last two Active Directory Scripts Highlights,  what’s next? In this article I have a couple of variations of  scripts using the Get-GPOReport cmdlet that will allow … Continue reading

Posted in Active Directory, Group Policy, PowerShell | Tagged , , , , , , , , | Leave a comment

Active Directory Script Highlight: Group Policy Object Cleanup and Efficiency

Going a step further from the previous post with a little more detail, the script below adds of GPOStatus, and version increment number for Computer and Users section for each Group Policy. Get-GPO -All | Sort GPOStatus | Format-Table Displayname, … Continue reading

Posted in Active Directory, Group Policy, PowerShell | Tagged , , , , , , , , , | 3 Comments

Active Directory Script Highlight: Pre-Migration Group Policy Inventory and Cleanup

Todays Active Directory cleanup topic looks at Group Policy Objects.  In most of the environments I have prepared for migrations, old Group Policy objects are another problem area that should be cleaned up before an Active Directory migration. In many … Continue reading

Posted in Active Directory, Group Policy, PowerShell | Tagged , , , , , , , | 1 Comment

Active Directory Script Highlight: Identify Old Computer Objects Before AD Migrations

In the last of my Active Directory cleanup post, I have given you some options to identify, disable, and move User objects based on a certain time of inactivity.  In this post I am going to give you some simple … Continue reading

Posted in Active Directory, PowerShell | Tagged , , , , , , , , , | Leave a comment

Active Directory Script Highlight: Disable and Move Users Who Have Not Logged on In 180 Days

In my last post I showed a simple script to identify users that have not logged on in the last 180 days and export basic information to a CSV file.  This allowed you to look through the list and determine … Continue reading

Posted in Active Directory, PowerShell | Tagged , , , , , , | 1 Comment

Active Directory Script Highlight: Identify User Not Logged in in 180 days

Domain migrations are in full swing so I thought I would start to share some of the scripts used in the process.  This one identifies users that have not logged on in over 180 days.  The thought behind this is … Continue reading

Posted in Active Directory, PowerShell | Tagged , , , | Leave a comment