Get-CMPackage output

Hi All,

Really hoping someone might be able to help with this.

Getting strange behaviour on the Get-CMPackage command which I would serioulsy like to put right as it will hugely help me with package migration 2007-2012.

If I run the vanilla command Get-CMPackage, it merrily list all my packages , names, IDs and critically source paths.

The screen shot shows what I get when I query for name , ID and Source. ID is fine but name and PKGSourcePath are blank as shown! Not much help as I want to put them out to CSV and import with corrected paths.

The packages themselves contain all of this data of course, I ran this command previously with no issue and there have been no system changes. Any ideas on this, so odd that the queried items turn up ok in the output of the vanilla command but not when targetted specifically?

Much appreciated in advance.

July 7th, 2013 6:15pm

Hi,

You need to use the exact spelling of the property names. Try this instead:

Get-CMPackage | Select Name, PackageID, PkgSourcePath

Free Windows Admin Tool Kit Click here and download it now
July 8th, 2013 1:19pm

Mike many thanks for this, perfect fix. Feel a bit silly with this one but it is a lesson learned.

I simply did not realise this was case sensitive.

I had given up hope of reply, made my night there!

Thanks!

July 11th, 2013 3:45pm

You're very welcome, I'm glad I could help out.
Free Windows Admin Tool Kit Click here and download it now
July 11th, 2013 4:33pm

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

Other recent topics Other recent topics