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-ouand put the computer and/or user in this ou. - Security Filtering. Remove
Apply group policyfromAuthenticated Usersand add a User or Group withApply group policy.
I’ve learned
- Run
gpupdate /forceto update local GPOs. By default windows applies them every 15 minutes. - Run
gpresult /h gpreport.htmlorgpresult /rto find out what got applied. If you’re interested inUser Configurationbe sure to run it as the user. If you’re interested inComputer Configurationrun it as admin. - If only the computer gets moved into the
test-ou, configuration fromUser Configurationdoes not get applied. And vice versa.