Forum Discussion
RomanK7
Nov 22, 2022Brass Contributor
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
- J-P_GrohnCopper Contributorhttps://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.