Renaming Static Patch Categories

Renames the specified Static Patch Category object.


Examples:


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


Rename the Static Patch Category named "Desktop Publishing" from the "Patch Library" to the new name  "Graphics Software" through setting the name property and a subsequent call to the method Update():


$MyPatchCategory = Get-EmdbPatchCategory "emdb:\rootDSE\Global Software Library\Patch Library\Desktop Publishing"

$MyPatchCategory.Name = "Graphics Software"

$MyPatchCategory.Update()


Rename the Static Patch Category named "Viewer" to the new name "File-Viewer" using the cmdlet Rename-Item:


Cd "emdb:\rootDSE\Global Software Library\Patch Library"

Rename-Item "Viewer" -NewName "File-Viewer"