Created
September 23, 2023 14:18
-
-
Save rossarioking/bf60c19bfd7295fef878981fb1a13e84 to your computer and use it in GitHub Desktop.
Powershell Script to Check for Specific Application Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$applicationDisplayName = "Your Application Name" # Replace with the name of the application you want to check | |
$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | |
$installedApps = Get-ItemProperty -Path $regPath | Where-Object { $_.DisplayName -eq $applicationDisplayName } | |
if ($installedApps) { | |
Write-Host "$applicationDisplayName is installed." | |
} | |
else { | |
Write-Host "$applicationDisplayName is not installed." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment