Microsoft Technical Takeoff: Windows and Microsoft Intune
Oct 24 2022 07:00 AM - Oct 27 2022 12:00 PM (PDT)

Disable Startup Programs

New 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




1 Reply

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