# Is there any code to not display the yes/no (UAC - User Account Control) message to run as adm?

**URL:** <https://discuss.python.org/t/is-there-any-code-to-not-display-the-yes-no-uac-user-account-control-message-to-run-as-adm/26549>\
**Category:** Python Help\
**Tags:** help\
**Created:** [May 5, 2023, 10:34pm UTC](https://discuss.python.org/t/is-there-any-code-to-not-display-the-yes-no-uac-user-account-control-message-to-run-as-adm/26549 "2023-05-05T22:34:16Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![dstromberg](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/dstromberg/32/9047_2.png) [@dstromberg](https://discuss.python.org/u/dstromberg)\
**Post date:** [May 8, 2023, 1:08pm UTC](https://discuss.python.org/t/is-there-any-code-to-not-display-the-yes-no-uac-user-account-control-message-to-run-as-adm/26549/24 "2023-05-08T13:08:14Z")

</div>

> [@Rieidi](#):
>
> I said to see if there were any typos

Usually an IDE or Text Editor will autodetect typos. Are you editing in Notepad or something?

---

<div class="post-metadata">

**Author:** ![ReverendJim](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@ReverendJim](https://discuss.python.org/u/ReverendJim)\
**Post date:** [May 13, 2023, 3:36pm UTC](https://discuss.python.org/t/is-there-any-code-to-not-display-the-yes-no-uac-user-account-control-message-to-run-as-adm/26549/25 "2023-05-13T15:36:17Z")

</div>

Two possible ways on a per-script basis. First is to look up a program, “elevatedshortcut.exe”. The other will take a little research. It involves creating a task scheduler entry. Both methods will allow you to create a shortcut (link) that can run as admin without requiring UAC.

Both methods will do what you want without disabling UAC globally.

see [https://www.thewindowsclub.com/create-elevated-shortcut-run-programs-bypass-uac](https://www.thewindowsclub.com/create-elevated-shortcut-run-programs-bypass-uac)

---

<div class="post-metadata">

**Author:** ![Rieidi](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rieidi/32/16322_2.png) [@Rieidi](https://discuss.python.org/u/Rieidi)\
**Post date:** [May 13, 2023, 8:21pm UTC](https://discuss.python.org/t/is-there-any-code-to-not-display-the-yes-no-uac-user-account-control-message-to-run-as-adm/26549/26 "2023-05-13T20:21:10Z")

</div>

> [@dstromberg](#):
>
> Usually an IDE or Text Editor will autodetect typos. Are you editing in Notepad or something?

in visual studio and IDLE

---

<div class="post-metadata">

**Author:** ![Rieidi](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rieidi/32/16322_2.png) [@Rieidi](https://discuss.python.org/u/Rieidi)\
**Post date:** [May 13, 2023, 8:24pm UTC](https://discuss.python.org/t/is-there-any-code-to-not-display-the-yes-no-uac-user-account-control-message-to-run-as-adm/26549/27 "2023-05-13T20:24:06Z")

</div>

I’m going to create a service on windows because then it will run automatically and without showing the UAC and that’s what I need

[Previous page](https://discuss.python.org/t/is-there-any-code-to-not-display-the-yes-no-uac-user-account-control-message-to-run-as-adm/26549.md?page=1)
