Last active
February 13, 2022 21:07
-
-
Save wise-io/5d61e2f97990c05058cd30c15411786b to your computer and use it in GitHub Desktop.
Uninstalls Meraki Systems Manager Agent Silently
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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