Weekly Tip 20

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.

Share:

Facebook
Twitter
LinkedIn

Contact Us

Name
=
On Key

More Posts

WME Cybersecurity Briefings No. 040
Cyber Security

WME Security Briefing 04 August 2025

1. NightEagle APT Exploits Zero-Day in Microsoft Exchange to Target Chinese Defense and Tech Sectors Overview A new advanced persistent threat group, dubbed NightEagle (also called APT-Q-95), is being linked to a string of attacks. These

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.

=