1

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.

1 Answer 1

3

Netsh firewall set service RemoteAdmin

4
  • This only works if user under which WMI runs is part of administrators group. What if user is not administrator ?
    – Primoz
    Apr 6, 2011 at 16:35
  • @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.
    – songei2f
    Apr 7, 2011 at 6:11
  • I'll run this command as administrator. But for querying WMI i'll use non admin account.
    – Primoz
    Apr 7, 2011 at 8:41
  • Yo need to open port 135 for dcom.
    – Primoz
    Apr 12, 2011 at 18:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .