Quantcast
Viewing all articles
Browse latest Browse all 3825

New Post: Powershell script don't work

Hi Guys,
i've created a customer update package with a powershell script.
The script works fine, if i start it manually:
Copy-Item -Path .\TEST C:\ -Recurse -force
Copy-Item -Path .\WINDOWS C:\ -Recurse -force
The Customer Update log says:
05.04.2014 14:44:08 Running 3 Elements.
05.04.2014 14:44:08 Running CustomUpdateEngine.ScriptElement
05.04.2014 14:44:08 Running ScriptElement.
05.04.2014 14:44:08 Running : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe With arguments : "copyfiles.ps1" 
05.04.2014 14:44:32 Exiting process with ExitCode = 1
05.04.2014 14:44:32 End of ScriptElement.
05.04.2014 14:44:32 Running CustomUpdateEngine.WaitElement
05.04.2014 14:44:32 Running WaitElement.
05.04.2014 14:44:34 End waiting.
05.04.2014 14:44:34 Running CustomUpdateEngine.ReturnCodeElement
05.04.2014 14:44:34 Return Code Method is : Variable
05.04.2014 14:44:34 Returning :  1
Can everyone write me, how i have to create the customer update with a powershell script?

Viewing all articles
Browse latest Browse all 3825

Trending Articles