The following examples update the specified hardware definition, and its associated image.


Code Sample

# Update the hardware definition.

$hardwareDefinition = $administration.GET_HardwareDefinition("1f2bf8bb-ed73-4db7-bd4e-f063068bdde1");

$hardwareDefinition.DisplayName = "Updated Display Name";

$hardwareDefinition.Description = "Updated Description";

$administration.SET_HardwareDefinition($hardwareDefinition);

 


# Update the image for the hardware definition.

$binaryData = [System.IO.File]::ReadAllBytes("C:\temp\UpdatedImage.png"); 

$administration.SET_HardwareDefinitionImage("1f2bf8bb-ed73-4db7-bd4e-f063068bdde1", $binaryData);