sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
If you have stumbled across a file named wscsvc.reg on a technical forum, a troubleshooting guide, or within your own system backups, you are looking at a specialized tool used to manage the Windows Security Center. While it might look like a simple text file, executing it can fundamentally change how your computer handles security warnings and protection.
This article breaks down what the Windows Security Center is, what a .reg file does, and the specific implications of modifying the wscsvc registry keys.
If you decide to proceed with a wscsvc.reg file (for example, from a trusted IT department or a verified guide), follow these steps:
A healthy wscsvc.reg file looks like this (simplified):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc] "Start"=dword:00000002 "Type"=dword:00000020 "ErrorControl"=dword:00000001 "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,wscsvc.reg file
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,
6b,00,20,00,6c,00,6f,00,63,00,61,00,6c,00,73,00,65,00,72,00,76,00,69,00,63,
00,65,00,00,00 "DisplayName"="@%SystemRoot%\system32\wscsvc.dll,-200" "Description"="@%SystemRoot%\system32\wscsvc.dll,-201" "ObjectName"="NT AUTHORITY\LocalService" "ServiceSidType"=dword:00000001 "RequiredPrivileges"=hex(7):53,00,65,00,43,00,68,00,61,00,6e,00,67,00,65,00,4e,
00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,
67,00,65,00,00,00,53,00,65,00,43,00,72,00,65,00,61,00,74,00,65,00,47,00,6c,
00,6f,00,62,00,61,00,6c,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,
65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,00,6e,00,61,
00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,
00,00 "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,
00,00,00,00,00,60,ea,00,00,00,00,00,00,40,4b,4c,00,00,00,00,00,00,00,00,00
A file named wscsvc.reg typically contains a script that targets the specific registry path for the Security Center service:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center
Or, in more modern versions of Windows:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc
Here is an example of what the content of a typical wscsvc.reg file might look like if it is designed to disable specific warnings:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"FirewallDisableNotify"=dword:00000001
"UpdatesDisableNotify"=dword:00000001
"AntiVirusDisableNotify"=dword:00000001
In this specific example, the dword:00000001 sets the value to "True" (enabled), which tells the Security Center to disable the notifications for the Firewall, Updates, and Antivirus.
The following script represents a standard configuration for the Windows Security Center service. This code can be saved as a text file with the .reg extension and merged into the registry. sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
Windows Registry Editor Version 5.00; Resets the Windows Security Center Service (wscsvc) to default parameters ; Target Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc] "DisplayName"="@%SystemRoot%\system32\wscsvc.dll,-200" "ErrorControl"=dword:00000001 "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,
74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,
6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,65,00,72,00,76,00,69,00,63,
00,65,00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,52,00,65,00,73,00,74,00,
72,00,69,00,63,00,74,00,65,00,64,00,00,00 "Start"=dword:00000002 "Type"=dword:00000020 "Description"="@%SystemRoot%\system32\wscsvc.dll,-201" "ObjectName"="NT AUTHORITY\LocalService" "ServiceSidType"=dword:00000001 "RequiredPrivileges"=hex(7):53,00,65,00,43,00,68,00,61,00,6e,00,67,00,65,00,4e,
00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,
67,00,65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,00,6e,
00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,
00,00,00,00 "DelayedAutoStart"=dword:00000001 "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,
00,01,00,00,00,c0,d4,01,00,01,00,00,00,e0,93,04,00,00,00,00,00,00,00,00,00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc\Parameters] "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,
00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,
77,00,73,00,63,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00 "ServiceMain"="wscSvcMain"[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc\Security] "Security"=hex:01,00,14,80,c8,58,00,00,a0,58,00,00,14,00,00,00,30,00,00,00,02,
; ... (truncated for brevity, standard security descriptor) If you have stumbled across a file named wscsvc
; Ensure Security Center notifications are enabled [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center] "AntiVirusDisableNotify"=dword:00000000 "FirewallDisableNotify"=dword:00000000 "UpdatesDisableNotify"=dword:00000000 "AntiVirusOverride"=dword:000