Windows Gpo Test
TIL testing GPOs without affecting everybody
Spent a lot of time off and on trying to find a reasonable way to test GPOs without affecting everybody. I think most of my confusion stems from Computer Configuration
vs. User Configuration
.
Two ways to do this.
- Create a
test-ou
and put the computer and/or user in this ou. - Security Filtering. Remove
Apply group policy
fromAuthenticated Users
and add a User or Group withApply group policy
.
I’ve learned
- Run
gpupdate /force
to update local GPOs. By default windows applies them every 15 minutes. - Run
gpresult /h gpreport.html
orgpresult /r
to find out what got applied. If you’re interested inUser Configuration
be sure to run it as the user. If you’re interested inComputer Configuration
run it as admin. - If only the computer gets moved into the
test-ou
, configuration fromUser Configuration
does not get applied. And vice versa.