[REQUEST] Powershell to disable all statup programs

Yosebas84

Active Member
Reaction score
69
Location
Andorra
Hey everyone,

I'm trying to create a powershell script that would allow me to disable all the programs that run at the statup of win10, 7, 8 and 8.1, so i found the following script:

https://gallery.technet.microsoft.com/scriptcenter/55d79222-8da4-4e63-a4fa-791ddbfb5285

I gave it a try but looks like Skype for business resists to be disabled, if you check the script there is a portion of it that goes like this:

$colRegLocs=@(
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run",
"HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run",
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run",
"HKCU:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run";
)

$colSafeVendors=@(
'Alps Electric Co., Ltd.', #Alps Touchpad
'Microsoft Corporation', #Office 2010, Security Essentials (Virus Scan)
'Dell Inc.', #Dell Wireless Card Tray, Control Point
'Smith Micro Software, Inc.', #Dell Connection Manager
'Intel Corporation', #Intel Event Monitor
'NVIDIA Corporation', #NVIDIA Display Properies, Hotkey Service, nView Wizard
'IDT, Inc.', #PC Audio Tray
'Broadcom Corporation', #Dell Security Device and Task Status
'Trend Micro Inc.'; #Virus Scan

which allows to select "safe company vendors" to not disable/skip, since i'm playing with a VM i decided to remove ALL that was there and see what happens. so far so good , nothing exploded, but i see that the keys on HKCU do not get deleted.. anyone have an idea why? my scripting skills are VERY limited (never liked programming that's why.. ) maybe key syntax?

Thanks!!
 
Back
Top