How can we improve Azure Active Directory?

dsregcmd.exe with help

The command dsregcmd.exe should have /help switch to show all viable option of this command with usage examples.

14 votes
Sign in
Sign in with: Microsoft
Signed in as (Sign out)

We’ll send you updates on this idea

Kazzan shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: Microsoft
Signed in as (Sign out)
  • Berkelaar, Boris commented  ·   ·  Flag as inappropriate

    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  ·   ·  Flag as inappropriate

    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  ·   ·  Flag as inappropriate

    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

Feedback and Knowledge Base