Retrieving Members of Static Software Categories
Retrieving Members of Static Software Categories
The members of a Static Software Category can be retrieved by calling the method GetMembers() of the Software Category object.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
Retrieve the members of the Static Software Category named "System-Tools" from the "Global Software Library":
$MySwCategory = Get-EmdbSoftwareCategory "emdb:\rootDSE\Global Software Library\System-Tools" -SchemaTag "SwCategory" $MySwCategory.GetMembers() |
Retrieve the members of the Static Software Category named "Office 14" from the current context:
Cd "emdb:\rootDSE\Global Software Library\Application Library" $MySwCategory = Get-EmdbSoftwareCategory "Office 14" -SchemaTag "SwCategory" $MySwCategory.GetMembers() |