How to delete Death "Agent Managed" Computer from SCOM with PowerShell
Hello together I need to delete death Computer Objects in our SCOM. The Objects are to find under "Agend Managed" . My Problem is that i only found PS Commands to remove "Agentless Managed" Computer Objects. Have anyone of you a Idea to delete a specific "Agend Monitored" Computer Object from SCOM with PowerShell? Next problem is that the interal Process is 1.Delete the Server itselfe , 2. delete the Agent from SCOM. I only found the PS Command to uninstall a Agent but in our chase thats not possible. Anyone there with a fix for me? Special Thankswith best kind regards Dietscher Andreas Base-IT System Engineer
July 7th, 2011 11:40am

Hi, if the agent-server is dead you can use the Delete option in the agent managed screen to delete the agent from there (it will be grey state already I guess). This is assuming that the computer the agent was located on is not online anymore. Otherwise you might use the uninstall option from the same screen if it was managed by SCOM. Next you open the ops mgr shell from the start menu and use the command remove-disabledmonitoringobject in order to help clean up some stuff. I normally wait at least an hour before doing that, but you can also wait for a day and run the command. This should get rid of the old computers/objects in SCOM.Bob Cornelissen - BICTT (My BICTT Blog) - Microsoft Community Contributor 2011 Recipient
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2011 1:19pm

There's no cmdlet to delete a decommissioned agent with powershell, although you could write your own cmdlet as it is all available in the .net code. I think the remove-disabledmonitoringobject doesn't add a thing. i don't think there are objects leftover when you can delete an agent and if there are objects that have a relationship to that computer u can't delete the agent (in that case you need to disable the objects (discoveries) and remove them with the cmdlet). The 2nd scenario hardly ever occurs when you first remove the agent instead of removing the server first. Rob Korving http://jama00.wordpress.com/
July 7th, 2011 4:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics