New Server Core Tips

A couple of quick tips this time around.

If you want to determine if you are running on Server Core from a script, you can do this via WMI. The command line way is:

wmic path win32_operatingsystem get OperatingSystemSKU /value

The value can then be converted to hex and mapped to the list at: https://msdn2.microsoft.com/en-us/library/ms724358.aspx

 

Here is a tip I received from the HP Windows Server Academy team. If you don’t want to include all of the many IIS options in the output of Oclist, run:

Oclist | find “Installed” | find /v “IIS”