Need command line to deploy ps1 script via sccm 2007.
Hi,
I am trying to depoly a ps1 script via sccm 2007, the command line im using is
"powershell.exe -command .\install.ps1"
when i run the advertisement, i get this error below, can anyone advise of any other command line to use. We are using Powershell V2, which is part of Windows 7 as standard
Thanks in advance
1 Comment
[ + ] Show comment
Answers (0)
Please log in to answer
Be the first to answer this question
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Set-ExecutionPolicy Unrestricted
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "\\Share\rollout\Script.ps1"
wait
At the end of my PS script I restrict again. - djordan 7 years ago