Run 'exe' application with admin credentials with powershell

Hello everyone,

I need your help please!

i am newbie in powershell, i need a script to run an exe application from users desktop for example with admin credentials without. like for example to deploy 7zip.exe

First of all, i created a .bat file to run my powershell script:

cd c:\Windows\System32\WindowsPowerShell\v1.0
powershell.exe -windowstyle Minimized -NoProfile -ExecutionPolicy Bypass -Command
“&‘C:\Users\kevin\Desktop\test\script1.ps1’”

script1.ps1: so that’s the instructions i need to execute the EXE application

Can you help me please?

Thank you in advance.

So you’re wanting help to run the exe in powershell?

There is no secure way to bypass the UAC with a simple script. It would expose the admin credentials to the user. You can use software deployment tools like SCCM or even GPOs to distribute software in an enterprise environment.