SuperduperPackager Posted September 6, 2017 Posted September 6, 2017 Since SCCM 1706, you can run PowerShell scripts on collections from the console. I ran a simple script on a collection with 25 computers and when I look in "Script Status" under "Monitoring", it shows that it ran successfully on 3 computers out of the 25. I validated that the script had made changes on the 3 computers being listed and it didn't for the other 22 computers. Any idea why my script would run only on 3 computers when the collection has 25 computers in it? Also, I noticed that if I run multiple scripts on that same collection, it's always only the same 3 computers that run them.
Geoff Posted September 6, 2017 Posted September 6, 2017 The client needs Powershell 3.0 or better for this to work. Check the scripts.log on the affected client when it doesn't work. 1
SuperduperPackager Posted September 6, 2017 Author Posted September 6, 2017 The client needs Powershell 3.0 or better for this to work. Check the scripts.log on the affected client when it doesn't work. PowerShell 3.0 is installed on all computers in this collection. They have the same configuration because they were all deployed with the same task sequence. On the computers where the script ran, I can see the Script log file, but it's not present on the other computers where the script didn't run.
Arthur Posted September 6, 2017 Posted September 6, 2017 Have you done everything listed here... https://www.systemcenterdudes.com/sccm-deploy-powershell-script 1
Geoff Posted September 7, 2017 Posted September 7, 2017 On the computers where the script ran, I can see the Script log file, but it's not present on the other computers where the script didn't run. Has the client upgraded on all the machines? 1
SuperduperPackager Posted September 7, 2017 Author Posted September 7, 2017 The clients weren't all upgraded yet. Thank you all for your help!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now