How do i modify this code to uninstall a different Application?

$javaVer = Get-ChildItem -Path HKLM:SOFTWAREMicrosoftWindowsCurrentVersionUninstall, HKLM:SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "java" } | Select-Object -Property DisplayName, UninstallString ForEach ($ver in $javaVer) { If ($ver.UninstallString) { $uninst = $ver.UninstallString Start-Process cmd -ArgumentList "/c $uninst /quiet /norestart" -NoNewWindow } } 

What exactly needs to be modified here to uninstall another Software?

submitted by /u/Ummgh23
[link] [comments]

Leave a Reply