Permissions needed to connect remote to WMI on a workgroup computer

Permissions needed to connect remote to WMI on a workgroup computer. 0x80070005 meaning “Access is denied” is often seen.

One of customers tried to connect with WBEMTEST from its sccm site server to a managed workgroup client host. But he failed with 0x80070005 meaning “Access is denied“. There are three common errors you may run into while connecting to WMI on a workgroup client.

ErrorPossible IssueSolution
0x800706BA – RPC Server Unavailable Firewall issue or server not available.The computer really doesn’t exist ยท The Windows Firewall is blocking the connectionConnecting to Vista: netsh advfirewall firewall set rule group=”windows management instrumentation (wmi)” new enable=yes Connecting to downlevel: Allow the “Remote Administration” rule in Windows Firewall.
0x80070005 โ€“ E_ACCESS_DENIED Access denied by DCOM security.The user does not have remote access to the computer through DCOM. Typically, DCOM errors occur when connecting to a remote computer with a different operating system version.Give the user Remote Launch and Remote Activation permissions in dcomcnfg. Right-click My Computer-> Properties Under COM Security, click “Edit Limits” for both sections. Give the user you want remote access, remote launch, and remote activation. Then go to DCOM Config, find “Windows Management Instrumentation”, and give the user you want Remote Launch and Remote Activation. For more information, see Connecting Between Different Operating Systems
0x80041003 โ€“ WMI Access Denied Access denied by a providerThe user does not have permission to perform the operation in WMI. This could happen when you query certain classes as a low-rights user, but most often happens when you attempt to invoke methods or change WMI instances as a low rights user. The namespace you are connecting to is encrypted, and the user is attempting to connect with an unencrypted connectionGive the user access with the WMI Control (make sure they have Remote_Access set to true) Connect using a client that supports encryption.

To be able to connect successfully to WMI on a workgroup computer, you can follow the steps below on the target workgroup computer.

  1. First finish the steps described in Securing a Remote WMI Connection
  1. Launch DCOMCNFG and expand Component Services>Computers, then right click on My Computer
  2. In Access Permissions, click Edit Limits
  3. Select ANONYMOUS LOGON and grant Remote Access, OK.
  1. In Launch and Activation Permissions, select Everyone and grant Remote Launch and Remote Activation. OK.
  1. Then disable UAC โ€“
    a. Open the Local Security Policy (secpol.msc)
    b. Expand open Local Policies and Security Options in the left pane of Local Security Policy, and double click/tap on the User Account Control: Run all administrators in Admin Approval Mode policy
    c. Set it to Disabled, save.
  1. Restart the computer

Go to your another computer and launch WBEMTEST.

References

SCCM client installation failed with “MSI: Setup was unable to compile the file ccmclasses.mof The error code is 8004402F”

MSI: Setup was unable to compile the file ccmclasses.mof
The error code is 8004402F

Background

SCCM client installation can failed due to various reasons, one of which could be the following:

MSI: Setup was unable to compile the file ccmclasses.mof
The error code is 8004402F

Error code 8004402F indicates (you can check the code meaning with CMTrace tool: Press CTRL + L to launch Error Lookup window):

Error creating temporary file
Source: Windows Management (WMI)

Most of the time this was caused by lack of “Modify” and “Write” permissions to the temporary folder of the installation user.

Solution

  1. First, make sure the installation user have local Admin rights
  2. Then go to Control Panel>System and Security>System>Advanced System settings
  3. Click on Environment Variables… See the figure below.
  4. Verify TEMP and TMP in System Variables are respectively C:\windows\TEMP and C:\windows\TEMP
  5. Make sure that the installation user has Modify and Write permissions to TEMP and TMP
  6. If the installation fails with the same exception even after those changes, try to compile ccmclasses.mof manually:
    1. Open command prompt as Administrator
    2. Navigate into C:\windows\CCM: cd c:\windows\CCM
    3. Run: mofcomp ccmclasses.mof
    4. Retry the installation
Environment Variables

Design a site like this with WordPress.com
Get started