Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 1.64 KB

Stop-Wsl.md

File metadata and controls

82 lines (55 loc) · 1.64 KB
external help file Module Name online version schema
Wsl-help.xml
Wsl
2.0.0

Stop-Wsl

SYNOPSIS

Terminates all WSL distributions, and shuts down the WSL2 lightweight utility VM.

SYNTAX

Stop-Wsl [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

EXAMPLE 1

Stop-Wsl

This example terminates all WSL distributions, and shuts down the WSL2 lightweight utility VM.

PARAMETERS

-Confirm

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

-WhatIf

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

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

RELATED LINKS