How do you create windows defender service using command prompt?

  • Thread starter Thread starter NewtonBundi
  • Start date Start date
N

NewtonBundi

Guest
My pc was infected by malware which corrupted the windows registry and I had to do a complete reset to see if I could undo the damage.

Ever since the reset, windows update and windows defender services have been removed from the services list and I have to manually type in a code in the cmd to restore the windows update service upon every restart of my pc.


The code I type is "sc create wuauserv DisplayName= "Windows Update" binpath= "C:\WINDOWS\system32\svchost.exe -k netsvcs -p" Start= delayed-auto depend= RpcSs"

I also have to delete the registry key "wuauserv" from 'Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv' and import it back again so that it can work.

I got this clean registry key from a clean computer


I want to try the same for windows defender having obtained a clean registry key but everytime I type the following command in cmd "sc start WinDefend Enable" I get the following error ;

StartService: OpenService FAILED 1060:

The specified service does not exist as an installed service.


Meaning I need to create the service first before I can run it and I don't know the cmd code for doing that.


As of now I have no security providers and realtime protection.4d10b0bb-c488-438d-b38a-d8c30e0b8cee?upload=true.png

f2186c8c-b814-4355-9c41-e5b3ee1f0561?upload=true.png

More...
 
Back
Top