Good point, I´ll do that if no one proves me wrong today.

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Jason Sandys
Sent: 30 May 2013 14:11
To: [email protected]
Subject: RE: [mssms] New-CMProgram has no PackageID option.

 

You should file this on connect.

 

J

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Larus Milan Bulat
Sent: Thursday, May 30, 2013 7:06 AM
To: [email protected]
Subject: [mssms] New-CMProgram has no PackageID option.

 

Hi, just starting to convert my WMI based Powershell scripts to 2012 sp1
when I stumbled on a issue with New-CMProgram, it only allows you to specify
the package name and not PackageID like the WMI class SMS_Program will.

 

This means the Name has to be unique and you cannot continue with something
like:

Manufacturer:“Adobe“, Name:“Adobe Reader“, Version:“xx.xx“,
Language:“English“

Manufacturer:“Adobe“, Name:“Adobe Reader“, Version:“yy.yy“,
Language:“German“

 

As two or more packages have the same name New-CMProgram fails with:

New-CMProgram : The parameters specified match more than one collection.

 

 

Not found any workarounds, any ideas ?

 

 

 

 




Reply via email to