microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.88k stars 6.59k forks source link

Run at startup only works for a single user account #25858

Open pat15312 opened 1 year ago

pat15312 commented 1 year ago

Microsoft PowerToys version

0.69.0

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

General

Steps to reproduce

  1. Have two users; one a domain account and another a local account. Both users should have admin rights.
  2. Log on with the first user.
  3. Open PowerToys an enable "Run at startup".
  4. Log off and then back on again as the same user.
  5. Test to confirm PowerToys has automatically started (expected behaviour).
  6. Log off and then log on as the second user.
  7. Repeat steps 3, 4 and 5
  8. Log off and then log back on as the first user.
  9. Despite having previously set "Run at startup" for this user, you will find that PowerToys does not automatically start.
  10. Open Task Scheduler. Drill down to the PowerToys folder. You will find a single "Autorun for xxx" task is present, with the user account details stored in the task being for the second user.

IMPORTANT - If when testing you find that PowerToys has created two unique tasks for each user, then the underlying issue may be due to the task being overwritten when both users have the same name. In my situation, I use firstname.lastname for both user accounts, with the only difference being the username prefix i.e. DOMAIN\firstname.lastname vs COMPUTER\firstname.lastname.

✔️ Expected Behavior

Setting "Run at startup" to "On" for a particular user would create a Task Scheduler entry that is unique to that user.

❌ Actual Behavior

PowerToys alters all Tasks under the "PowerToys" folder in Task Scheduler in the following ways:

The issue this creates is that only one user account at a time can have PowerToys automatically start on logon.

Other Software

Windows 11 Pro 22H2

cinnamon-msft commented 1 month ago

Are you still experiencing this issue? /needinfo

pat15312 commented 3 weeks ago

@cinnamon-msft yes this is unfortunately still not working for me. Power Toys will autorun on login for whichever user last toggled "Run at startup" option in Settings.