You need to load the CM module before you can use those cmdlets C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1 (located where you CM console is installed)
On Mon, Jul 28, 2014 at 11:24 AM, James Avery <[email protected]> wrote: > Optional Reference in the Application properties. > > I need a wmi query for to use in Orchestrator. Any ideas? > > I did find this, but I can't seem to make it work and I've looked for any > of the words and can't find it in WMI. > > > http://social.technet.microsoft.com/Forums/en-US/da91de73-4ee7-4a43-9639-047675117a2b/reading-application-property-optional-reference?forum=configmanagersdk > > $AppObject = Get-CmApplication -name $appname > [XML]$xml = $AppObject.SDMPackageXML > $OptionalRef = $xml.AppMgmtDigest.Application.CustomID.'#text' > > >

