I would like to check if my VM is installed with IIS.
Which method is more accurate?
1. Registry Editor
Check for regfolder and regkey
HKLM\Software\Microsoft\Inetstp -> Folder must exist
HKLM\Software\Microsoft\Inetstp\VersionString -> Value must be valid
2. Get-WindowsFeature
PS > (Get-WindowsFeature Web-Server).InstallState -eq "Installed"
For Get-WindowsFeature
, some VMs reply back with InstallState as "Available". Does it mean the same?