Removing  Members from Static Software Categories

Members can be removed from Static Software Categories by calling the method RemoveMember() of the Software Category object.

Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


Remove the Software Package named "FileZilla 3.0.8.1" from the Static Software Category named "System-Tools" in the "Global Software Library":


$MySwCategory = Get-EmdbSoftwareCategory "emdb:\rootDSE\Global Software Library\System-Tools" -SchemaTag "SwCategory"

$MySwPackage = Get-EmdbSoftwarePackage "emdb:\rootDSE\Global Software Library\Application Library\FileZilla\FileZilla 3.0.8.1"

$MySwCategory.RemoveMember($MySwPackage)


Remove the Software Package named "Office 14 Beta German" from the directory "Global Software Library\Application Library\Beta" from the Static Software Category "Office 14":


$MySwCategory = Get-EmdbSoftwareCategory "emdb:\rootDSE\Global Software Library\Application Library\Microsoft\Office 14" -SchemaTag "SwCategory"

$MySwPackage = Get-EmdbSoftwarePackage "emdb:\rootDSE\Global Software Library\Application Library\Beta\Office 14 Beta German"

$MySwCategory.RemoveMember($MySwPackage)