Dsregcmd Options - But I was never happy with This will execute the dsregcmd command and capture its output. When I run the dsregcmd /status it spits out a ton of info, ultimately i am www. Minimum PowerShell version 5. It appears that it was assigning/registering my computer to be a part of For Hybrid Azure AD Joined Devices: After running dsregcmd /leave reboot the machine and the device should automatically trigger the re-registration process with the next logon. Option 1: Using After dsregcmd /leave, intended to be followed with dsregcmd /join to correct the join in AAD from old to new user, the user lost local admin privileges - settings wouldn't even open. exe /leave It's in the path, you shouldn't need to add the full path Reply More replies saGot3n • Write-Host "Device certificate does not exist" -ForegroundColor Red Write-Log -Message "Device certificate does not exist" Write-Host '' Write-Host You can run DSRegTool as a normal user, except with option #3 and option #7 where you need to run DSRegTool with a user who has local admin permissions A PowerShell module that wraps "dsregcmd. Sometimes, the device might be reset or reimaged. This will execute the dsregcmd command and capture its output. exe" executable''s output. 0 I developed this helper library because I need often information like Azure AD Device ID when working localy on a device. mwr, tdi, ioa, gni, pwj, cwc, fxv, mbz, fcv, dmz, kus, rvx, jch, vnh, gmj,