Link to home
Start Free TrialLog in
Avatar of stuckp1
stuckp1

asked on

What is the way to call PowerShell from MS System Center Configuration Manager to automate rollout

Hi,
Background:
1) I have a PowerShell 2.0 script that does things on remote machines across the enterprise
2) I use Microsoft System Center's Configuration Manager to automate the rollout of updates and configuration work across the enterprise

Question:
How do I call PowerShell scripts from System Center Configuration Manager automated tool?
Avatar of rwskas
rwskas
Flag of United States of America image

I would imagine you could just call PowerShell via SCCM using the correct params. Example below is assuming you want to run 'myscript.ps1' from the C:\Scripts folder on the local machine

So basically, your launching powershell, and telling it to run the command (-c) C:\Scripts\MyScript.ps1

ASKER CERTIFIED SOLUTION
Avatar of rwskas
rwskas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stuckp1
stuckp1

ASKER

Thanks!