W4RH4WK / Debloat-Windows-10

A Collection of Scripts Which Disable / Remove Windows 10 Features and Apps
Other
6.03k stars 851 forks source link

Couldn't disable wscsvc and Windows Defender Services #247

Closed R4vz closed 4 years ago

R4vz commented 4 years ago

I could execute all the scripts successfully, but couldn't disable only wscsvc and Windows Defender Services from disable-services.ps1 and disable-windows-defender.ps1 respectively throwing an error "Permission Denied". Also tried editing them manually into registry kept getting error "Cannot create value: Error writing to the registry". Had to create a .reg file manually with the registry values and execute it and idk how it worked. BTW I'm running the latest Win10 v2004.

W4RH4WK commented 4 years ago

Disabling Windows Defender has been a pain in the ass for some time now. If you really want to disable the services (and scheduled tasks) download the sysinternals suit, reboot into safe-mode and use Autoruns64.exe to disable services (and scheduled tasks). Note that system services might be hidden on default:

image

R4vz commented 4 years ago

Well I did uncheck all the entries when searched for "defender" tag in Autoruns64 and boot into windows. Ran disable-services.ps1 script, and the following error came up. 2004

While I ran disable-windows-defender.ps1 script and this time there were no errors.

W4RH4WK commented 4 years ago

If you unchecked them, they should already be disabled, no need to run the script.

R4vz commented 4 years ago

Thank you sir for your response, much appreciated. This is a great project and keep up the good work.