Windows 7 and Windows 2008 R2 potentially can have WMF 2, WMF 3, or WMF 4 installed. Windows 2012 could have WMF3 or 4, and 2012 R2 has WMF 4.
I am looking for a method to find which version is installed. Hopefully this can be found via WMI, so I can use it within both Group Policy filters, and as a check within Powershell scripts I am planning on building that require functionality only available if WMF 3 or 4.
I must be asking the question the wrong way because I am not finding answers on Google.
$PSVersionTable.PSVersion
but using WMI?$PSVersionTable.PSVersion
always correspond to the version of WMF installed? If so, that may be enough. Being able to get that value via WMI would be helpful.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine
for ver 1 or 2, andHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
for ver 3 or 4...under thePowerShellVersion
value. Is that what you are after?