Windows proxy permissions
RemQuery access and discovery behavior
The RemQuery utility cannot be run as a non-administrator user. You can only create a service as an administrator, which RemQuery needs to do after copying its service to the ADMIN$ share on the remote computer.
If you cannot provide administrator-level credentials, then you cannot use RemQuery, and you cannot perform the following actions:
- Get files from patterns
- Run commands from patterns
WMI access and discovery behavior
WMI access permission definitions
Permission Set | Details |
---|---|
User | DCOM: Remote access enabled |
Admin user | Access as a member of the Administrators group, for example, use Domain Controller credentials to scan a Domain Controller. |
Additional details
- A non-administrator cannot retrieve the NIC manufacturer because the Plug and Play Manager is queried, and there is no way to grant a non-administrator access to this.
An error is written in the Windows proxy's log when discovering a Windows 2003 machine as a non-administrator; for example:
ERROR: Query [performanceData] failed: Invalid query [SELECT SystemUpTime FROM
Win32_PerfFormattedData_PerfOS_System] on [10.10.10.55]: [-2147217405:Access denied ]This does not lead to any missing information because a different method is then used to retrieve the system's uptime. If the error is a problem, the user can be assigned to the Performance Monitor Users group, which allows this WMI query to succeed.
Granting permissions
The following sections list possible ways to grant the various permissions required to a non-administrator user. This information should be used as a guide only.
Setting DCOM permissions
This section describes three methods to grant remote DCOM permission to a user. These methods are only required for discovery targets running XP SP2 or later or 2003 SP1 or later.
Method 1
Add the user to the Distributed COM Users group. This group was made available in Windows 2003 SP1.
Method 2
Use Group Policy Objects in an Active Directory environment to grant the permission. Using Group Policy Objects is described in this Microsoft article.
Method 3
Use the following steps to configure DCOM permissions on a machine:
- Select Start > Run, enter dcomcnfg, and click OK
The Component Services configuration GUI opens. - Expand Console Root > Component Services > Computers > My Computer.
- Right-click My Computer and select Properties.
- Go to the COM Security tab.
- In the Launch and Activation Permissions section, click Edit Limits.
- Click Add.
- Enter your domain user name or group name in the text entry field, and click Check Names.
- Click OK.
- Set user permissions for Allow for Local Launch, Remote Launch, Local Activation, and Remote Activation.
- Click OK to close the permissions dialog, then OK again on My Computer Properties.
The user should now be able to remotely access DCOM applications, including WMI.
Setting WMI permissions
This method enables you to manually configure WMI permissions on a machine. You cannot configure WMI security with Group Policy Objects.
Use the following steps to configure WMI permissions on a machine:
- Select Start > Run, enter wmimgmt.msc, and click OK
The WMI management tool is launched. - Right-click WMI Control (Local), and select Properties.
- Select the Security tab in the WMI Control Properties dialog.
- Expand the Root object.
- Select the namespace (Root\CIMV2, Root\Default, and Root\WMI in turn), and click Security.
- Click Advanced.
- Click Add.
- Enter your domain user name or group name in the text entry field, and click Check Names.
- Click OK.
- Set Apply onto to This namespace only.
- Select Allow for the desired permissions (for example, Remote Enable, Account Enable, and Execute Methods).
- Click OK three times to get back to the WMI Control Properties Security page.
Setting remote registry permissions
The following article from Microsoft contains information on how to set remote registry permissions: https://docs.microsoft.com/en-US/troubleshoot/windows-client/application-management/change-registry-values-permissions
The user or group must be given read access to the registry key described in the article. Alternatively, the user could be added to the Backup Operators group; however, this group has a high level of access to the whole system.
Granting user rights
User rights can be granted either from gpedit.msc for local configuration, or by using the Group Policy Management Console.