Good afternoon, all.
I have a nice PowerShell script that I've written that will determine whether or not to install the SCOM agent on a server based on group membership. The script works great - when I'm logged in and run interactively.
I've created a group policy to execute the script on startup (not login) and applied it to our servers OU (lab environment).
I've applied Domain Computers to the policy Security Filtering.
I've insured that the Domain Computers group has access to the script.
Yes, I've placed the script in the PowerShell tab in the GPO. :) (voice of experience....)
Upon rebooting targeted servers, the script does not execute.
I've executed gpupdate /force and gpupdate /sync.
Running RSOP shows that the policy has been applied to the machines I am testing on. However, there are no executions in their history.
The script logs to event logs several times during execution for information and error control, so I should see entries there whether the script tasks themselves are successful or not, but no luck.
I'm at a loss. I've looked all about the Google and see many instances of this same problem with no real answers or resolution.
Any input would be greatly appreciated!
John