文章作者:姜南(Slyar) 文章来源:Slyar Home (www.slyar.com) 转载请注明,谢谢合作。
Error 1:Invalid namespace
When activating Windows Bitlocker on a new Thinkpad laptop, there is an error: Invalid namespace.
You can use the command "manage-bde -status" to get the BitLocker status on the machine.
Basically, an invalid namespace error indicates that the namespace you are trying to modify is not exist in WMI.
To solve this issue, we can re-register the BitLocker WMI (win32_encryptablevolume) class.
Start- Run - mofcomp.exe win32_encryptablevolume.mof
If the MOF file successfully compiles you will receive the following message:
Microsoft (R) MOF Compiler Version 6.1.7600.16385
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: win32_encryptablevolume.mof
MOF file has been successfully parsed
Storing data in the repository...
Done!
Error 2:Class, instance, or property '' was not found.
Some people will receive another error: "Class, instance, or property '' was not found."
This time, we need to rebuilding the WMI Repository.
1. Save the below code to a notepad, and save it to "Repository.bat".
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
net stop winmgmt /y c: cd %systemroot%\system32\wbem rd /S /Q repository regsvr32 /s %systemroot%\system32\scecli.dll regsvr32 /s %systemroot%\system32\userenv.dll mofcomp cimwin32.mof mofcomp cimwin32.mfl mofcomp rsop.mof mofcomp rsop.mfl for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s for /f %%s in ('dir /b *.mof') do mofcomp %%s for /f %%s in ('dir /b *.mfl') do mofcomp %%s |
2. Right-click the bat file, choose "Run as Administrator"
3. After successful rebuild, re-register the Bitlocker WMI again by:
Start- Run - mofcomp.exe win32_encryptablevolume.mof
4. If the MOF file successfully compiles you will receive the following message:
Microsoft (R) MOF Compiler Version 6.1.7600.16385
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: win32_encryptablevolume.mof
MOF file has been successfully parsed
Storing data in the repository...
Done!
Finally the Bitlocker run success.