Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
Scripting operations master role transfers
Article ID: 321469 - View products that this article applies to.
This article was previously published under Q321469
The Microsoft Windows 2000 Resource Kit describes how to script operations master role transfers (also known as flexible single master operations transfers or FSMO transfers). This article contains additional information that was not included in the Resource Kit.
In Active Directory directory service, operations master role transfers are exposed as a Lightweight Directory Access Protocol (LDAP) update operation to a RootDSE operational attribute of the domain controller that is taking the role. The following table shows which RootDSE operational attribute corresponds to each role:
For example, by running the following Visual Basic Script program and by using the CScript command on a domain controller, you can transfer the domain naming master role to that domain controller:
Collapse this tableExpand this table
This example works correctly for all operations master roles except for the PDC emulator role. To use the becomePdc attribute, you must provide the domain security identifier (SID) (in binary format) to the becomePdc attribute to trigger the operations master role transfer between two domain controllers of the same domain.
The following is an example of how to use the becomePdc attribute: