Netsh, how to open ports in windows firewall for WMI?

5,245

Netsh firewall set service RemoteAdmin

Share:
5,245

Related videos on Youtube

Primoz
Author by

Primoz

Updated on September 18, 2022

Comments

  • Primoz
    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
    Primoz over 13 years
    This only works if user under which WMI runs is part of administrators group. What if user is not administrator ?
  • songei2f
    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
    Primoz over 13 years
    I'll run this command as administrator. But for querying WMI i'll use non admin account.
  • Primoz
    Primoz about 13 years
    Yo need to open port 135 for dcom.