SharpSCCM
SharpSCCM copied to clipboard
[BUG] New collection member checks existing collections for 1 member
Describe the bug
BadSectorLabs 12:03 PM I think this is a bug. You only check if the member count is equal to 1, but you could be adding a second device (which instantly reports succes) or 3+ devices which will never satisfy this check. Perhaps better to check that the device is in the group members like you do above? https://github.com/Mayyhem/SharpSCCM/blob/d2dd01fa58f3e168d34611b249579aa848b7ea97/lib/MgmtPointWmi.cs#L1036C53-L1036C53