Jump to content

Recommended Posts

Posted

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.

Posted
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.

Posted
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?

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...