external help file | Module Name | online version | schema |
---|---|---|---|
PSAutoLab-help.xml |
PSAutoLab |
2.0.0 |
Shutdown an Autolab configuration.
Invoke-ShutdownLab [[-Path] <String>] [-NoMessages] [-WhatIf] [-Confirm] [<CommonParameters>]
Use this command to shutdown the virtual machines of an Autolab configuration in the proper order. You can also manually use the Hyper-V management console or cmdlets to do the same thing. It is recommended that you shut down any domain controllers in your configuration last. It is assumed you are running this from within the configuration folder.
You will typically use the Shutdown-Lab alias.
PS C:\Autolab\Configurations\PowerShellLab> Shutdown-Lab
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
The path to the configuration folder. Normally, you should run all commands from within the configuration folder.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: Current Directory
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
Run the command but suppress all status messages.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: Quiet
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.