Add further functionality to the WSL script

This commit is contained in:
Manuel Thalmann 2024-08-27 00:38:46 +02:00
parent 380b70322c
commit 6ab0df4dc8
3 changed files with 101 additions and 47 deletions
scripts/Common/Scripts

View file

@ -194,6 +194,6 @@ $null = New-Module {
Clears resources allocated during the operation.
#>
function Clear-OperationResources {
wsl --unregister (Get-DistributionName);
Uninstall-WslDistribution;
}
};