Powershell
- List all applications
Get-WmiObject -Class Win32_Product
- List applications by name
Get-WmiObject -Class Win32_Product | Where-object {$_.name -like "*Mobile*"}
Batch
reg Query HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall /S /v DisplayName | Find /I "SAP BusinessObjects Live Office 4.2 SP3"
IF %ERRORLEVEL%==1 (
echo "non present"
) ELSE (
Echo "present"
)
0 Comments