Import-Lab

SYNOPSIS

Import a lab

SYNTAX

ByName (Default)

Import-Lab [-Name] <String> [-DoNotRemoveExistingLabPSSessions] [-PassThru] [-NoValidation] [-NoDisplay]
 [<CommonParameters>]

ByPath

Import-Lab -Path <String> [-DoNotRemoveExistingLabPSSessions] [-PassThru] [-NoValidation] [-NoDisplay]
 [<CommonParameters>]

ByValue

Import-Lab [-LabBytes] <Byte[]> [-DoNotRemoveExistingLabPSSessions] [-PassThru] [-NoValidation] [-NoDisplay]
 [<CommonParameters>]

DESCRIPTION

Imports an installed lab environment

EXAMPLES

Example 1

Import-Lab -Name MyLab -NoValidation

Import the lab "MyLab" from XML, skipping the validation

PARAMETERS

-DoNotRemoveExistingLabPSSessions

Indicates that existing sessions should not be removed during lab import.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-LabBytes

The raw byte content of a lab to import.

Type: Byte[]
Parameter Sets: ByValue
Aliases:

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

-Name

Which lab should be imported from ProgramData\AutomatedLab\Labs

Type: String
Parameter Sets: ByName
Aliases:

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

-NoDisplay

Indicates that no console output should be visible

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-NoValidation

Skip all validation steps

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-PassThru

Return the imported lab

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Path

The parent path of your exported lab XML files

Type: String
Parameter Sets: ByPath
Aliases:

Required: True
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

aa