k-a-rogers / Fix-FSMORoles

A Powershell implementation of the fixFSMO.vbs script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix-FSMORoles

Fix-FSMORoles is a Powershell script that implements the behaviour of fixFSMO.vbs. FixFSMO.vbs is an old script provided by Microsoft for resolving issues where domain-level FSMO role metadata becomes corrupted in AD (often as a result of forcible removal of a DC). If you don't know what FSMO roles are, start here.

I wrote this script for 2 reasons:

  1. I needed to fix a problem with FSMO roles in a production environment, and
  2. I am not particularly familiar with vbscript and wanted to ensure I understood the actions that would be taken during remediation.

I have a writeup of the original problem, along with a breakdown of how the script works, in this blog post.

About

A Powershell implementation of the fixFSMO.vbs script

License:GNU General Public License v3.0


Languages

Language:PowerShell 100.0%