Created
September 23, 2023 14:18
-
-
Save rossarioking/bf60c19bfd7295fef878981fb1a13e84 to your computer and use it in GitHub Desktop.
Revisions
-
rossarioking created this gist
Sep 23, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ $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." }