locked
Delete UNIX/Linux agent using PowerShell RRS feed

  • Question

  • For automation purposes I'm looking for a way to delete UNIX/Linux agents in SCOM using PowerShell. Just to be clear: I'm not talking about Uninstalling, but about Deleting.

    But this just does not seem to be possible, however the option in the SCOM console does exist. Is there any way to achieve this?

    Monday, September 30, 2019 1:22 PM

Answers

All replies

  • Hello,

    You can make use of the Uninstall-SCXAgent SCOM PowerShell cmdlet to uninstall agents on managed UNIX and Linux computers.

    If the agent computers are online and can communicate with SCOM, you should use the Uninstall option which uninstalls the agent completely.

    If the agent computer has for example already been decommissioned or is offline, use the Delete option, as you cannot perform an uninstall unless you have connectivity to the agent computer.

    Best regards,
    Leon



    Blog: https://thesystemcenterblog.com LinkedIn:

    Monday, September 30, 2019 1:32 PM
  • I don't really see what option under de Uninstall-SCXAgent you mean, but the Remove-SCXAgent cmdlet is what I need. For some reason I missed that one. Thanks a lot!
    Monday, September 30, 2019 1:59 PM
  • Sorry missed that you were looking explicitly for deleting :)

    But yes, for deleting you would use:

    It's better and cleaner to uninstall, but if that's not an option you would have to delete/remove the agent.


    Blog: https://thesystemcenterblog.com LinkedIn:

    Monday, September 30, 2019 2:04 PM