locked
Uninstalling 07 agent RRS feed

  • Question

  • HI,

    I want to uninstall ALL the scom 07 agents from my to-be-Decommissioned environment. Agents are pushed and manually installed as well. How do I do this using a script?

    THanks! 

    Sam

    Monday, May 30, 2016 11:33 AM

Answers

  • Hello,

    • Log on to the managed computer with an account that is a member of the administrators security group for the computer.
    • Open the command window.
    • At the prompt, for example, type the following:
    %WinDir%\System32\msiexec.exe /x \MOMAgent.msi /qb

    Or

    • you can use powershell to invoke this command

    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer" where applicable. This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!)

    Best regards.

    Waleed Mostafa

    Blog: waleedmostafa.wordpress.com



    Monday, May 30, 2016 5:59 PM
  • Hello,

    Using the below script you can uninstall the SCOM agent from remote machines for list of servers given in text format.

    Script to Uninstall SCOM agent from remote machines - Powershell

    https://gallery.technet.microsoft.com/scriptcenter/Script-to-Uninstall-SCOM-5a81806a

    In addition, you may use uninstall-agent command in SCOM 2007 R2:

    https://technet.microsoft.com/en-us/library/gg132243.aspx

    Regards,

    Yan Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    • Edited by Yan Li_ Tuesday, May 31, 2016 2:58 AM
    • Proposed as answer by Yan Li_ Monday, June 6, 2016 7:18 AM
    • Marked as answer by Yan Li_ Tuesday, June 7, 2016 8:16 AM
    Tuesday, May 31, 2016 2:54 AM

All replies

  • msiexec /x {25097770-2B1F-49F6-AB9D-1C708B96262A} /qn /L*v c:\log.txt
    or
    msiexec /x {25097770-2B1F-49F6-AB9D-1C708B96262A} /qn

    Rob Korving
    http://jama00.wordpress.com/

    Monday, May 30, 2016 11:41 AM
  • Thanks! 

    So this will uninstall all the agents at once? Where do I run this?

    Monday, May 30, 2016 1:35 PM
  • Hello,

    • Log on to the managed computer with an account that is a member of the administrators security group for the computer.
    • Open the command window.
    • At the prompt, for example, type the following:
    %WinDir%\System32\msiexec.exe /x \MOMAgent.msi /qb

    Or

    • you can use powershell to invoke this command

    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer" where applicable. This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!)

    Best regards.

    Waleed Mostafa

    Blog: waleedmostafa.wordpress.com



    Monday, May 30, 2016 5:59 PM
  • Hello,

    Using the below script you can uninstall the SCOM agent from remote machines for list of servers given in text format.

    Script to Uninstall SCOM agent from remote machines - Powershell

    https://gallery.technet.microsoft.com/scriptcenter/Script-to-Uninstall-SCOM-5a81806a

    In addition, you may use uninstall-agent command in SCOM 2007 R2:

    https://technet.microsoft.com/en-us/library/gg132243.aspx

    Regards,

    Yan Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    • Edited by Yan Li_ Tuesday, May 31, 2016 2:58 AM
    • Proposed as answer by Yan Li_ Monday, June 6, 2016 7:18 AM
    • Marked as answer by Yan Li_ Tuesday, June 7, 2016 8:16 AM
    Tuesday, May 31, 2016 2:54 AM