rjayblue83 Posted September 26, 2014 Report post Posted September 26, 2014 I am looking for a way to create new package deployments based on Collection name. I have the creation of the deployments down, but cannot figure how to gather and store the names of the collections to pass into the set-cmpackagedeployment cmdlet. My basic idea would be a for loop, so foreach object in the collection create package with package name and collection name. Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted September 26, 2014 Report post Posted September 26, 2014 You could use Get-CMDeviceCollection to get the properties of device related collections. Quote Share this post Link to post Share on other sites More sharing options...
rjayblue83 Posted September 26, 2014 Report post Posted September 26, 2014 Thanks Peter, I ended up writing a script to create advertisements for each of the subCollections based on the parent. This will allow the advertisements to migrate. Quote Share this post Link to post Share on other sites More sharing options...