Cannot distribute OS installers which have been added with 'New-CMOperatingSystemInstaller'

After adding an OS installer with PowerShell, you cannot distribute the GUI option 'Distribute Content' is greyed out:

New-CMOperatingSystemInstaller -Name W8 -Path "\\cm01\e$\Source\OS\W8"

The issue occurs with ConfigMgr 2012 SP1 and ConfigMgr R2.

The underlying server OS doesn't matter either (tested with Windows 2008 R2 and Windows 2012 R2).

The OS installer doesn't seem to matter either (tested with W7SP1, W8 and W8.1).

If I add the OS installer through the GUI, then the 'Distribute Content' button is available.

January 15th, 2014 5:04pm

Additional: There are subtle differences between the properties of the OS installers:

Installer added by PowerShell:

Name                           : W8
NumOfPrograms                  : 0
PackageID                      : ABC00035
PackageType                    : 259
PkgFlags                       : 0
PkgSourceFlag                  : 1
PkgSourcePath                  : \\cm01\d$\Source\Operating System Installers\W8-ENT-X64-EN

Installer added by GUI:

Name                           : Windows 8 Enterprise X64 EN
NumOfPrograms                  : 0
PackageID                      : ABC00006
PackageType                    : 259
PkgFlags                       : 16777216
PkgSourceFlag                  : 2
PkgSourcePath                  : \\cm01\d$\Source\Operating System Installers\W8-ENT-X64-EN

Free Windows Admin Tool Kit Click here and download it now
January 15th, 2014 5:18pm


I just installed a Windows Server 2012 R2 with SQL 2012 SP1 and SCCM 2012 R2 to try to recreate your problem.

But when I import a Windows 8.1 installer via the New-CMOperatingSystemInstaller powershell command, this acctually works in my environment, the "Distribute Content" option is availabe to me for the powershell imported installers.

So this should work for you.

January 15th, 2014 11:53pm

Thanks for bringing this to our attention!

Our developers took a look at the code, and as you've indicated, the properties are not set properly using PowerShell.  We've logged an internal issue on this, and are looking at fixing this in a future release. 

In the meantime, the only workaround would be to use the UI, or to use WMI to create or modify the properties of that object.

Thanks again for posting this feedback.


Dave Randall [MSFT]

Free Windows Admin Tool Kit Click here and download it now
January 15th, 2014 11:54pm

Sorry, you are correct!
I was testing New-CMOperatingSystemImage but now when I took a second look I see that you had problem with New-CMOperatingSystemInstaller.
And you are correct, I get the same grayed-out options as you do.

Best regards


January 16th, 2014 12:36am

It looks like these properties aren't allowed to be changed by using WMI.

Free Windows Admin Tool Kit Click here and download it now
January 16th, 2014 9:10am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics