Reply To: Windows Powershell ISE (As Administrator with two ps1-files)

Home Forums Scripting PowerShell Windows Powershell ISE (As Administrator with two ps1-files) Reply To: Windows Powershell ISE (As Administrator with two ps1-files)

dreivilo47
dreivilo47
Participant
#614221

Thank you for your answer/solution wullieb1.
You have forgotten “-Verb RunAs” to run it as administrator.

So, the full line is:
Start-Process -FilePath powershell_ise.exe -ArgumentList “C:\test\test1.ps1,C:\test\test2.ps1” -Verb RunAs

Thank you very much for your support wullieb1, my problem is solved!