I have a Powershell script that opens another program and my overall goal is to run these under a currentuser account, rather than a system account. For now I have the following.
The below works well however, it opens a "user account control" popup which I'm trying to avoid. Any suggestions would be greatly appreciated.
override wait
hidden=true
Completion=process
runas=currentuser
wait powershell.exe /C "C:\Drivers\OEM\Setup\examplescript.ps1" /SILENT /SP /Norestart
I've tried changing the silent switches within the PowerShell script that opens the HPImageAssistant tool but that did not work.