# Windows



# Validating AD Machine Account

Here's a couple ways to validate the machine account of a PC in an Active Directory domain:

```
dsregcmd /status
```

If successful, it will output a device state of DomainJoined: yes.

[![image.png](https://wiki.galaxydump.com/uploads/images/gallery/2025-06/scaled-1680-/42OdEyuusCj3aEV3-image.png)](https://wiki.galaxydump.com/uploads/images/gallery/2025-06/42OdEyuusCj3aEV3-image.png)

NOTE: It outputs several blocks of info. So, you may have to scroll up to see the status.

Also. You can use this:

```
nltest /sc_query:<<domain name>>
```

If successful, it will give a NERR\_Success status, like this:

[![image.png](https://wiki.galaxydump.com/uploads/images/gallery/2025-06/scaled-1680-/CKNKbSm6W1Vcdo73-image.png)](https://wiki.galaxydump.com/uploads/images/gallery/2025-06/CKNKbSm6W1Vcdo73-image.png)