Virtualization Articles and Resources

Powershell Script to Open Windows Firewall for OnCommand Balance


Due to complaints of insecurity, Microsoft has locked down  Windows to the point that Windows Firewall blocks WMI by default. Since I already had a large number of VMs it was not practical to log into each individually and open the necessary ports so I wrote a PowerShell script that does it remotely for all Windows VMs that are powered on. The script does require that the user has installed the VMWare PowerCLI which is a free download from I thought that the script might be useful customers and partners so I've posted it here. Hope you find it helpful.

Please Note:

All content posted on the NetApp Community is publicly searchable and viewable. Participation in the NetApp Community is voluntary.

In accordance with our Code of Conduct and Community Terms of Use, DO NOT post or attach the following:

  • Software files (compressed or uncompressed)
  • Files that require an End User License Agreement (EULA)
  • Confidential information
  • Personal data you do not want publicly available
  • Another’s personally identifiable information (PII)
  • Copyrighted materials without the permission of the copyright owner

Continued non-compliance may result in NetApp Community account restrictions or termination.

All Community Forums