I'm not entirely certain this is possible, but I figured I'd ask. Where I work now we have stringent security policies for all servers. Any server that needs to be remotely managed has to have a justification, firewall rules and potential VLAN moves before that can happen. Part of this is a requirement to set WMI to a single port. I'm working on a script that would allow me to switch that on or off.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb219447(v=vs.85).aspx
That article lists the steps to set this up.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394525(v=vs.85).aspx
This lists all the swtiches for winmgmt. I was hoping to find one that would output it's current configuration. The idea being that if I run my script and tell it to enable single mode, I'd like to be able to check if it's already enabled and report that to the user, and then exit.
My other thought is perhaps there is a registry entry I can check to see if singlemode is enabled.
Any help would be greatly appreciated!
Thanks,


