Enable-LabMachineAutoShutdown

SYNOPSIS

Enable Azure auto-shutdown for machines

SYNTAX

Enable-LabMachineAutoShutdown [[-ComputerName] <Machine>] [[-Time] <TimeSpan>] [<CommonParameters>]

DESCRIPTION

Enable Azure auto-shutdown for machines

EXAMPLES

Example 1

PS C:\> Enable-LabMachineAutoShutdown -Time '19:00:00'

Using the current time zone, shut down all lab VMs at 7 pm

PARAMETERS

-ComputerName

List of machines to stop

Type: Machine
Parameter Sets: (All)
Aliases:

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

-Time

Time at which machines are stopped

Type: TimeSpan
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
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