Problem with WMI

Posted on 2008-11-14
Last Modified: 2012-05-05
I have a problem with a Server 2003. It is a DC and the WMI seems to be broken.

If I run MSINFO32 I get errors that it cannot gather information.

If I run WMIMGMT.MSC It reports Win32_Processor: Win32: Access is denied & Win_32OperatingSystem: Win32: Access denied.

I have downloaded and run WMIDIAG.vbs and have attached the report here. If someone could please give me some guidance as to how I can repair this problem so that I can install SQL 2005 Express edition I will be extremely grateful.
Question by:c661jmb
    LVL 16

    Expert Comment

    One idea would be to check the registry on the server which gives the access
    denied error for the registry value below:


    REG_SZ value
    value name "EnableDCOM" (without the quotes)
    value data of "Y" (without the quotes)

    If this key and value are not present add them and then see if that helps.

    LVL 6

    Author Comment

    That key is already set as you described.

    I have updated this server to SP2, and all other critical updates.

    .Net is up to version 2 SP1

    DXDIAG reports the CPU and OS.

    I have tried the following scripts:
    @echo on
    cd /d c:\temp
    if not exist %windir%\system32\wbem goto TryInstall
    cd /d %windir%\system32\wbem
    net stop winmgmt
    winmgmt /kill
    if exist Rep_bak rd Rep_bak /s /q
    rename Repository Rep_bak
    for %%i in (*.dll) do RegSvr32 -s %%i
    for %%i in (*.exe) do call :FixSrv %%i
    for %%i in (*.mof,*.mfl) do Mofcomp %%i
    net start winmgmt
    goto End
    if /I (%1) == (wbemcntl.exe) goto SkipSrv
    if /I (%1) == (wbemtest.exe) goto SkipSrv
    if /I (%1) == (mofcomp.exe) goto SkipSrv
    %1 /RegServer
    goto End
    if not exist wmicore.exe goto End
    wmicore /s
    net start winmgmt

    when that did not work, I tried:

    CD %windir%\system32\wbem
    Mofcomp.exe cimwin32.mof
    Regsvr32 /s wbemupgd.dll
    Regsvr32 /s wbemsvc.dll
    wmiprvse /regserver

    I have attached screen shots of the permissions for the root.

    LVL 6

    Author Comment

    I have also attached a later WMIDIAG report. This was run AFTER the scripts above.
    LVL 6

    Author Comment

    I am still struggling with this.

    LVL 6

    Accepted Solution

    I fixed it - yeh, thanks to someone from another site NooNoo.

    I fixed it. I threw the server in a skip and replaced it with a MAC.

    Nah, I did the following:

    Finally figured out a solution....

    -open Administrative Tools => Local Security Policies
    -find Local Policies=>Security Options=>"DCOM: Machine Launch Restriction in Security Descriptor Definition Language(SDDL)"
    -in my case it was showing "Not Defined" , and I opened up the properties dialog and gave System user "Local Launch" and "Local Activation"  ALLOW.
    -voila! the WMI error message is gone and the setup GUI appears.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
    Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now