A school PC is either joined to the on-site domain or joined to Entra ID. Choose one for each machine.
Join the domain
The PC must use the domain controllers for DNS. On the client VLAN it gets them from DHCP.
CON-WS-001, as an administrator
Resolve-DnsName ad.contoso.com # must answer first Rename-Computer -NewName "CON-WS-001" Add-Computer -DomainName "ad.contoso.com" -Credential (Get-Credential "CONTOSO\Administrator") -Restart
Then move the computer into the right OU, so it picks up Group Policy and its LAPS password:
A domain controller
Get-ADComputer "CON-WS-001" | Move-ADObject -TargetPath "OU=CON-Staff-Devices,OU=CON-Workstations,OU=Contoso School,DC=ad,DC=contoso,DC=com"
Or join Entra ID
You choose this during Windows setup, not afterwards. At "How would you like to set up this device?", pick Set up for work or school and sign in with a school account.
First allow itEntra ID›Devices›Device settings›Users may join devices to Microsoft Entra
Check which it is
CON-WS-001
dsregcmd /status | Select-String "AzureAdJoined|DomainJoined"
| Result | Means |
|---|---|
| DomainJoined YES | Joined to the on-site domain. Group Policy and Windows LAPS apply. |
| AzureAdJoined YES | Joined to Entra ID. Intune manages it instead. |


