Change Active Directory Services Restore Mode Password

Log on to a domain controller with a Domain Administrator.
Run CMD as Administrator
type “ntdsutil”
Type “set dsrm password” and press “Enter”
Type “reset password on server HOSTNAME” The “HOSTNAME” in this context indicates the Servername of the Domain Controller.
Type a new password when prompted.
Confirm the password by retyping it when prompted.

Seize FMSO roles

Open a Command Prompt as an administrator

At the command prompt, type ntdsutil, and then press ENTER.

At the ntdsutil: prompt, type roles, and then press ENTER.

At the fsmo maintenance: prompt, type connections, and then press ENTER.

At the server connections: prompt, type connect to server TARGETSERVERNAME , and then press ENTER.

After you receive confirmation of the connection, type quit, and then press ENTER.

Depending on the role that you want to seize, at the fsmo maintenance: prompt, type the appropriate command, and then press ENTER.

Seize naming master
Seize schema master
Seize infrastructure master
Seize pdc
Seize rid master