Skip to content

Instantly share code, notes, and snippets.

@AshFlaw
Created September 20, 2017 12:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AshFlaw/3a3abf995425a0083066e23c518681bd to your computer and use it in GitHub Desktop.
Uninstall the OMS Microsoft Monitoring Agent.
$server = ""
$app = Get-WmiObject -Class Win32_Product -computer $server | Where-Object {$_.Name -match "Microsoft Monitoring Agent"}
$app.Uninstall()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment