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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store