-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run as admin and run at startup options do not persist after restart #20457
Comments
I have the same issue. I launch Powertoys from a short cut that has the properties set to run as admin. After the UI is open underneath the "Administrator mode" setting it shows "Running as administrator" and "Restart PowerToys as administrator" is greyed out. "Always run as administrator" is not selected, though I have had this option selected for as long as Powertoys has been released. After I select "Always run as administrator", when I close the UI it reverts back to what it was before. Also the option to enable Awake won't stay set either. I turn it on, exit the UI and it's turned back off. I have also tried running directly from the exe in folder C:\Program Files\PowerToys, then selecting "Restart PowerToys as administrator". The UAC asks for permissions, and like above it shows "Running as administrator". But closing the UI still results in the settings reverting back. I know this isn't just a UI issue because I normally use Awake to keep my windows logon from going to sleep. With PowerToys running in the system tray Windows locks at the 15 minute inactivity timer showing that the Awake option isn't working. If I leave the PowerToys UI open, but minimized then Awake prevents Windows from locking as it should. If I select the option to "Report Bug" it pops up and says the zip file was created on my desktop. But there's no zip file there. I've tried refreshing my desktop and running "Report Bug" multiple times. Nothing. Also tried rebooting. |
Thank you for the workaround: "If I leave the PowerToys UI open, but minimized then Awake prevents Windows from locking as it should." FYI: There is a workaround also for the bug report issue: |
I installed 62.1 and tried again to create a "Report Bug" zip file to help with triaging this issue (Running as admin settings doesn't retain), but Report Bug still doesn't create a zip file on the desktop. And yes, I created folder %userprofile%\AppData\LocalLow\Microsoft\PowerToys\Logs. Anyone researching the Run as Admin and Awake settings not persisting? |
FYI - I was able to fix mine by manually modifying the settings.json file in folder %userprofile%\AppData\Local\Microsoft\PowerToys Not sure it's totally correct, but it's working for me. I changed "is_elevate", "run_elevated", and "is_admin" to true. I don't have "Run at startup" toggled on because my user account is a standard account and I need to start PowerToys manually so I can enter my admin credentials. But I'm guessing you can change value "startup" to true to fix that as well.
|
The above fixed the 'run as admin' and 'run elevated' issues, but not the 'run at startup' |
As a standard user, the above fix worked. As admin the startup setting also worked after I placed a shortcut in the C:\Program data\Microsoft\Windows\Programs\Startup folder. I should be able to replicate this for the standard user. |
Microsoft PowerToys version
0.61.1
Running as admin
Area(s) with issue?
Settings
Steps to reproduce
Run powertoys as user.
Choose "Always run as admin"
Choose "Run at startup"
Exit from menu bar.
Exit from taskbar icon.
Check Task manager processes - not listed.
Reboot
Check Task manager processes - not listed.
goto step 1
✔️ Expected Behavior
Powertoys to run at startup
Run as Admin & at startup options to persist in "on" state.
❌ Actual Behavior
Powertoys does not run at startup
Run as Admin & at startup options are in "off" state.
Other Software
No response
The text was updated successfully, but these errors were encountered: