Wait-LabVMRestart

SYNOPSIS

Wait for machine restart

SYNTAX

Wait-LabVMRestart [-ComputerName] <String[]> [-DoNotUseCredSsp] [-TimeoutInMinutes <Double>]
 [-ProgressIndicator <Int32>] [-StartMachinesWhileWaiting <Machine[]>] [-NoNewLine] [-MonitorJob <Object>]
 [-MonitoringStartTime <DateTime>] [<CommonParameters>]

DESCRIPTION

Waits for the restart of a lab machine

EXAMPLES

Example 1

PS C:\> Wait-LabVMRestart SQL1

Waits for the restart of SQL1

PARAMETERS

-ComputerName

The machine names to be waited on

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-DoNotUseCredSsp

Indicates that CredSSP should not be used

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-MonitoringStartTime

The start of the monitoring job

Type: DateTime
Parameter Sets: (All)
Aliases:

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

-MonitorJob

not implemented

Type: Object
Parameter Sets: (All)
Aliases:

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

-NoNewLine

Indicates that no new lines should be present in the output

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressIndicator

Every n seconds, print a . to the console

Type: Int32
Parameter Sets: (All)
Aliases:

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

-StartMachinesWhileWaiting

Indicates the machines that should be started while waiting for the VM restart

Type: Machine[]
Parameter Sets: (All)
Aliases:

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

-TimeoutInMinutes

The wait timeout in minutes

Type: Double
Parameter Sets: (All)
Aliases:

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

OUTPUTS

NOTES