Skip to content

Removes all devices from any of the device collections specified in the config file

Notifications You must be signed in to change notification settings

colinchaput/ConfigMgr-RemoveAllClientsFromDeviceCollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Remove all MECM clients from specified Device Collections

This script connects to your ConfigMgr site, search for any provided device collection names, and systematically remove any and all clients from them. Useful when you have collections that you only need clients added to temporarily, and don't want to manually remove them all afterwards.

Config File

Rename the config.json.example to config.json Update the two key values according to your environment

Specifying Device Collections

In the script, update the $CollectionNames array with the device collections you want all clients removed from

About

Removes all devices from any of the device collections specified in the config file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published