Close Menu
    Facebook X (Twitter) Instagram
    Prajwal.orgPrajwal.org
    • Home
    • SCCM

      SCCM 2503 Upgrade New Features and Hotfixes

      April 30, 2025

      Create a Device Collection for SCCM 2409 Clients

      February 27, 2025

      Device Collection for SCCM 2403 Clients

      January 22, 2025

      SCCM 2403 Hotfixes, Upgrade and New Features

      January 21, 2025

      ConfigMgr 2401 Technical Preview Released

      January 22, 2025
    • Intune

      New Features in Intune 2502 release (February 2025)

      February 27, 2025

      Intune Service Release 2406 New Features (June 2024)

      June 23, 2024

      Microsoft Intune 2405 New Features (May 2024)

      May 29, 2024

      How to Disable Android Enterprise system app in Intune

      May 22, 2024

      Intune ends support for Android device administrator

      January 22, 2025
    • Windows 11

      How to Install WSUS Console on Windows 11

      January 22, 2025

      How to enable memory integrity using Group Policy

      January 22, 2025

      Uninstall Mail and Calendar Apps using PowerShell

      January 22, 2025

      How to Create Batch File to Delete Temp Files

      January 22, 2025

      How to Change RDP Port using PowerShell

      January 22, 2025
    • Contact
    Prajwal.orgPrajwal.org
    Home » Export SCCM Device Collection using PowerShell
    SCCM

    Export SCCM Device Collection using PowerShell

    January 22, 2025171 Views

    In this post I will show you how to export SCCM device collection using PowerShell. Using Export-CMCollection PowerShell command, you can export the device collection in ConfigMgr.

    Other than using PowerShell, there are multiple methods to export a device collection in Configuration Manager.

    For example, you can manually export a device collection using SCCM console. To do that you have to enter each collection and select the devices and then copy the data and paste to excel.

    In fact the easiest way to export devices from a collection is to open your collection, select the devices, do a Ctrl+C and then open excel and past the clipboard contents.

    Exporting a device collection here means you export all the devices within that collection to an excel file that can be analyzed later.

    It is always good thing to export the device collection when you want to compare two device collections.

    Export SCCM Device Collection using PowerShell

    Let’s see how to export SCCM device collection using PowerShell:

    • Launch the ConfigMgr console.
    • In the upper-left corner, there’s a blue rectangle. Select the white arrow in the blue rectangle, and choose Connect via Windows PowerShell.
    • To export the device collection run the PowerShell command.
    Export-CMCollection -Name "Device_collection_name" -ExportFilePath "path to .mof file"

    Export-CMCollection PowerShell cmdlet is exclusively used to export a device collection. The collection exported here is in .mof format.

    You must provide an export file path and specify where you want to save the .mof file. You can use the same .mof file to import the device collection in case the collection is deleted.

    Export SCCM Device Collection using PowerShell
    Export SCCM Device Collection using PowerShell

    Note: You can use ConfigMgr reports to find the devices that are part of a device collection. Reports in SCCM have an export option that will export the device details to different file formats.

    In the SCCM console, go to Monitoring\Overview\Reporting\Reports. From the list of all reports, look for the report named “All resources in a specific collection“. Right-click this report and select Run.

    Share. Facebook Twitter Pinterest LinkedIn Email
    Previous ArticleHow To Enable SCCM Console Dark Theme
    Next Article Install ConfigMgr Console Using ConsoleSetup

    Related Posts

    SCCM

    SCCM 2503 Upgrade New Features and Hotfixes

    April 30, 2025
    SCCM

    Create a Device Collection for SCCM 2409 Clients

    February 27, 2025
    SCCM

    Device Collection for SCCM 2403 Clients

    January 22, 2025
    Latest Guides

    SCCM 2503 Upgrade New Features and Hotfixes

    New Features in Intune 2502 release (February 2025)

    Create a Device Collection for SCCM 2409 Clients

    Intune Service Release 2406 New Features (June 2024)

    Updated:June 23, 2024
    Popular Guides

    Uninstall Snipping Tool using PowerShell

    Updated:January 22, 2025

    How to Manually Install SCCM Client Agent

    Updated:January 22, 2025

    How to Create Batch File to Delete Temp Files

    Updated:January 22, 2025

    Disable Driver Signature Enforcement using CMD Prompt

    Updated:January 22, 2025
    Trending Posts

    How To Add Google Analytics To GeneratePress

    Updated:February 14, 2024

    Remove Windows Updates using PowerShell

    Updated:January 22, 2025

    Download SCCM Technical Preview 1907 Baseline Media

    Updated:January 21, 2025

    How To Install SCCM Client on Windows 11 PC

    Updated:January 21, 2025
    © 2025 Prajwal.org | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.