# Run 'exe' application with admin credentials with powershell

**URL:** <https://forums.powershell.org/t/run-exe-application-with-admin-credentials-with-powershell/14130>\
**Category:** PowerShell Help\
**Created:** [April 9, 2020, 3:32pm UTC](https://forums.powershell.org/t/run-exe-application-with-admin-credentials-with-powershell/14130 "2020-04-09T15:32:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [April 9, 2020, 3:32pm UTC](https://forums.powershell.org/t/run-exe-application-with-admin-credentials-with-powershell/14130/1 "2020-04-09T15:32:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [April 9, 2020, 6:54pm UTC](https://forums.powershell.org/t/run-exe-application-with-admin-credentials-with-powershell/14130/2 "2020-04-09T18:54:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [April 10, 2020, 2:54am UTC](https://forums.powershell.org/t/run-exe-application-with-admin-credentials-with-powershell/14130/3 "2020-04-10T02:54:43Z")

</div>

> [@](#):
>
> … a script to run an exe application from users desktop for example with admin credentials without. …

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.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:29pm UTC](https://forums.powershell.org/t/run-exe-application-with-admin-credentials-with-powershell/14130/4 "2024-05-16T20:29:58Z")

</div>

Closed on May 16, 2024, 8:29pm UTC


