How to execute a PowerShell command

logano

New Member
Hello, I create this post because I need help to execute a powershell command on ntlite.

I have a screen to show you how I tried to do itz

Capture.PNG

Cordially, Logan
 
If you have 1 batch command entered, ntlite adds a cmd file \sources\$OEM$\$$\Setup\Scripts\SetupComplete.cmd

you can add a line to this cmd like: (which runs a file named Package-Reinstall.ps1 in the same folder...)
powershell.exe -ExecutionPolicy UnRestricted -file "%~dp0\Package-Reinstall.ps1"
 
Back
Top