It seems that discovery of IIS stopped at v6 (Server 2003)
WMI namespace root\\MicrosoftIISv2 exist in IIS 7.0 only if "IIS 6 WMI Compatibility" is installed on the server, and even then doing select MajorIIsVersionNumber from IISWebInfo only returns 7.5, when the expected value is 8.5 for Server 2012 or even 10 for Server 2016. So it looks like WMI is supported no more
Any upcoming reviews of audit_windows.vbs to do IIS discovery for 8.5 or 10? Perhaps moving to PowerShell rather than WMI?
Coming in the next version
The audit script has only been tested against 2016, so if you would like to test against others, please let me know.
The new audit script is downloadable at -
Did a quick test of the script on Win2012r2 (IIS 8.5) & 2016 (IIS 10)
Audit requires IIS WMI provider, which is a add-on IIS component "Management Scripts and Tools" as of IIS 7. When this feature is not installed:
Would AppCMD be an alternative to WMI? Seems to be available by default as of IIS 7
You're right. I've just been looking at the code, the registry and appcmd. Stay tuned for an improvement that doesn't require the management scripts and tools to be installed.
Hope it doesn't require to run locally :S
Thanks for all you do. I can't write a line of code, but I can test it. Got 100+ Windows servers here to play with.
Just found some Microsoft documentation around changes to WMI on IIS7.
It seems that as of Windows 8 and Windows Server 2012, WMI (Windows Mgmt Instrumentation) is no longer. The new CIM based standard now is called Windows MI (Windows Mgmt Infrastructure)
A M Thanks for the post, I don't have an IIS 7 to check, so I never realized this was broken.
I'll take a look at this ASAP.
No plans to rewrite in PowerShell (yet). It's just such a large script and rewriting will take a lot of effort, introduce bugs and provide no real benefit (unless I'm mistaken on the last one).
I'll update here when I've addressed IIS 7 and later.
Powered by a free Atlassian Confluence Open Source Project License granted to Opmantek. Evaluate Confluence today.