Verify WMI Access for a Regular Non-Admin Domain User
This guide walks through enabling and testing WMI access for a regular domain user without admin rights, ideal for securely setting up vScope’s inventory access on Windows machines.
Prerequisites
Ensure you’ve configured DCOM access, WMI namespace permissions, and firewall exceptions by following Setting up WMI-access through AD & GPO.
Machines Defined
- Client: The machine where vScope or the testing script is run
- Target: The machine being inventoried
Testing WMI Access for System Information
- Open PowerShell on the Client machine.
- Run the following command, replacing Target and isl\wmiuser with the appropriate values:
If successful, details about the Target system should appear, such as:
Troubleshooting Errors
- Access Denied (E_ACCESSDENIED): Indicates insufficient DCOM rights. Review Setting up WMI-access through AD & GPO: Settings from Active Directory.
- ManagementException (GetWMIManagementException): Points to insufficient rights on the WMI namespace. See Setting up WMI-access through AD & GPO: Rights for WMI Namespace.
Testing Access to System Patch Information
To verify permissions for retrieving system patch information (Quick Fix Engineering updates), run:
You should see a list of installed updates, for example:
If this list is empty, it may indicate insufficient permissions. To confirm, try the command with a domain administrator credential:
Troubleshoot Missing Patch Information
- RDP into the Target system with admin rights.
- Open Event Viewer > Windows Logs > System and look for Event ID 10016 during the WMI query attempt.
If found, the error message likely reads:
This indicates that the user lacks permissions to activate a COM Server application (e.g., TrustedInstaller).
Resolving Permissions for TrustedInstaller
- Open regedit as an administrator.
- Locate the CLSID associated with the error under
HKEY_CLASSES_ROOT\CLSID\{CLSID-ID}
. - Identify the AppID in this registry key, which should match TrustedInstaller.
- Navigate to
HKEY_CLASSES_ROOT\AppID\{AppID-ID}
.
If the Security tab in DCOM Config for TrustedInstaller is grayed out, adjust permissions:
Grant Permissions to TrustedInstaller in DCOM
- Open dcomcnfg.
- Locate TrustedInstaller under Component Services > Computers > My Computer > DCOM Config.
- In Security settings, add wmiuser with all permissions enabled.
Verifying Access
After updating permissions, restart the Windows Modules Installer service. Run the following on the Client system:
If successful, you should see the list of installed QFE as when using an administrator credential.
You may also try the Automated setup via GPO.