So here’s another spin on using Pester to validate operational readiness… 😉
Group policies can be pretty tricky! Troubleshooting can be a challenge. There might be even times that you start doubting yourself. Depending on the link order of your Policies, you might not get what you expected…
Operations is dynamic, things get moved around, enabled/disabled, blocked, name it and it’s bound to happen.
How about… some way to validate your GPOs Scope of Management! Once everything is working as it should, create a validation set you can verify later on. Trust me, I’ve been there… Using Pester will definitely give you that edge…
So I improvised a little on Ashley’s McGlone’s GPO Report and made a function Get-GPOsSoM. Just be sure to save it in the same folder as Domain-GPOSoM.Tests.ps1
Now for the fun part! 🙂
So here’s the result:
Now Imagine someone changed your GPO link order:
Run Pester test script again:
No more doubt! The link order has been tampered with! This is definitely a game changer for Operations!
My new motto : “If you can automate it, you should test it” 😛
Pester for everyone!
Hope it’s worth something to you