external help file | Module Name | online version | schema |
---|---|---|---|
Wsl-help.xml |
Wsl |
2.0.0 |
Terminates all WSL distributions, and shuts down the WSL2 lightweight utility VM.
Stop-Wsl [-WhatIf] [-Confirm] [<CommonParameters>]
The Stop-Wsl
cmdlet terminates all WSL distributions, and shuts down the WSL2 lightweight utility
VM.
This cmdlet wraps the functionality of wsl.exe --shutdown
.
Stop-Wsl
This example terminates all WSL distributions, and shuts down the WSL2 lightweight utility VM.
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
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.