dsregcmd.exe with help
The command dsregcmd.exe should have /help switch to show all viable option of this command with usage examples.
Thanks for the feedback. We recently published this article explaining the dsregcmd /status details – https://docs.microsoft.com/en-us/azure/active-directory/devices/troubleshoot-device-dsregcmd
We’ll consider adding others as well
Berkelaar, Boris commented
dsregcmd /join -> join the device to AAD (you have to be administrator of the system to perform this action)
dsregcmd /join /debug -> debug the join (again administrator)
dsregcmd /debug -> precheck whether AAD join can be performed
dsregcmd /leave -> removes the AAD registration when executed as NT Authority
dsregcmd /leave /debug -> debug the leave (execute as NT authority)
Those are the ones I know.
Steve Mahoney commented
dsregcmd does have /? which is help. That lists some switches it has.
However when I look at the scheduled task used in a Hybrid join it runs this: %SystemRoot%\System32\dsregcmd.exe $(Arg0) $(Arg1) $(Arg2)
I haven't been able to find any documentation that shows what it would take for those arguments.
Olivier López Ch commented
Agree, the lack of documentation is currently an issue. I have been troubleshooting a Windows Hello for Business problem for weeks and I didn't know of the existence of the "/debug" paramenter until today