> For the complete documentation index, see [llms.txt](https://docs.jianny.net/work/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jianny.net/work/azure/aad-device-deleted-changed-mobo.md).

# AAD Device Deleted / Changed Mobo

\[1] While connected to the network run this over elevated Powershell and share the output

```powershell
nltest /sc_verify:corp.jabil.org
nltest /dsgetdc:corp.jabil.org
Test-ComputerSecureChannel -Verbose
```

\[2] If everything looks good, then run these over elevated powershell&#x20;

```powershell
dsregcmd /debug /leave
shutdown /r /t 0
```

Reboot, sign in with user's AD account then run this&#x20;

```powershell
schtasks /Run /TN "\Microsoft\Windows\Workplace Join\Automatic-Device-Join"
```

\[3] Wait at least 30 mins to 4 hours, rerun "dsregcmd /status" command and we ultimately want to see these

```powershell
DomainJoined  : YES
AzureAdJoined : YES
AzureAdPrt    : YES
```
