Windows is not genuine, black desktop and slmgr /dlv fails with 0x80070005? Fix NETWORK SERVICE permissions (Plug and Play GPO, S-1-5-20) or missing ProfileList keys. Plus 0x8004FE21, 0xC004F064 and 0xC004F065.
Home › Guides › Windows is not genuine and 0x8004FE21
Last updated 22 November 2026
If Windows says Windows is not genuine, the desktop background turns black and slmgr.vbs /dlv fails with 0x80070005 "Access denied: the requested action requires elevated privileges" even from an elevated prompt, Microsoft (KB 2704233) gives two causes. Scenario 1: the NETWORK SERVICE account lost its Full Control and Read permissions on the S-1-5-20 profile key, usually because a Group Policy that configures the Plug and Play service was applied: fix the permissions on that service in the GPO (or set it back to Not Defined), or give NETWORK SERVICE the permissions on HKEY_USERS\S-1-5-20 again. Scenario 2: the ProfileList subkeys S-1-5-18, S-1-5-19 or S-1-5-20 are missing: merge Microsoft's Profilelist.reg, restart and activate. Other non-genuine codes: 0x8004FE21 (unlicensed language packs, malware or corrupt system files: reinstall), 0xC004F064 (non-genuine grace period expired) and 0xC004F065 (running within the non-genuine grace period: install a genuine key before it ends).
| Code or symptom | Message | Activation type | Cause | Fix |
|---|---|---|---|---|
| Windows is not genuine, black desktop, slmgr /dlv shows 0x80070005 | Access denied: the requested action requires elevated privileges | Any | NETWORK SERVICE has lost its permissions (Plug and Play GPO), or the S-1-5-18/19/20 ProfileList keys are missing | Fix the Plug and Play GPO permissions or the S-1-5-20 key permissions; or merge Profilelist.reg |
| 0x8004FE21 | This computer is not running genuine Windows. | MAK, KMS client | Language packs (MUI) installed on an edition not licensed for them, malware that modified Windows, or corrupted system files | Reinstall the operating system |
| 0xC004F064 | The Software Protection Service reported that the non-genuine grace period expired. | MAK | Windows Activation Tools (WAT) determined that the system isn't authentic | Contact the Microsoft Licensing Activation Centers |
| 0xC004F065 | The Software Protection Service reported that the application is running within the valid non-genuine period. | MAK, KMS client | WAT determined the system isn't genuine; it keeps running during the Non-Genuine Grace Period | Install a genuine product key and activate before the grace period ends |
At logon:
Windows is not genuine Your computer might be running a counterfeit copy of Windows.
The desktop background is black and the lower-right corner shows The copy of Windows in not genuine (Microsoft's spelling). System properties in Control Panel show You must activate today. Activate Windows now. And slmgr.vbs /dlv returns:
Error: 0x80070005 Access denied: the requested action requires elevated privileges
Microsoft notes that the same 0x80070005 message also appears simply when a command needs an elevated Command Prompt; that case is unrelated and is covered in activation error 0x80070005 access denied. Try an elevated prompt first. If there's a message that Windows might not be genuine but no error code, Microsoft points to its Genuine Windows FAQ instead.
The Licensing service runs under the Network Service account and uses Plug and Play to read hardware ID information, which it binds the license to. The default permissions of a Plug and Play policy don't give the Licensing service the rights it needs to access the Plug and Play service, so a GPO that configures that service can make an activated system look out of tolerance. Microsoft says the network service account needs Full Control and Read permissions on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Profilelist\S-1-5-20, and that these may have been removed when a Plug and Play GPO was applied.
rsop.msc (Resultant Set of Policy). Expand Computer Configuration > Windows Settings > Security Settings and select System Services. If Plug and Play shows a setting other than Not Defined, it's configured by Group Policy, and you can see which GPO applies it.gpupdate /force.sc sdshow plugplay. Microsoft shows this SDDL:D:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY) (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA) (A;;CCLCSWLOCRRC;;;IU) (A;;CCLCSWLOCRRC;;;SU) S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)The
(A;;CCLCSWLOCRRC;;;SU) entry is the one that allows rights to SU, the Service logon user.No GPO configures Plug and Play? Then the default registry permissions were changed. In regedit, right-click HKEY_USERS\S-1-5-20, select Permissions, add network service if it isn't listed (Check Names, OK), give NETWORK SERVICE Full Control and Read, select OK, restart, and activate Windows if it asks.
rsop.msc as above.gpupdate /force. You may have to restart.One or more of these subkeys under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Profilelist is missing: S-1-5-18, S-1-5-19, S-1-5-20. Microsoft's fix: save this text in Notepad as Profilelist.reg, right-click the file and select Merge, restart, then activate Windows.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18] "Flags"=dword:0000000c "State"=dword:00000000 "RefCount"=dword:00000001 "Sid"=hex:01,01,00,00,00,00,00,05,12,00,00,00 "ProfileImagePath"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,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,63,00,6f,00,6e,00,66,00,69,00,67,00,5c,00,73,00,79,00,73,00,74,00,65,\ 00,6d,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,00,00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-19] "ProfileImagePath"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\ 00,73,00,5c,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,50,00,72,00,6f,00,\ 66,00,69,00,6c,00,65,00,73,00,5c,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,00,00 "Flags"=dword:00000000 "State"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-20] "ProfileImagePath"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\ 00,73,00,5c,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,50,00,72,00,6f,00,\ 66,00,69,00,6c,00,65,00,73,00,5c,00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,\ 00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,00,00 "Flags"=dword:00000000 "State"=dword:00000000
Back up the registry first and check which of the three keys are actually missing before you merge.
0x8004FE21 ("This computer is not running genuine Windows"): Microsoft lists language packs (MUI) installed on an edition that isn't licensed for extra language packs (some applications install multilingual support themselves, so this doesn't necessarily mean tampering), malware that modified Windows to install more features, or corrupted system files. Microsoft's fix is to reinstall the operating system.
0xC004F064: the non-genuine grace period expired because Windows Activation Tools (WAT) decided the system isn't authentic; contact the Microsoft Licensing Activation Centers. 0xC004F065: WAT decided the same, but the system still runs because of the Non-Genuine Grace Period; get and install a genuine product key and activate before the grace period ends, or the system goes into the Notification state.
cscript c:\windows\system32\slmgr.vbs /ipk <product-key> cscript c:\windows\system32\slmgr.vbs /ato
Run them from an elevated Command Prompt. Invalid or blocked keys are covered in activation errors 0xC004F050, 0xC004F014, 0xC004F00F and 0xC004F035.
Look up Security-SPP events from the Application log in the Windows Event ID Lookup, copy the slmgr lines from the PowerShell Cheat Sheet, pull error codes out of exported Application logs with the Regex Tester, check client and KMS host subnets with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify network adapters with the MAC Vendor Lookup. Related guides: activation error 0x80070005 access denied, activation errors 0xC004F050, 0xC004F014, 0xC004F00F and 0xC004F035, activation errors 0xC004E015 and 0xC004E002 and common Windows activation and KMS errors.
Every Windows activation and KMS error code and event in one place: common Windows activation and KMS errors.
In KB 2704233 Microsoft ties it to slmgr /dlv failing with 0x80070005: the NETWORK SERVICE account, which the Licensing service runs as, lost its permissions (often through a Plug and Play Group Policy), or the S-1-5-18, S-1-5-19 or S-1-5-20 ProfileList keys are missing.
Run rsop.msc, go to Computer Configuration, Windows Settings, Security Settings, System Services. If Plug and Play shows anything other than Not Defined, the GPO that sets it is listed there.
Microsoft lists the minimum as Query template, Query status, Enumerate dependents, Interrogate, User-defined control and Read permissions. Run gpupdate /force and check with sc sdshow plugplay.
This computer is not running genuine Windows. Microsoft lists unlicensed language packs, malware that modified Windows and corrupted system files as causes, and says to reinstall the operating system.
Both mean Windows Activation Tools decided the system isn't genuine. With 0xC004F065 it still runs in the Non-Genuine Grace Period, so install a genuine key and activate in time; with 0xC004F064 that period has expired: contact the Microsoft Licensing Activation Centers.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.