We cannot seem to get this to work. When ran manually the script works without 
issue.

Simple commands like shutdown work just fine, and there is one example of a 
powershell script on google, but we cannot get the syntax to work.

http://netecm.netree.ch/blog/Lists/Posts/Post.aspx?ID=56

smsts.log shows the following. No other logs show anything, we have not turned 
on debug mode to see if we get any more info.

End program: powershell.exe -ExecutionPolicy ByPass -file 
"c:\temp\ProvisioningModeFix.ps1"

We have tried the following syntax:

powershell.exe -ExecutionPolicy ByPass -file ProvisioningModeFix.ps1
powershell.exe -ExecutionPolicy ByPass -file c:\temp\ProvisioningModeFix.ps1
powershell.exe -ExecutionPolicy ByPass -file "c:\temp\ProvisioningModeFix.ps1"
powershell -ExecutionPolicy ByPass -file ProvisioningModeFix.ps1
powershell -ExecutionPolicy ByPass -file c:\temp\ProvisioningModeFix.ps1
powershell -ExecutionPolicy ByPass -file "c:\temp\ProvisioningModeFix.ps1"

Also tried it with the -executionpolicy after the -file parameter.

Any ideas?

Daniel Ratliff


The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain CONFIDENTIAL material.  If you receive this 
material/information in error,
please contact the sender and delete or destroy the material/information.


Reply via email to