Tech Community Live: Endpoint Manager edition
Jul 21 2022, 08:00 AM - 12:00 PM (PDT)

Problem with CmdLet Import-CMCollection in MECM 2103

%3CLINGO-SUB%20id%3D%22lingo-sub-2363825%22%20slang%3D%22en-US%22%3EProblem%20with%20CmdLet%20Import-CMCollection%20in%20MECM%202103%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363825%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EWe%20build%20our%20Windows%20Server%20environment%20completely%20unattended%2C%20including%20our%20Microsoft%20Endpoint%20Configuration%20Manager%20(MECM).%20For%20Installing%20and%20configuring%20MECM%2C%20we%20use%20a%20PowerShell%20script.%20Until%20build%202002%20there%20was%20no%20problem.%20When%20we%20use%20the%20latest%202103%20build%2C%20we%20found%20out%20that%20the%20PowerShell%20CmdLet%20%E2%80%9CImport-CMCollection%E2%80%9D%20does%20not%20work%20anymore.%3CBR%20%2F%3EWe%20have%20some%20custom%20collections%20in%20.mof%20format%20we%20want%20to%20import%20with%20this%20PowerShell%20script%2C%20but%20without%20any%20success.%20Importing%20those%20files%20from%20the%20Configuration%20Manager%20User%20Interface%2C%20works%20fine.%3CBR%20%2F%3EIs%20this%20a%20problem%20in%20the%20new%20version%20of%20MECM%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3ESven%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2363825%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECM%20current%20branch%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESDK%20and%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2756697%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20with%20CmdLet%20Import-CMCollection%20in%20MECM%202103%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2756697%22%20slang%3D%22en-US%22%3EI'm%20having%20the%20same%20issue.%20I%20suppose%20there%20is%20no%20fix%20for%20this.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2757447%22%20slang%3D%22en-US%22%3ERe%3A%20Problem%20with%20CmdLet%20Import-CMCollection%20in%20MECM%202103%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2757447%22%20slang%3D%22en-US%22%3EThis%20is%20a%20known%20issue.%3CBR%20%2F%3EUpdating%20to%20SCCM%202107%20will%20fix%20this%20problem.%3C%2FLINGO-BODY%3E
New Contributor

 

Hello,

We build our Windows Server environment completely unattended, including our Microsoft Endpoint Configuration Manager (MECM). For Installing and configuring MECM, we use a PowerShell script. Until build 2002 there was no problem. When we use the latest 2103 build, we found out that the PowerShell CmdLet “Import-CMCollection” does not work anymore.
We have some custom collections in .mof format we want to import with this PowerShell script, but without any success. Importing those files from the Configuration Manager User Interface, works fine.
Is this a problem in the new version of MECM?

 

Thanks in advance,

Sven

2 Replies
I'm having the same issue. I suppose there is no fix for this.
This is a known issue.
Updating to SCCM 2107 will fix this problem.