Hi all,
I was installing SCOM 2007R2 agents, and on of my servers answered:
The Operations Manager Server could not execute WMI Query "(null)" on
computer server.domain.com.
Operation: Agent Install
Install account: DOMAIN\admin
Error Code: 80004005
Error Description: Unspecified error
So I wanted to rebuild WMI, using this
http://www.mrtweak.com/windows-serve...nstall-script/
Here is my result:
C:\Temp>wmireinstall.bat
C:\Temp>net stop winmgmt
The following services are dependent on the Windows Management
Instrumentation service.
Stopping the Windows Management Instrumentation service will also stop these
services.
Office Communications Server Application Host
Do you want to continue this operation? (Y/N) [N]: y
The Office Communications Server Application Host service is stopping....
The Office Communications Server Application Host service could not be
stopped.
System error 1051 has occurred.
A stop control has been sent to a service that other running services are
dependent on.
C:\Temp>c:
C:\Temp>cd C:\WINDOWS\system32\wbem
C:\WINDOWS\system32\wbem>rd /S /Q repository
The system cannot find the file specified.
C:\WINDOWS\system32\wbem>regsvr32 /s C:\WINDOWS\system32\scecli.dll
C:\WINDOWS\system32\wbem>regsvr32 /s C:\WINDOWS\system32\userenv.dll
C:\WINDOWS\system32\wbem>mofcomp cimwin32.mof
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.1830
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'cimwin32.mof' not found!
C:\WINDOWS\system32\wbem>mofcomp cimwin32.mfl
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.1830
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'cimwin32.mfl' not found!
C:\WINDOWS\system32\wbem>mofcomp rsop.mof
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.1830
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
Parsing MOF file: rsop.mof
MOF file has been successfully parsed
Storing data in the repository...
Done!
C:\WINDOWS\system32\wbem>mofcomp rsop.mfl
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.1830
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'rsop.mfl' not found!
C:\WINDOWS\system32\wbem>for /F %s in (ådir /b /s *.dllå) do regsvr32 /s %s
The system cannot find the file ådir.
C:\WINDOWS\system32\wbem>for /F %s in (ådir /b *.mofå) do mofcomp %s
The system cannot find the file ådir.
C:\WINDOWS\system32\wbem>for /F %s in (ådir /b *.mflå) do mofcomp %s
The system cannot find the file ådir.
C:\WINDOWS\system32\wbem>mofcomp -n:root\cimv2\applications\exchange
wbemcons.mof
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.1830
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'wbemcons.mof' not found!
C:\WINDOWS\system32\wbem>mofcomp -n:root\cimv2\applications\exchange
smtpcons.mof
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.1830
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'smtpcons.mof' not found!
C:\WINDOWS\system32\wbem>mofcomp exmgmt.mof
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.1830
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'exmgmt.mof' not found!
C:\WINDOWS\system32\wbem>mofcomp exwmi.mof
Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.1830
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
File 'exwmi.mof' not found!
C:\WINDOWS\system32\wbem>net start winmgmt
The requested service has already been started.
More help is available by typing NET HELPMSG 2182.
C:\WINDOWS\system32\wbem>
Now my OCS is not working
So what to do?
Thank you
Alex