If ((Get-WindowsFeature -Name Windows-Internal-Database).InstallState -eq "Available"){ return 0 } else { #Installed return 1 }