2023-03-16 19:09:16 +01:00
---
pagetitle: Fix WPA Registry
---
# Fix WPA Registry
------------------------------------------------------------------------
2023-10-24 15:46:54 +02:00
- In some cases, the system may have corrupt WPA registry keys at `HKEY_LOCAL_MACHINE\SYSTEM\WPA` which can cause `sppsvc` to not work and activation to fail.
2023-03-16 19:09:16 +01:00
2023-10-25 18:47:27 +02:00
- The activation scripts in MAS can detect this issue and will inform you accordingly when it is necesarry to run this option. We suggest running this only when the script asks you to do so. If you are not sure whether you need to do it or not, you can get help from [here ](troubleshoot.html ).
2023-03-16 19:09:16 +01:00
2023-10-24 15:46:54 +02:00
- This registry key is protected by the Kernel and cannot be deleted normally. That is why we need to follow some more steps below to clear it.
2023-03-16 19:09:16 +01:00
------------------------------------------------------------------------
## Steps To Fix WPA Registry
2023-07-29 23:13:50 +02:00
- Download < https: // github . com / asdcorp / rearm / archive / refs / heads / principalis . zip >
2023-03-16 19:09:16 +01:00
2023-10-24 15:46:54 +02:00
- Extract this zip file.
2023-03-16 19:09:16 +01:00
2023-10-24 15:46:54 +02:00
- Copy `rearm.cmd` file to the root of the C drive, like `C:\rearm.cmd` .
2023-03-16 19:09:16 +01:00
2023-10-24 15:46:54 +02:00
- Open the command prompt as administrator and enter the below command\
2023-09-25 15:45:25 +02:00
`Shutdown /f /r /o /t 0`
2023-03-16 19:09:16 +01:00
2023-10-24 15:46:54 +02:00
- After the system restarts, select Troubleshoot \> Advanced Options \> Command Prompt.
2023-03-16 19:09:16 +01:00
2023-10-24 15:46:54 +02:00
- Enter the following command\
2023-03-16 19:09:16 +01:00
`C:\rearm.cmd`
2023-10-24 15:46:54 +02:00
- If it says the command is not recognized, enter\
2023-03-16 19:09:16 +01:00
`bcdedit | find "osdevice"`
2023-10-24 15:46:54 +02:00
- It will show you the OS drive letter. Use that drive letter in the command, for example -\
2023-03-16 19:09:16 +01:00
`E:\rearm.cmd`
2023-10-24 15:46:54 +02:00
- Wait for it to finish. When it's finished, you will be able to type in the command prompt, If not then wait.
2023-03-16 19:09:16 +01:00
2023-10-24 15:46:54 +02:00
- Once done, exit and then normally boot into Windows.
2023-03-16 19:09:16 +01:00
- Let [us know ](contactus.html ) if it doesn't help.
------------------------------------------------------------------------