Install CMD and PowerShell scripts

lemegapro

Member
Messages
40
Reaction score
2
Hello everyone,
I have 2 questions to ask you for Windows 11 ISOs:
I would like to install software with a script.cmd: InstallerBLUE.cmd
How to do a silent installation with NtLite?
I would also like to use Powershell scripts.
How and where to paste the scripts:
ex script: Get-AppxPackage -AllUsers *zunemusic* | Remove-AppxPackage
With all my thanks for your help
 
NTLite recognizes CMD and PowerShell scripts in the form of *.bat, *.cmd, and *.ps1 files.

From Post-Setup, simply add your script file with Add File. Parameters are entirely optional, if your script doesn't expect any arguments – then no parameters are required.

For one-line commands, you would run Add Command like:

CommandParameters
cmd.exe/c "copy C:\Windows\System32\notepad.exe C:\temp\file"
powershell.exe"Get-AppxPackage -AllUsers *zunemusic* | Remove-AppxPackage"
 
Thanks a lot for your help.
I didn't really understand how to install the.cmd. In which directory should I put InstallerBLUE.cmd
Can you tell me exactly the command line to install: InstallerBLUE.cmd
is this: /c "copy C:\Windows\System32\notepad.exe C:\temp\file\InstallerBLUE.cmd"
Thank you for your details
 
You don't install any batch files. NTLite will take your Added file, copy it to temporary staging folder, run the copied script from Post-Setup, and then remove the script.
 
Back
Top