Creating Static Software Categories

Creates a Static 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 Static Software Category named "System-Tools" in the context "Global Software Library":


New-EmdbSoftwareCategory "emdb:\rootDSE\Global Software Library\System-Tools" 


Create a Static Software Category named "Office 14" in the current context:


Cd "emdb:\rootDSE\Global Software Library\Application Library\Microsoft"

New-EmdbSoftwareCategory "Office 14"


Create a Static Software Category in the "Global Software Library" using the cmdlet New-Item:


New-Item -Path "emdb:\rootDSE\Global Software Library" -Name "Desktop Publishing" -ItemType "SwCategory"


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().


Example:


Cd "emdb:\rootDSE\Global Software Library"

$MyNewCategory = New-Item "Viewer" -ItemType "SwCategory" -DelayCreation

$MyNewCategory.Description = "Contains Packages for viewing different filetypes"

$MyNewCategory.Create()