Hi,
I'm new to NTLite.
I have been looking to the forum for executing a powershell script as part of "Post-Setup"
I have created a "Setup" folder in the root of the image, and added a test .ps1 file.
In Post-Setup I have added:
"powershell.exe" with the parameters "-ExecutionPolicy Bypass -File C:\Setup\testPS.ps1"
The testPS.ps1 file just contains "New-Item C:\tmp\file01"
(should create an empty file "file01" in the folder "tmp"
However it does not work.
Any insigt as to what I'm doing wrong?
Thank you in advance.
I'm new to NTLite.
I have been looking to the forum for executing a powershell script as part of "Post-Setup"
I have created a "Setup" folder in the root of the image, and added a test .ps1 file.
In Post-Setup I have added:
"powershell.exe" with the parameters "-ExecutionPolicy Bypass -File C:\Setup\testPS.ps1"
The testPS.ps1 file just contains "New-Item C:\tmp\file01"
(should create an empty file "file01" in the folder "tmp"
However it does not work.
Any insigt as to what I'm doing wrong?
Thank you in advance.