Start-LabVM

SYNOPSIS

Start a machine

SYNTAX

ByName (Default)

Start-LabVM [[-ComputerName] <String[]>] [-Wait] [-DoNotUseCredSsp] [-NoNewline]
 [-DelayBetweenComputers <Int32>] [-TimeoutInMinutes <Int32>] [-StartNextMachines <Int32>]
 [-StartNextDomainControllers <Int32>] [-Domain <String>] [-RootDomainMachines] [-ProgressIndicator <Int32>]
 [-PreDelaySeconds <Int32>] [-PostDelaySeconds <Int32>] [<CommonParameters>]

ByRole

Start-LabVM -RoleName <Roles> [-Wait] [-DoNotUseCredSsp] [-NoNewline] [-DelayBetweenComputers <Int32>]
 [-TimeoutInMinutes <Int32>] [-StartNextMachines <Int32>] [-StartNextDomainControllers <Int32>]
 [-Domain <String>] [-RootDomainMachines] [-ProgressIndicator <Int32>] [-PreDelaySeconds <Int32>]
 [-PostDelaySeconds <Int32>] [<CommonParameters>]

All

Start-LabVM [-All] [-Wait] [-DoNotUseCredSsp] [-NoNewline] [-DelayBetweenComputers <Int32>]
 [-TimeoutInMinutes <Int32>] [-StartNextMachines <Int32>] [-StartNextDomainControllers <Int32>]
 [-Domain <String>] [-RootDomainMachines] [-ProgressIndicator <Int32>] [-PreDelaySeconds <Int32>]
 [-PostDelaySeconds <Int32>] [<CommonParameters>]

DESCRIPTION

Starts one or more lab machines

EXAMPLES

Example 1

PS C:\> Start-LabVm -All -Wait

Start all VMs in a lab and wait for them to respond to WSMAN requests

PARAMETERS

-All

Start all machines

Type: SwitchParameter
Parameter Sets: All
Aliases:

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

-ComputerName

The machines to start

Type: String[]
Parameter Sets: ByName
Aliases:

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

-DelayBetweenComputers

The delay in minutes between the computer startups

Type: Int32
Parameter Sets: (All)
Aliases:

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

-Domain

Starts all machines of a specific domain

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
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

-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

-PostDelaySeconds

The post-start delay

Type: Int32
Parameter Sets: (All)
Aliases:

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

-PreDelaySeconds

The pre-start delay

Type: Int32
Parameter Sets: (All)
Aliases:

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

-RoleName

The roles to start. See [enum]::GetValues([AutomatedLab.Roles]) or https://automatedlab.org/en/latest/Wiki/Roles/roles/ for more information.

Type: Roles
Parameter Sets: ByRole
Aliases:

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

-RootDomainMachines

Start all machines of the root domain

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-StartNextDomainControllers

Start the next n domain controllers

Type: Int32
Parameter Sets: (All)
Aliases:

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

-StartNextMachines

Start the next n machines

Type: Int32
Parameter Sets: (All)
Aliases:

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

-TimeoutInMinutes

The startup timeout in minutes

Type: Int32
Parameter Sets: (All)
Aliases:

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

-Wait

Indicates that we should wait for the startup procedure to finish

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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