question

AULUwe-1142 avatar image
0 Votes"
AULUwe-1142 asked AULUwe-1142 answered

How to remove subgroups in SCOM 2016 by script?

Hello,

I try to delete groups in SCOM 2016 by powershell script. This works for all groups, exept they are subgroups of another group. How can I remove the subgroup relationship by script to be able to delete this group in the next step?

Thank you!!

windows-server-powershellmsc-operations-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StoyanChalakov avatar image
0 Votes"
StoyanChalakov answered StoyanChalakov edited

Hi,
a dumb question maybe: Have you tried with this script:

Automating OpsMgr Part 10: Deleting Groups
https://blog.tyang.org/2015/07/27/automating-opsmgr-part-10-deleting-groups/

Regards,
Stoyan


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AULUwe-1142 avatar image
0 Votes"
AULUwe-1142 answered

Hi Stoyan,

yes, I already saw that script and included the part of deleting monitors targeting the group in my script.
Nevertheless it doesn't work for subgroups.

Kind regards,
Uwe

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AULUwe-1142 avatar image
0 Votes"
AULUwe-1142 answered

I'm still looking for a solution. Any ideas appreciated!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.