mdt run powershell script from "network" share

611 views Asked by At

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: enter image description here

What I tried so far was create standard step: "Run PowerShell Script", and in that window just wrote full path of the script: enter image description here

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.

0

There are 0 answers