How To Offline Defragment An Active Directory Database With PowerShell
Performing an offline Active Directory database can be a scary thing if you’re forced to remember each of the steps and do it manually. If you can wrap all of these actions up in a PowerShell script, this alleviates fat-finger syndrome and will ensure you get it right the first time, every time.
In this video, we’ll still be using the ntdsutil utility but we’ll wrap it in a PowerShell tool to do all of the steps for us. We’ll ensure all services are stopped beforehand, started afterward and even do some log file cleanup all with a single PowerShell function.
Prerequisites include: - Active Directory on a Windows Server 2008