Run AltDrag elevated with no UAC prompt #168
dogenzenji8
started this conversation in
Show and tell
Replies: 1 comment
-
Nice trick indeed, however keep in mind that there have been a PR to fix the hang on sleep/resume and DPI changes #133. You might be interested in applying the said patch for yourself. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks so much for creating and maintaining AltDrag @stefansundin! I use it so often that I was getting annoyed at AltDrag hanging after resuming from sleep on Windows 11, then having to manually kill and restart the app to use it again. I wanted to share something I discovered while coming up with a workaround. I settled on using Task Scheduler to execute
taskkill
then restart the app on resume from sleep when I noticed the option of "Run with highest privileges" which I promptly enabled. I then noticed that after executing this task, not only did it work, but AltDrag was running elevated without me ever having been prompted by UAC. So I decided I would always want AltDrag running elevated without being prompted so added a second trigger to the task to also execute on log in and configured AltDrag to not run on startup, but this didn't work, AltDrag always started in a hung state. I then changed AltDrag back to running on startup and configured the second task trigger to delay by one minute and viola! Now AltDrag runs elevated without UAC prompt whether I turn on, reboot, or resume my PC from sleep. Below is an XML export of the task which anyone can use after tweaking the AltDrag path and Windows user details. I hope you and others find this useful!Beta Was this translation helpful? Give feedback.
All reactions