Set-LWHypervVMDescription

SYNOPSIS

Set the Notes field of a Hyper-V VM

SYNTAX

Set-LWHypervVMDescription [-Hashtable] <Hashtable> [-ComputerName] <String> [<CommonParameters>]

DESCRIPTION

Set the Notes field of a Hyper-V VM to store information about the VMs status.

EXAMPLES

Example 1

PS C:\> Set-LWHypervVMDescription -Hashtable @{
    CreatedBy = 'JHP'
    Purpose   = 'Compute'
} -ComputerName HV01

Deserializes the hashtable with tags to the Notes field of the Hyper-V VM HV01

PARAMETERS

-ComputerName

The machine to set the notes field of

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Hashtable

A hashtable containing notes. Values will be converted to String

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES