If you are using SCCM 2012 and are going to be adding a user to the same set of user collections you could do this:
$UID = (Get-CMUser -Name "Neptune\Bob (Bob)").ResourceID Add-CMUserCollectionDirectMembershipRule -CollectionName Collection1 -ResourceId $UID Add-CMUserCollectionDirectMembershipRule -CollectionName Collection2 -ResourceId $UID Add-CMUserCollectionDirectMembershipRule -CollectionName Collection3 -ResourceId $UID Add-CMUserCollectionDirectMembershipRule -CollectionName Collection4 -ResourceId $UID I may be over simplifying it, but this should get you started. Mike From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Marable, Mike Sent: Tuesday, April 07, 2015 7:46 AM To: 'mssms@lists.myitforum.com' Subject: RE: [mssms] Add Users To Multiple Collections Suzzi, Are you looking to add a user to the same set of collections each time? For example, whenever a new employee starts their user ID would be added to these 4 specific collections? Mike From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Suzzi Williams Sent: Tuesday, April 07, 2015 6:21 AM To: mssms@lists.myitforum.com Subject: [mssms] Add Users To Multiple Collections Hi guys I have seen lots of scripts to add computers or users to collections. I am looking for a script to add a single user to multiple collections, has any one seen something like this? or has some one got one? Thanks Suz x ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues