PowerShell Script for setting WMI Permissions for User-ID
0
Created On 09/25/18 19:45 PM - Last Modified 07/19/22 23:06 PM
Resolution
Details
The attached Microsoft script can be used to set the WMI permissions for both Agent-less User-ID and WMI Probing. It is designed to be run from a PowerShell prompt and can be used to set the local WMI settings, or the settings of a remote computer. It could be deployed as a logon script for workstations or run from a central system against various domain controllers.
The following is the syntax for setting local rights:
.\Set-WmiNamespaceSecurity.ps1 root/cimv2 add <user-Account> Enable,RemoteAccess
The following is to modify a remote system:
.\Set-WmiNamespaceSecurity.ps1 root/cimv2 add <user-Account> Enable,RemoteAccess -co <FQDN of DC>