netdom
Cautionnetdom trust & FSMO
netdom resetpwd /server:<dc> /userd:<admin> /passwordd:*
Repairs broken machine trust with resetpwd (the step after Test-ComputerSecureChannel fails); query fsmo lists role holders.
Examples
netdom query fsmoList FSMO holders
Syntax
netdom resetpwd /server:dc /userd:u /passwordd:* / netdom query fsmo
Before you run it
resetpwd briefly detaches the machine.
Related commands
- Test-ComputerSecureChannelRepair the trust channel
- nltestDomain/DC diagnostics
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store