Creating Dynamic Software Categories
Creating Dynamic Software Categories
Creates a Dynamic Software Category object in the current or in the specified context.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
Create a Dynamic Software Category named "Adobe Reader" in the context "Global Software Library\Application Library\Adobe":
Cd "emdb:\rootDSE\Global Software Library\Application Library\Adobe" New-EmdbSoftwareCategory "Adobe Reader" -Dynamic -Filter "(Name=*Reader*)" |
Hint: In the context of the emdb drive, the cmdlet New-Item provides the additional parameter -DelayCreation. Using this parameter creates the object on the client side only and doesn't propagate the changes to the DSMDB instantly. Now you can manipulate properties of this object and finally the changes can be propagated to the DSMDB by calling the method Create(). |
Create a Dynamic Software Category named "Office Packages" in the context "Global Software Library\Application Library\Microsoft" using the cmdlet New-Item:
Cd "emdb:\rootDSE\Global Software Library\Application Library\Microsoft" $MyNewCategory = New-Item "Office Packages" -ItemType "DynamicSwCategory" -DelayCreation $MyNewCategory.Filter = "(Name=*Office*)" $MyNewCategory.Create() |