GPO: Domain Prep For Monitoring
Description:
This GPO is used to when you want to setup a monitoring application like PRTG Network Monitor, Spiceworks, or Zabbix. It essentially opens the ports for domain joined computers to where you can query them remotely.
To Resolve:
-
Remote into the Domain Controller and open up Group Policy Managment.
-
Navigate to Forest:ForestName => Domains => (YourDomainName). Right click on your domain name and choose the options to “Create a GPO and link it here”. Call it “WMIPermissions”.
-
Right Click WMIPermissions in the list and choose “edit”.
-
Navigate to:
Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options
-
On the right, click on “DCOM: Machine Access Restrictions in Security Descriptor…” and open it up. Check the box for “Define this setting” and click on the “edit security” button.
-
Click “Add” and add the domain admin credentials. OK. In the “group or user names” select the domain admin. In the permissions for Administrators field, ensure there is a checkmark in Allow for “remote access”. OK. OK.
-
On the right, click on “DCOM: Machine Launch Restrictions in Security Descriptor…” and open it up. Check the box for “Define this setting” and click on the “edit security” button.
-
Click “Add” and add the domain admin credentials. OK. In the “group or user names” select the domain admin. In the permissions for Administrators field, ensure there is a checkmark in Allow for “remote launch” and “remote activation”. OK. OK.
-
This may not be necessary, but I also go to:
Computer Config\Policies\Windows Settings\Security Settings\Windows Firewall with Advanced Security\Windows Firewall with Advanced Security\Inbound Rules node
-
Right click on the right UI => New Rule => Predefined Option => WMI => Check all => Allow the connection.
-
Now navigate to:
Computer Configuration\Administrative Templates\Network\Network Connections\Windows Firewall\Domain Profile
. Enable:
- Windows Firewall: Enable remote administration
- Windows Firewall: All ICMP exceptions => check all the options.
- Close out of everything and wait for the domain policy to replicate (usually about 15 minutes). You can run
gpupdate /force
and thengpresult /scope computer /h c:\scripts\gpresult.html
on the clients to make sure the settings applied.
References:
“Is there a way to set access to WMI using GroupPolicy?”
“How to: Group Policy to Allow WMI Access to Remote Machine”
Comments