Change limiting collection on multiple SCCM collections:
$comps = get-content c:\computers.txt
ForEach ($comp in $comps) { set-cmdevicecollection -collectionid $comp -limitingcollectionid <collectioin ID> }
Export list of collection ID’s to a text file and reference that file in the get-content line. Be sure to add the collection ID of the new limiting collection. This must be ran from the ConfigMgr PowerShell module.