Question : powershell check if software is installed
Answered by : lorenzo-veronesi
$software = "Microsoft .NET Core Runtime - 3.1.0 (x64)";
$installed = (Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where { $_.DisplayName -eq $software }) -ne $null
If(-Not $installed) { Write-Host "'$software' is NOT installed.";
} else { Write-Host "'$software' is installed."
}
Source : | Last Update : Sat, 04 Apr 20
Question : windows powershell ise
Answered by : vicky-raut
CMD> reg query HKLM\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine /v PowerShellVersion
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine PowerShellVersion REG_SZ 5.1.17134.1
Source : https://adamtheautomator.com/powershell-version/ | Last Update : Sun, 31 Oct 21