Powershell
- List all applications
1 | Get-WmiObject -Class Win32_Product |
- List applications by name
1 | Get-WmiObject -Class Win32_Product | Where-object { $_ .name -like "*Mobile*" } |
Batch
1 2 3 4 5 6 | 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