Невозможно применить локальные изменения GP из-за ошибок WMI - PullRequest
0 голосов
/ 19 февраля 2020

Я работал над этим довольно долго, и до сих пор не могу исправить это. Когда я запускаю gpupdate /force, я получаю следующую ошибку:

The processing of Group Policy failed. Windows could not evaluate the Windows Management 
Instrumentation (WMI) filter for the Group Policy object cn={20FFF4C6-8EAF-49D7-AA66- 
EAB3D46794FB},cn=policies,cn=system,DC=ewmglobal,DC=pvt. This could be caused by RSOP being disabled  
or Windows Management Instrumentation (WMI) service being disabled, stopped, or other WMI errors. Make 
sure the WMI service is started and the startup type is set to automatic. New Group Policy objects or 
settings will not process until this event has been resolved.

Я пробовал следующие исправления:

  1. Удаление всех файлов в C: \ Windows \ System32 \ wbem \ Repository и запустите следующие команды для перестройки хранилища, зарегистрируйте файлы .dll в. \ Wbem и проверьте файлы .mof:

    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. Перезапуск службы WMI
  3. Добавлен% Systemroot% \ System32 \ Wbem в переменную среды PATH
  4. Запуск утилиты диагностики WMI, которая включала следующую информацию:
34626 18:24:28 (0) ** 3 error(s) 0x8004100E - (WBEM_E_INVALID_NAMESPACE) Namespace specified cannot be found
34627 18:24:28 (0) ** 
34628 18:24:28 (0) ** 11 error(s) 0x80041002 - (WBEM_E_NOT_FOUND) Object cannot be found
34629 18:24:28 (0) ** => This error is typically a WMI error. This WMI error is due to:
34630 18:24:28 (0) **    - a missing WMI class definition or object.
34631 18:24:28 (0) **      (See any GET, ENUMERATION, EXECQUERY and GET VALUE operation failures).
34632 18:24:28 (0) **      You can correct the missing class definitions by:
34633 18:24:28 (0) **      - Manually recompiling the MOF file(s) with the 'MOFCOMP <FileName.MOF>' command.
34634 18:24:28 (0) **      Note: You can build a list of classes in relation with their WMI provider and MOF file with WMIDiag.
34635 18:24:28 (0) **            (This list can be built on a similar and working WMI Windows installation)
34636 18:24:28 (0) **            The following command line must be used:
34637 18:24:28 (0) **            i.e. 'WMIDiag CorrelateClassAndProvider'
34638 18:24:28 (0) **      Note: When a WMI performance class is missing, you can manually resynchronize performance counters
34639 18:24:28 (0) **            with WMI by starting the ADAP process.
34640 18:24:28 (0) **    - a WMI repository corruption.
34641 18:24:28 (0) **      In such a case, you must rerun WMIDiag with 'WriteInRepository' parameter
34642 18:24:28 (0) **      to validate the WMI repository operations.
34643 18:24:28 (0) **    Note: ENSURE you are an administrator with FULL access to WMI EVERY namespaces of the computer before
34644 18:24:28 (0) **          executing the WriteInRepository command. To write temporary data from the Root namespace, use:
34645 18:24:28 (0) **          i.e. 'WMIDiag WriteInRepository=Root'
34646 18:24:28 (0) **    - If the WriteInRepository command fails, while being an Administrator with ALL accesses to ALL namespaces
34647 18:24:28 (0) **      the WMI repository must be reconstructed.
34648 18:24:28 (0) **    Note: The WMI repository reconstruction requires to locate all MOF files needed to rebuild the repository,
34649 18:24:28 (0) **          otherwise some applications may fail after the reconstruction.
34650 18:24:28 (0) **          This can be achieved with the following command:
34651 18:24:28 (0) **          i.e. 'WMIDiag ShowMOFErrors'
34652 18:24:28 (0) **    Note: The repository reconstruction must be a LAST RESORT solution and ONLY after executing
34653 18:24:28 (0) **          ALL fixes previously mentioned.
34654 18:24:28 (2) !! WARNING: Static information stored by external applications in the repository will be LOST! (i.e. SMS Inventory)

Это ошибки, найденные в .xls do c, сгенерированном WMIDiag:

# of machines w/ WMI provider CIM registration failures (W)
# of machines w/ WMI enumeration errors (E)

Я действительно очень растерялся из-за того, что мне нужно сделать здесь, но я не могу продолжить проект, над которым я работаю, так как я не могу обновить ни одного GP. Я попытался WMIDiag WriteInRepository=Root, но я получаю ошибку синтаксиса параметра командной строки, поэтому возможно, что я не пишу команду правильно, но я не могу найти документацию, которая может помочь мне с синтаксисом. Может кто-нибудь указать мне правильное направление? Спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...