Step 1

Redirect the default folders

Windows puts newly joined computers and new users into built-in containers that Group Policy cannot reach. Two commands send them to your OUs instead.

5 minutesRun as CONTOSO\Administrator on either DC
What improves

New computers and users arrive where Group Policy applies.

Why it matters

Windows puts new objects in built-in containers that policies cannot reach.

How you do it

Redirect the default containers to your OUs, then move what already exists.

Every name, address and value in this guide is an example. Replace them with your own.

Why this matters

Computers and Users in AD are containers, not OUs. You cannot link a policy to them. A PC that joins the domain and lands there gets no LAPS password and none of your policies until someone moves it.

Redirect new computers

Either DC
redircmp "OU=CON-Workstations,OU=Contoso School,DC=ad,DC=contoso,DC=com"

New PCs now land in CON-Workstations, which carries the LAPS policy. Move each one into the staff or student OU afterwards.

Redirect new users

Either DC
redirusr "OU=CON-Admins,OU=Contoso School,DC=ad,DC=contoso,DC=com"

Point new users at CON-Admins, which never syncs. An account someone creates in the wrong place then stays on site until you move it on purpose.

Done when

Check

Both commands report "Redirection was successful", and Get-ADDomain | Select-Object ComputersContainer, UsersContainer shows your two OU paths.

Your progress is kept in this browser only.