How to execute a PowerShell command

  • Thread starter Thread starter logano
  • Start date Start date
L

logano

Guest
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

View attachment 2559

Cordially, Logan
 
Hello Logan,
In the command line box you need to type this quote "-Command yourcommand"
 
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