I'm trying to create simple task sequence in MDT. One of the points is run PowerShell script located not in %SCRIPTROOT% but on external server in the same LAN.
TS is always failed with this error:
What I tried so far was create standard step:
"Run PowerShell Script", and in that window just wrote full path of the script:
Also I was try to create step for Command Line:
"C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy bypass -file \\MyServer\SomeFolder\SomeScript.ps1
So my question here is - how to proper create step to run PowerShell script stored on external server? I was looking on many web pages but don't find any clues.
I will be grateful for any tips.