Hi all,
I’m looking for a script to uninstall Adobe Shockwave Player (regardless of the version) from Windows.
Hi all,
I’m looking for a script to uninstall Adobe Shockwave Player (regardless of the version) from Windows.
Hi
This sounds like a great use case for Automox’s Worklet Development Kit!
Within the WDK we have a few pre-written functions that you can use for simplifying software installs.
With these two functions in mind, we can cook up a low-code worklet to uninstall Adobe Shockwave!
$appName = 'Adobe Shockwave'
$installed = Get-Win32App | Where-Object { $_.Name -like "*$appName*" }
if ( $installed ) {
Write-Output "$appName was detected. `nFlagging for Remediation."
exit 99
}
Write-Output "$appName not detected. `nDevice is compliant."
exit 0
$appName = 'Adobe Shockwave'
$uninstall = Get-Win32App | Where-Object { $_.Name -like "*$appName*" } | Remove-Win32App -AdditionalArgs '/S'
if ( $uninstall.Exitcode -ne 0 ) {
Write-Error "$appName uninstall has failed."
exit 1
}
else {
Write-Output "$appName uninstall was successful."
exit 0
}
I hope that helps!
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.