Skip to content

[New Script]: Disable Additional Services and Programs (as of 07-23-25) (Part 1) #558

@P0W3

Description

@P0W3

Operating system

Windows

Name of the script

Disable Additional Services and Programs (as of 07-23-25) (Part 1)

Documentation/References

Disable UAC File Virtualization (luafv)

The User Account Control File Virtualization, formerly known as the Least-Authorized User Account File Virtualization Filter Driver, also known as LUAFV, is a Windows feature that redirects file and registry write operations for legacy applications to per-user locations, allowing them to run with standard user privileges without needing explicit administrator rights. This redirection is transparent to the application, making it appear as if it's writing to a protected system location when it's actually writing to a user-specific area. Using this script to disable LUAFV could lead to compatibility issues with older applications.

Reference 1: https://www.file.net/process/luafv.sys.html
Reference 2: https://web.archive.org/web/20250723185432/https://trainsec.net/library/windows-internals/understanding-uac-virtualization/

----

Disable Message Queuing Access Control (mqac)

Message Queuing Access Control (MQAC) is associated with Microsoft Message Queuing (MSMQ), a messaging protocol that enables reliable, asynchronous communication between distributed applications. Access control in MSMQ is centrally important for determining rights to send, receive, or manage queues. This script disables MQAC, including access control in MSMQ.

Reference 1: https://en.wikipedia.org/wiki/Microsoft_Message_Queuing
Reference 2: https://learn.microsoft.com/en-us/previous-versions/windows/desktop/msmq/ms700281(v=vs.85)
Reference 3: https://learn.microsoft.com/en-us/dotnet/api/system.messaging.messagequeueaccesscontrolentry?view=netframework-4.8.1
Reference 4: https://learn.microsoft.com/en-us/openspecs/windows_protocols/mc-mqac/fa557f89-f714-4ed2-a42f-965b02e7a6e5
Reference 5: https://learn.microsoft.com/en-us/openspecs/windows_protocols/mc-mqac/3b7be3f7-651c-4f9c-930b-a9a7c4355ad8

----

Disable 1394 OHCI Compliant Host Controller (1394ohci)

Reference 1: https://web.archive.org/web/20250723191719/https://learn.microsoft.com/en-us/answers/questions/4358469/1394-ohci-bus-controller
Reference 2: https://batcmd.com/windows/10/services/1394ohci/

----

Disable 3ware (3ware)

Reference: https://batcmd.com/windows/10/services/3ware/

----

Disable ACPI Processor Aggregator Driver (acpipagr)

Reference 1: https://batcmd.com/windows/10/services/acpipagr/
Reference 2: https://web.archive.org/web/20250723192924/https://learn.microsoft.com/en-us/answers/questions/3902024/acpy-sys-having-a-lot-of-latency
Reference 3: https://web.archive.org/web/20250723193113/https://forums.linuxmint.com/viewtopic.php?t=436475
Reference 4: https://www.file.net/process/acpipagr.sys.html

----

Disable ACPI Power Meter Driver (acpipmi)

Reference 1: https://web.archive.org/web/20250723193450/https://learn.microsoft.com/en-us/windows-hardware/drivers/powermeter/acpi-power-meter-interface
Reference 2: https://batcmd.com/windows/10/services/acpipmi/

----

Disable ACPI Wake Alarm Driver (acpitime)

Reference: https://batcmd.com/windows/10/services/acpitime/

----

Disable PMC-Sierra SPC8x6G SAS/SATA Controller Driver (adp80xx)

Reference: https://batcmd.com/windows/10/services/adp80xx/

----

Disable AMD K8 Processor Driver (amdk8)

Reference 1: https://batcmd.com/windows/11/services/amdk8/
Reference 2: https://www.file.net/process/amdk8.sys.html

----

Disable AMD SBS Controller Driver (amdsbs)

Reference 1: https://batcmd.com/windows/10/services/amdsbs/
Reference 2: https://web.archive.org/web/20250723194828/https://www.reddit.com/r/AMDHelp/comments/lx6x3s/amd_chipset_drivers_optional_components/?0

----

Disable AppID Driver (appid)

Reference 1: https://web.archive.org/web/20250723200420/https://learn.microsoft.com/en-us/answers/questions/454021/computerhkey-local-machinesystemcurrentcontrolsets
Reference 2: https://batcmd.com/windows/10/services/appid/

----

Disable Smartlocker Filter Driver (applockerfltr)

Reference 1: https://batcmd.com/windows/10/services/applockerfltr/
Reference 2: https://revertservice.com/10/applockerfltr/

----

Disable Adaptec SAS/SATA-II RAID Storport's Miniport Driver (arcsas)

Reference: https://batcmd.com/windows/11/services/arcsas/

----

Disable RAS Asynchronous Media Driver (asyncmac)

Reference 1: https://revertservice.com/10/asyncmac/
Reference 2: https://revertservice.com/7/asyncmac/

----

Disable QLogic Network Adapter VBD (b06bdrv)

Reference: https://batcmd.com/windows/11/services/b06bdrv/

----

Disable bcmfn2 Service (bcmfn2)

Reference: https://batcmd.com/windows/11/services/bcmfn2/

----

Disable Microsoft Bluetooth A2dp driver (btha2dp)

Reference: https://web.archive.org/web/20250724040755/https://learn.microsoft.com/en-us/answers/questions/3260195/driver-for-bluetooth-sound-system-(btha2dp)-was-no

----

Disable Bluetooth Enumerator Service (bthenum)

Reference: https://batcmd.com/windows/11/services/bthenum/

----

Disable Microsoft Bluetooth Hands-Free Profile driver (bthhfenum)

Reference: https://web.archive.org/web/20250724041300/https://learn.microsoft.com/en-us/answers/questions/4073154/bluetooth-device-group-btha2dp-sys-bthhfenum-sys-a

----

Disable Bluetooth Low Energy Driver (bthleenum)

Reference: https://batcmd.com/windows/10/services/bthleenum/

----

Disable Bluetooth Radio Driver (bthmini)

Reference: https://batcmd.com/windows/10/services/bthmini/

----

Disable Bluetooth Port Driver (bthport)

Reference: https://batcmd.com/windows/10/services/bthport/

----

Disable Bluetooth Radio USB Driver (bthusb)

Reference: https://revertservice.com/10/bthusb/

----

Disable Chelsio iSCSI VMiniport Driver (cht4iscsi)

Reference 1: https://web.archive.org/web/20250724043023/https://www.systemlookup.com/Drivers/12365-cht4sx64_sys.html
Reference 2: https://web.archive.org/web/20221006050043/https://service.chelsio.com/downloads/Microsoft/Drivers/Chelsio-Uboot-2.1.0.0/Chelsio-UnifiedBoot-UserGuide.pdf

----

Disable Consumer IR Devices (circlass)

Reference: https://batcmd.com/windows/11/services/circlass/

----

Disable Parallel Port Driver (parport)

Reference: https://batcmd.com/windows/11/services/parport/

----

Disable Scp Virtual Bus Driver (scpvbus)

Reference: https://web.archive.org/web/20250724045430/https://github.com/nefarius/ScpToolkit/issues/266

----

Disable Serenum Filter Driver (serenum)

Reference: https://web.archive.org/web/20250724050229/https://learn.microsoft.com/en-us/samples/microsoft/windows-driver-samples/serenum-sample/

----

Disable Serial Port Driver (serial)

Reference: https://web.archive.org/web/20250724051241/https://learn.microsoft.com/en-us/answers/questions/3741564/win-22h2-serial-driver-issue

----

Disable CimFS (cimfs)

Reference: https://revertservice.com/10/cimfs/

----

Disable DFS Namespace Client Driver (dfsc)

Reference: https://web.archive.org/web/20250724051929/https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/dfs-namespaces-service-configuration-data

----

Disable Microsoft NDIS Capture (ndiscap)

Reference: https://batcmd.com/windows/10/services/ndiscap/

----

Disable NetBIOS Interface (netbios)

Reference: https://web.archive.org/web/20250724052518/https://techcommunity.microsoft.com/discussions/windows11/disabling-netbios-name-service-via-new-admx--gpo-does-not-work-as-expected-bug/3839492

----

Disable NetBT (netbt)

Reference: https://batcmd.com/windows/10/services/netbt/

----

Disable UCPD (ucpd)

Reference 1: https://web.archive.org/web/20250724053240/https://oofhours.com/2025/05/02/what-is-windows-11s-new-ucpd-feature/
Reference 2: https://web.archive.org/web/20250724053937/https://www.ghacks.net/2024/04/08/new-sneaky-windows-driver-ucdp-stops-non-microsoft-software-from-setting-defaults/

----

Disable Virtual WiFi Filter Driver (vwififlt)

Reference 1: https://www.file.net/process/vwififlt.sys.html
Reference 2: https://batcmd.com/windows/10/services/vwififlt/

----

Disable Microsoft Hyper-V VHDPMEM BTT Filter (bttflt)

Reference: https://batcmd.com/windows/11/services/bttflt/

----

Disable Device Management Virtual Service Client (dmvsc)

Reference: https://web.archive.org/web/20250724055113/https://learn.microsoft.com/en-us/windows/release-health/status-windows-10-22h2

----

Disable QLogic 10 Gigabit Ethernet Adapter VBD (ebdrv)

Reference: https://batcmd.com/windows/11/services/ebdrv/

----

Disable Microsoft Hardware Error Device Driver (errdev)

Reference: https://batcmd.com/windows/10/services/errdev/

----

Disable Filetrace (filetrace)

Reference: https://batcmd.com/windows/10/services/filetrace/

----

Disable Microsoft Hyper-V Generation Counter (gencounter)

Reference: https://batcmd.com/windows/10/services/gencounter/

----

Disable Microsoft Bluetooth HID Miniport (hidbth)

Reference: https://web.archive.org/web/20250724055841/https://learn.microsoft.com/en-us/windows-hardware/drivers/hid/hid-transports

----

Disable Microsoft Infrared HID Driver (hidir)

Reference: https://batcmd.com/windows/10/services/hidir/

----

Disable Hewlett-Packard Smart Array SAS/SATA Controller Media Driver (hpsamd)

Reference: https://web.archive.org/web/20250724062130/https://support.hpe.com/connect/s/softwaredetails?language=en_US&collectionId=MTX-b64849fcf5ee4162&tab=releaseNotes
Reference: https://batcmd.com/windows/10/services/hpsamd/

----

Disable Microsoft VMBus Synthetic Keyboard Driver (hyperkbd)

Reference 1: https://web.archive.org/web/20250724064307/https://www.exefiles.com/en/sys/hyperkbd-sys/
Reference 2: https://web.archive.org/web/20250724065917/https://learn.microsoft.com/en-us/answers/questions/1086611/problems-adding-windows-10-enterprise-(22h2)-hyper

----

Disable Microsoft Hyper-V Video Driver (hypervideo)

Reference: https://web.archive.org/web/20250724070242/https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/get-started/install-hyper-v?tabs=powershell

----

Disable i8042 Keyboard and PS/2 Mouse Port Driver (i8042prt)

Reference: https://www.file.net/process/i8042prt.sys.html

----

Disable Mellanox/NVIDIA InfiniBand Bus/AL (Filter Driver) (ibbus)

Reference: https://batcmd.com/windows/11/services/ibbus/

----

Disable Intelligent Platform Management Interface Driver (ipmidrv)

Reference: https://web.archive.org/web/20250724072458/https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ipmiprv/ipmi-provider

----

Disable IP Network Address Translator (ipnat)

Reference: https://revertservice.com/10/ipnat/

----

Disable Intel® Processor Trace (ipt)

Reference 1: https://web.archive.org/web/20250724073322/https://github.com/ionescu007/winipt
Reference 2: https://web.archive.org/web/20250724073811/https://www.intel.com/content/www/us/en/support/articles/000059254/processors/intel-xeon-processors.html
Reference 3: https://web.archive.org/web/20250724074056/https://www.intel.com/content/www/us/en/support/articles/000056730/processors.html
Reference 4: https://web.archive.org/web/20250724074157/https://www2.lauterbach.com/pdf/trace_intel_pt.pdf

----

Disable LSI SAS Controller (lsi_sas)

Reference 1: https://batcmd.com/windows/10/services/lsi-sas/
Reference 2: https://web.archive.org/web/20250724074425/https://community.broadcom.com/vmware-cloud-foundation/discussion/lsi-sas-and-other-disk-errors-in-several-vms-all-of-a-sudden

----

Disable LSI SAS 2.0 Controller (lsi_sas2i)

Reference: https://batcmd.com/windows/10/services/lsi-sas2i/

----

Disable LSI SAS3 Controller (lsi_sas3i)

Reference: https://batcmd.com/windows/10/services/lsi-sas3i/

----

Disable LSI_SSS (lsi_sss)

Reference: https://batcmd.com/windows/10/services/lsi-sas/

----

Disable MBB Network Adapter Class Extension (mbbcx)

Reference: https://batcmd.com/windows/10/services/mbbcx/

----

Disable LSI MegaRAID SAS Controller Driver (megasas)

Reference: https://batcmd.com/windows/10/services/megasas/

----

Disable LSI/Avago/Broadcom MegaRAID SAS 2i Controller (megasas2i)

Reference: https://batcmd.com/windows/10/services/megasas2i/

----

Disable LSI/Avago/Broadcom MegaRAID SAS 35i Controller (megasas35i)

Reference 1: https://archive.ph/G30x8
Reference 2: https://batcmd.com/windows/10/services/megasas35i/

----

Disable LSI/Avago/Broadcom MegaRAID SAS R Controller (megasr)

Reference: https://batcmd.com/windows/10/services/megasr/

----

Disable Microsoft Bluetooth AVRCP Transport Driver (microsoft_bluetooth_avrcptransport)

Reference: https://batcmd.com/windows/10/services/microsoft-bluetooth-avrcptransport/

----

Disable Mellanox/NVIDIA ConnectX Bus Enumerator (mlx4_bus)

Reference: https://web.archive.org/web/20250724183207/https://enterprise-support.nvidia.com/s/article/mellanox-winof-driver-powershell-commands

----

Disable Modem (modem)

Reference 1: https://archive.ph/uuULi
Reference 2: https://www.file.net/process/modem.sys.html

----

Disable WebDav Client Redirector Driver (mrxdav)

Reference 1: https://www.file.net/process/mrxdav.sys.html
Reference 2: https://revertservice.com/10/mrxdav/
Reference 3: https://batcmd.com/windows/10/services/mrxdav/

----

Disable Microsoft MAC Bridge (msbridge)

Reference 1: https://revertservice.com/10/msbridge/
Reference 2: https://batcmd.com/windows/10/services/msbridge/

Code

:: ----------------------------------------------------------
:: -------Disable UAC File Virtualization (luafv)--------
:: ----------------------------------------------------------
echo --- Disable UAC File Virtualization (luafv)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\luafv!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\luafv'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\luafv' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Message Queuing Access Control (mqac)--------
:: ----------------------------------------------------------
echo --- Disable Message Queuing Access Control (mqac)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\mqac!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\mqac'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\mqac' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable 1394 OHCI Compliant Host Controller (1394ohci)--------
:: ----------------------------------------------------------
echo --- Disable 1394 OHCI Compliant Host Controller (1394ohci)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\1394ohci!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\1394ohci'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\1394ohci' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable 3ware (3ware)--------
:: ----------------------------------------------------------
echo --- Disable 3ware (3ware)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\3ware!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\3ware'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\3ware' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable ACPI Processor Aggregator Driver (acpipagr)--------
:: ----------------------------------------------------------
echo --- Disable ACPI Processor Aggregator Driver (acpipagr)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\acpipagr!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\acpipagr'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\acpipagr' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable ACPI Power Meter Driver (acpipmi)--------
:: ----------------------------------------------------------
echo --- Disable ACPI Power Meter Driver (acpipmi)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\acpipmi!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\acpipmi'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\acpipmi' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable ACPI Wake Alarm Driver (acpitime)--------
:: ----------------------------------------------------------
echo --- Disable ACPI Wake Alarm Driver (acpitime)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\acpitime!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\acpitime'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\acpitime' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable PMC-Sierra SPC8x6G SAS/SATA Controller Driver (adp80xx)--------
:: ----------------------------------------------------------
echo --- Disable PMC-Sierra SPC8x6G SAS/SATA Controller Driver (adp80xx)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\adp80xx!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\adp80xx'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\adp80xx' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable AMD K8 Processor Driver (amdk8)--------
:: ----------------------------------------------------------
echo --- Disable AMD K8 Processor Driver (amdk8)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\amdk8!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\amdk8'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\amdk8' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable AMD SBS Controller Driver (amdsbs)--------
:: ----------------------------------------------------------
echo --- Disable AMD SBS Controller Driver (amdsbs)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\amdsbs!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\amdsbs'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\amdsbs' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable AppID Driver (appid)--------
:: ----------------------------------------------------------
echo --- Disable AppID Driver (appid)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\appid!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\appid'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\appid' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Smartlocker Filter Driver (applockerfltr)--------
:: ----------------------------------------------------------
echo --- Disable Smartlocker Filter Driver (applockerfltr)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\applockerfltr!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\applockerfltr'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\applockerfltr' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Adaptec SAS/SATA-II RAID Storport's Miniport Driver (arcsas)--------
:: ----------------------------------------------------------
echo --- Disable Adaptec SAS/SATA-II RAID Storport's Miniport Driver (arcsas)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\arcsas!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\arcsas'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\arcsas' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable RAS Asynchronous Media Driver (asyncmac)--------
:: ----------------------------------------------------------
echo --- Disable RAS Asynchronous Media Driver (asyncmac)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\asyncmac!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\asyncmac'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\asyncmac' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable QLogic Network Adapter VBD (b06bdrv)--------
:: ----------------------------------------------------------
echo --- Disable QLogic Network Adapter VBD (b06bdrv)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\b06bdrv!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\b06bdrv'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\b06bdrv' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable bcmfn2 Service (bcmfn2)--------
:: ----------------------------------------------------------
echo --- Disable bcmfn2 Service (bcmfn2)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\bcmfn2!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\bcmfn2'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\bcmfn2' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Bluetooth A2dp driver (btha2dp)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Bluetooth A2dp driver (btha2dp)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\btha2dp!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\btha2dp'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\btha2dp' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Bluetooth Enumerator Service (bthenum)--------
:: ----------------------------------------------------------
echo --- Disable Bluetooth Enumerator Service (bthenum)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\bthenum!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\bthenum'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\bthenum' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Bluetooth Hands-Free Profile driver (bthhfenum)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Bluetooth Hands-Free Profile driver (bthhfenum)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\bthhfenum!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\bthhfenum'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\bthhfenum' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Bluetooth Low Energy Driver (bthleenum)--------
:: ----------------------------------------------------------
echo --- Disable Bluetooth Low Energy Driver (bthleenum)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\bthleenum!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\bthleenum'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\bthleenum' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Bluetooth Radio Driver (bthmini)--------
:: ----------------------------------------------------------
echo --- Disable Bluetooth Radio Driver (bthmini)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\bthmini!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\bthmini'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\bthmini' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Bluetooth Port Driver (bthport)--------
:: ----------------------------------------------------------
echo --- Disable Bluetooth Port Driver (bthport)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\bthport!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\bthport'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\bthport' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Bluetooth Radio USB Driver (bthusb)--------
:: ----------------------------------------------------------
echo --- Disable Bluetooth Radio USB Driver (bthusb)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\bthusb!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\bthusb'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\bthusb' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Chelsio iSCSI VMiniport Driver (cht4iscsi)--------
:: ----------------------------------------------------------
echo --- Disable Chelsio iSCSI VMiniport Driver (cht4iscsi)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\cht4iscsi!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\cht4iscsi'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\cht4iscsi' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Consumer IR Devices (circlass)--------
:: ----------------------------------------------------------
echo --- Disable Consumer IR Devices (circlass)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\circlass!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\circlass'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\circlass' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Parallel Port Driver (parport)--------
:: ----------------------------------------------------------
echo --- Disable Parallel Port Driver (parport)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\parport!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\parport'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\parport' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Scp Virtual Bus Driver (scpvbus)--------
:: ----------------------------------------------------------
echo --- Disable Scp Virtual Bus Driver (scpvbus)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\scpvbus!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\scpvbus'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\scpvbus' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Serenum Filter Driver (serenum)--------
:: ----------------------------------------------------------
echo --- Disable Serenum Filter Driver (serenum)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\serenum!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\serenum'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\serenum' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Serial Port Driver (serial)--------
:: ----------------------------------------------------------
echo --- Disable Serial Port Driver (serial)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\serial!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\serial'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\serial' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable CimFS (cimfs)--------
:: ----------------------------------------------------------
echo --- Disable CimFS (cimfs)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\cimfs!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\cimfs'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\cimfs' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable DFS Namespace Client Driver (dfsc)--------
:: ----------------------------------------------------------
echo --- Disable DFS Namespace Client Driver (dfsc)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\dfsc!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\dfsc'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\dfsc' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft NDIS Capture (ndiscap)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft NDIS Capture (ndiscap)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\ndiscap!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\ndiscap'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\ndiscap' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable NetBIOS Interface (netbios)--------
:: ----------------------------------------------------------
echo --- Disable NetBIOS Interface (netbios)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\netbios!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\netbios'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\netbios' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable NetBT (netbt)--------
:: ----------------------------------------------------------
echo --- Disable NetBT (netbt)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\netbt!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\netbt'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\netbt' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable UCPD (ucpd)--------
:: ----------------------------------------------------------
echo --- Disable UCPD (ucpd)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\ucpd!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\ucpd'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\ucpd' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Virtual WiFi Filter Driver (vwififlt)--------
:: ----------------------------------------------------------
echo --- Disable Virtual WiFi Filter Driver (vwififlt)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\vwififlt!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\vwififlt'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\vwififlt' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Hyper-V VHDPMEM BTT Filter (bttflt)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Hyper-V VHDPMEM BTT Filter (bttflt)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\bttflt!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\bttflt'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\bttflt' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Device Management Virtual Service Client (dmvsc)--------
:: ----------------------------------------------------------
echo --- Disable Device Management Virtual Service Client (dmvsc)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\dmvsc!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\dmvsc'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\dmvsc' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable QLogic 10 Gigabit Ethernet Adapter VBD (ebdrv)--------
:: ----------------------------------------------------------
echo --- Disable QLogic 10 Gigabit Ethernet Adapter VBD (ebdrv)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\ebdrv!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\ebdrv'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\ebdrv' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Hardware Error Device Driver (errdev)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Hardware Error Device Driver (errdev)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\errdev!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\errdev'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\errdev' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Filetrace (filetrace)--------
:: ----------------------------------------------------------
echo --- Disable Filetrace (filetrace)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\filetrace!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\filetrace'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\filetrace' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Hyper-V Generation Counter (gencounter)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Hyper-V Generation Counter (gencounter)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\gencounter!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\gencounter'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\gencounter' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Bluetooth HID Miniport (hidbth)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Bluetooth HID Miniport (hidbth)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\hidbth!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\hidbth'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\hidbth' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Infrared HID Driver (hidir)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Infrared HID Driver (hidir)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\hidir!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\hidir'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\hidir' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Hewlett-Packard Smart Array SAS/SATA Controller Media Driver (hpsamd)--------
:: ----------------------------------------------------------
echo --- Disable Hewlett-Packard Smart Array SAS/SATA Controller Media Driver (hpsamd)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\hpsamd!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\hpsamd'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\hpsamd' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft VMBus Synthetic Keyboard Driver (hyperkbd)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft VMBus Synthetic Keyboard Driver (hyperkbd)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\hyperkbd!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\hyperkbd'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\hyperkbd' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Hyper-V Video Driver (hypervideo)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Hyper-V Video Driver (hypervideo)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\hypervideo!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\hypervideo'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\hypervideo' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable i8042 Keyboard and PS/2 Mouse Port Driver (i8042prt)--------
:: ----------------------------------------------------------
echo --- Disable i8042 Keyboard and PS/2 Mouse Port Driver (i8042prt)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\i8042prt!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\i8042prt'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\i8042prt' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Mellanox/NVIDIA InfiniBand Bus/AL (Filter Driver) (ibbus)--------
:: ----------------------------------------------------------
echo --- Disable Mellanox/NVIDIA InfiniBand Bus/AL (Filter Driver) (ibbus)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\ibbus!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\ibbus'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\ibbus' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Intelligent Platform Management Interface Driver (ipmidrv)--------
:: ----------------------------------------------------------
echo --- Disable Intelligent Platform Management Interface Driver (ipmidrv)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\ipmidrv!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\ipmidrv'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\ipmidrv' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable IP Network Address Translator (ipnat)--------
:: ----------------------------------------------------------
echo --- Disable IP Network Address Translator (ipnat)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\ipnat!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\ipnat'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\ipnat' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Intel® Processor Trace (ipt)--------
:: ----------------------------------------------------------
echo --- Disable Intel® Processor Trace (ipt)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\ipt!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\ipt'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\ipt' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable LSI SAS Controller (lsi_sas)--------
:: ----------------------------------------------------------
echo --- Disable LSI SAS Controller (lsi_sas)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable LSI SAS 2.0 Controller (lsi_sas2i)--------
:: ----------------------------------------------------------
echo --- Disable LSI SAS 2.0 Controller (lsi_sas2i)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas2i!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas2i'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas2i' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable LSI SAS3 Controller (lsi_sas3i)--------
:: ----------------------------------------------------------
echo --- Disable LSI SAS3 Controller (lsi_sas3i)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas3i!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas3i'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\lsi_sas3i' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable LSI_SSS (lsi_sss)--------
:: ----------------------------------------------------------
echo --- Disable LSI_SSS (lsi_sss)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\lsi_sss!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\lsi_sss'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\lsi_sss' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable MBB Network Adapter Class Extension (mbbcx)--------
:: ----------------------------------------------------------
echo --- Disable MBB Network Adapter Class Extension (mbbcx)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\mbbcx!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\mbbcx'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\mbbcx' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable LSI MegaRAID SAS Controller Driver (megasas)--------
:: ----------------------------------------------------------
echo --- Disable LSI MegaRAID SAS Controller Driver (megasas)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\megasas!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\megasas'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\megasas' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable LSI/Avago/Broadcom MegaRAID SAS 2i Controller (megasas2i)--------
:: ----------------------------------------------------------
echo --- Disable LSI/Avago/Broadcom MegaRAID SAS 2i Controller (megasas2i)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\megasas2i!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\megasas2i'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\megasas2i' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable LSI/Avago/Broadcom MegaRAID SAS 35i Controller (megasas35i)--------
:: ----------------------------------------------------------
echo --- Disable LSI/Avago/Broadcom MegaRAID SAS 35i Controller (megasas35i)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\megasas35i!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\megasas35i'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\megasas35i' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable LSI/Avago/Broadcom MegaRAID SAS R Controller (megasr)--------
:: ----------------------------------------------------------
echo --- Disable LSI/Avago/Broadcom MegaRAID SAS R Controller (megasr)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\megasr!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\megasr'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\megasr' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft Bluetooth AVRCP Transport Driver (microsoft_bluetooth_avrcptransport)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft Bluetooth AVRCP Transport Driver (microsoft_bluetooth_avrcptransport)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\microsoft_bluetooth_avrcptransport!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\microsoft_bluetooth_avrcptransport'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\microsoft_bluetooth_avrcptransport' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Mellanox/NVIDIA ConnectX Bus Enumerator (mlx4_bus)--------
:: ----------------------------------------------------------
echo --- Disable Mellanox/NVIDIA ConnectX Bus Enumerator (mlx4_bus)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\mlx4_bus!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\mlx4_bus'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\mlx4_bus' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Modem (modem)--------
:: ----------------------------------------------------------
echo --- Disable Modem (modem)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\modem!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\modem'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\modem' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable WebDav Client Redirector Driver (mrxdav)--------
:: ----------------------------------------------------------
echo --- Disable WebDav Client Redirector Driver (mrxdav)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\mrxdav!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\mrxdav'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\mrxdav' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------


:: ----------------------------------------------------------
:: -------Disable Microsoft MAC Bridge (msbridge)--------
:: ----------------------------------------------------------
echo --- Disable Microsoft MAC Bridge (msbridge)
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Services\msbridge!Start"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Services\msbridge'; $data = '4'; reg add 'HKLM\SYSTEM\CurrentControlSet\Services\msbridge' /v 'Start' /t 'REG_DWORD' /d "^""$data"^"" /f"
:: ----------------------------------------------------------

Revert code

No response

Suggested category

No response

Recommendation level

None

Additional information

These scripts are used on Windows 10 (Version 22H2 (Operating System Build 19045.4894)).

There are so many legacy services, programs, and drivers that I have not known much, but these scripts would gain performance of Windows 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions