I would like to test how much servers are in maintenance mode in my citrix farm.
When I test locally(on my DDC server) my powershell script, It works perfectly.
But when I try with a two-state monitor, I don’t know how to do it.
the script runs locally on scom server. But the script needs citrix cmdlets and snapins. so the script doesn’t work
How to run the script locally on ddc server?