duplicate collection ConfigMgr PowerShell : Learn how to duplicate a collection in ConfigMgr: device and user collections with console and PowerShell

1. “How to duplicate device and user collections in ConfigMgr using PowerShell”
2. “Step-by-step guide to duplicating collections in ConfigMgr with PowerShell and console”.

New Post | How to Duplicate a Collection in ConfigMgr: A Comprehensive Guide

Are you struggling to create multiple collections in ConfigMgr? Do you find it time-consuming to manually create new device or user collections? Look no further! In this article, we will provide you with step-by-step instructions on how to duplicate collections in ConfigMgr, both using the console and PowerShell. So, let’s dive right in and simplify your collection management process!

Duplicate Collections Using the ConfigMgr Console

The ConfigMgr console offers a user-friendly interface to duplicate collections effortlessly. By following these simple steps, you’ll be able to create duplicate collections in no time:

Step 1: Launch the ConfigMgr console on your machine.

Step 2: Navigate to the “Assets and Compliance” workspace and select “Device Collections” or “User Collections,” depending on the type of collection you want to duplicate.

Step 3: Right-click on the collection you want to duplicate and select the “Duplicate Collection” option from the context menu.

Step 4: A new window will pop up, allowing you to specify the name and other properties of the duplicated collection. Make the necessary changes and click “OK” to proceed.

Step 5: Once the collection is duplicated, you can further customize it by modifying membership rules, deployments, or any other desired settings.

Duplicate Collections Using PowerShell

If you prefer using PowerShell for better automation and control, you can duplicate collections with just a few lines of code. Here’s how:

Step 1: Open PowerShell with administrative privileges.

Step 2: Connect to your ConfigMgr site by executing the following command:
“`
cd “X:\Program Files\Microsoft Configuration Manager\AdminConsole\bin”
Import-Module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + ‘\ConfigurationManager.psd1’)
Set-Location “$Env:SMS_ADMIN_UI_PATH\..\”
“`

Step 3: To duplicate a device collection, run the following command:
“`
New-CMDuplicateCollection -SourceCollectionID -TargetCollectionName
“`
Replace `` with the ID of the collection you want to duplicate, and `` with the desired name for the duplicated collection.

Step 4: To duplicate a user collection, use the following command:
“`
New-CMDuplicateCollection -SourceCollectionID -TargetCollectionName -UserCollection
“`
Again, replace the placeholders with the appropriate values.

Why Duplicate Collections?

Now that you know how to duplicate collections in ConfigMgr, you may wonder why it is a useful feature. Here are a few scenarios where duplicating collections can be beneficial:

1. Testing and Deployment: Duplicating a collection allows you to create a replica of an existing one, making it easier to test deployments or changes without affecting the original collection.

2. Customization: By duplicating a collection, you can quickly create a new collection with similar properties, saving time and effort in recreating the configuration from scratch.

3. Segmentation: Duplicating collections is useful when you need to divide your devices or users into smaller, more manageable groups based on specific criteria, such as software versions, geographical locations, or departments.

Conclusion

In this article, we have explored the process of duplicating collections in ConfigMgr using both the console and PowerShell. By following the provided instructions, you can now effortlessly create duplicate device and user collections, enhancing your collection management capabilities. Whether you prefer the simplicity of the ConfigMgr console or the power of PowerShell, duplicating collections will undoubtedly streamline your workflow and improve your overall productivity. So, what are you waiting for? Start duplicating collections in ConfigMgr today and experience the efficiency it brings to your organization!.

Source : @PrajwalDesai

.

1) “How to duplicate collections in ConfigMgr using PowerShell”
2) “Step-by-step guide to duplicating device and user collections in ConfigMgr”.

Leave a Comment