Skip to content

Instantly share code, notes, and snippets.

@wise-io
Last active February 13, 2022 21:07
Show Gist options
  • Save wise-io/5d61e2f97990c05058cd30c15411786b to your computer and use it in GitHub Desktop.
Save wise-io/5d61e2f97990c05058cd30c15411786b to your computer and use it in GitHub Desktop.
Uninstalls Meraki Systems Manager Agent Silently
# Removes Meraki Systems Manager Agent
$App = Get-ChildItem -Path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ | Get-ItemProperty | Where-Object { $_.DisplayName -like 'Meraki Systems Manager Agent' } | Select-Object -Property DisplayName, UninstallString
foreach ($Ver in $App) {
if ($Ver.UninstallString) {
$DisplayName = $Ver.DisplayName
$Uninst = $Ver.UninstallString
Write-Output "Uninstalling $DisplayName..."
cmd /c $Uninst /qn
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment