Forum Discussion

RomanK7's avatar
RomanK7
Brass Contributor
Nov 22, 2022

Remove Run As Configuration and uninstall SCOM Agent with Powershell

Hi
I have a question about the automation with Powershell.
How can I remove a computer from a Run As Configuration (Accounts):
SCOM > Administration > Accounts > "Account Name" > Distribution > "Selected Computers"

 

And then uninstall the SCOM Agent via Powershell?

Are both steps possible with Powershell?

 

Thanks

1 Reply

  • J-P_Grohn's avatar
    J-P_Grohn
    Copper Contributor
    https://kevinholman.com/2017/05/09/scom-management-mp-making-a-scom-admins-life-a-little-easier/

    Easy way (not removing agent, but removes configuration)
    1. Remove agent from management group
    2. Delete agent from scom
    Kevin Holman management pack have also powershell options. If You find way to use that then first remove agent from server and then delete it from scom.

Resources