Call a PowerShell script on Windows Modern devices

E
EdSed
RMS Omega Technologies
I would like to create a package for Windows Modern devices that will send some files over and then run a PowerShell .ps1 script. Is this possible?
 
Is this the proper way to call a batch file using a script delivered via a package?
c:\basys\Retread.Mfg.Client.Windows_1.37.4.0_Test\ActiveSetupConfiguration.bat
It does not run on the target device
 
2 years ago
Windows
ANSWERS
RC
Raymond Chan Diamond Contributor
2 years ago

Yes.  What you want to do is supported.

M
MNMOD@SOTI
2 years ago

Hi EdSed,

Thank you for posting on SOTI Pulse!

Raymond is right. This is possible. Make sure to add a Post-Install Script to the package after adding the Powershell script file to the package and add full path to executable, as well as parameters to bypass execution policy and the noexit parameter (if you want the console window to persist after execution) and then add the path to the script.

If you require any more assistance, please feel free to let us know. If not, feel free to mark the post that solved this issue as solution.


Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net l Discussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter