external help file | Module Name | online version | schema |
---|---|---|---|
PSAutoLab-help.xml |
PSAutoLab |
2.0.0 |
Prepare the localhost for PSAutolab.
Invoke-SetupHost [[-DestinationPath] <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
The first time you install the PSAutoLab module, you will need to configure the localhost. This configuration will include adding the Hyper-V feature if it is not already installed. It will also install the supported version of the Lability module from the PowerShell Gallery. You only need to run this command once. If you update the PSAutoLab module at some point, it is recommended that you run Refresh-Host.
You will typically use the Setup-Host alias.
PS C:\> Setup-Host
Follow the on-screen prompts. If you have to install the Hyper-V feature you definitely should reboot before setting up any lab configurations.
PS C:\> Setup-Host -destination D:\Autolab
This will setup the Autolab module but put the necessary files on the D: drive. It is recommended that you use Autolab as the folder name.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify the parent path for your Autolab setup. The default is C:\Autolab The command will create the folder.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: C:\Autolab
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.