Netsh, how to open ports in windows firewall for WMI?
5,245
Netsh firewall set service RemoteAdmin
Related videos on Youtube
Author by
Primoz
Updated on September 18, 2022Comments
-
Primoz almost 2 years
How can you open ports in windows firewall for WMI using netsh command ?
On windows vista and newer MS OS-es you run this command
netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes
What is netsh alternative for Win XP and 2003 ?
EDIT: User for WMI isn't administrator.
-
Primoz over 13 yearsThis only works if user under which WMI runs is part of administrators group. What if user is not administrator ?
-
songei2f over 13 years@Primoz So you want to use an admin account or not? I am not sure how you plan to modify the OS firewall without an admin account. At the very least, you need to elevate to an admin account once logged in using
runas
or an equivalent, so you have confused me/us here. -
Primoz over 13 yearsI'll run this command as administrator. But for querying WMI i'll use non admin account.
-
Primoz about 13 yearsYo need to open port 135 for dcom.