Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

Netsh firewall set service RemoteAdmin

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.