Disable Startup Programs

Copper Contributor

Hi Guys,


I'm trying to create a powershell script to disable the startup programs. I was able to disable the programs in HKLM  but it doesn't disable the remaining programs from HKCU. If anyone has worked on the script, then plz share. Thank you




2 Replies

When targetting the HKCU you need to apply the powershell script to the logged in user instead of the system account.. If you are blocking powershell you will need to first catch the logged in user sid id, so you can target the key from hkey_users\sidid
Hi, Ben Can you share the script, please?