Palo Alto Networks Knowledgebase: PowerShell Script for setting WMI Permissions for User-ID

PowerShell Script for setting WMI Permissions for User-ID

(847 Views)
Created On 09/25/18 19:45 PM - Last Updated 09/25/18 23:10 PM
Categories:  User-ID

Issue:


Solution:


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>

Attachments:

Actions:
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClcsCAC&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Change Language: