Is there a way to get Windows 2003 server roles using WMI or other scripting techniques?
Posted on 2009-02-12
I'm trying to get information regarding a server and am currently trying to figure out how to get the information listed on the "Manage Your Server" screen when you log into a Windows 2003 server machine.
Most interesting is the application roles. I'd like to know if a server has theDomain controller, DNS, WINS, Print, DHCP, etc application roles installed yet I cannot seem to find a way to get this information.
I know the Win32_ComputerSystem WBEM class has a field called 'Roles' and it lists some of this information, but not all. For instance, this field mentions nothing about having DNS or WINS. It does seem to mention print for print servers, etc. All in all this field doesn't seem to be my one-stop-shop.
Any ideas as to the best way to get this information?