Share via


Task Scheduler - Run At Logon - Any User

Question

Tuesday, April 4, 2017 11:09 AM

Is there any way to run a task at logon for any user but have it affect the current windows logged on users registry. I need to write to the registry of each user but that user does not have access to any registry editing tools within windows.

All replies (2)

Thursday, April 6, 2017 11:49 AM âś…Answered

I searched and was able to come up with a powershell script that does exactly what we want when ran. It runs as the SYSTEM account and looks at the current user and modifies there registry keys.

https://gallery.technet.microsoft.com/scriptcenter/Write-to-HKCU-from-the-3eac1692


Wednesday, April 5, 2017 2:34 AM

Hi rlawrimore,

What is the exact main purpose and what is the exact applying environment? What is the version you are using(home, Pro or Enterprise)?

If the main purpose is to add a registry key for the user and you are using Windows 10 Pro or Enterprise version, we could try startup script or logon script gpo.
Computer Configuration\Windows Settings\Scripts (Startup/Shutdown) .
User Configuration\Windows Settings\Scripts (Logon/Logoff).

As for the task schedule, we could try the options in the "General" properties of tak schedule.

If I have misunderstood the issue, please feel free to let me know that.

Best regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].