You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,11 @@ To run wsl-dist-update as a service, copy wsl-dist-update.exe to a permanent loc
37
37
38
38
A troubleshooting utility that resets the WSL 2 stack to various degrees.
39
39
40
-
`wsl-reset --reset` - Shuts down WSL, resets the WSL service, and installs any WSL updates, if available.
40
+
`wsl-reset -reset` - Shuts down WSL, resets the WSL service, and installs any WSL updates, if available.
41
41
42
-
`wsl-reset --hard-reset` - Shuts down WSL, stops the WSL service, uninstalls WSL, and re-installs WSL.
42
+
`wsl-reset -hard-reset` - Shuts down WSL, stops the WSL service, uninstalls WSL, and re-installs WSL.
43
43
44
-
`wsl-reset --destrutive-reset` - Shuts down WSL, restarts the WSL service, **unregisters all WSL distros**, stops the WSL service, uninstalls WSL, and re-installs WSL.
44
+
`wsl-reset -destrutive-reset` - Shuts down WSL, restarts the WSL service, **unregisters all WSL distros**, stops the WSL service, uninstalls WSL, and re-installs WSL.
45
45
46
46
## sysdistrowt
47
47
@@ -51,4 +51,4 @@ Adds the WSL System Distro (CBL-Mariner) to the Windows Terminal and/or Windows
51
51
52
52
## build-wslinternals
53
53
54
-
Builds wslinternals PowerShell scripts to .exe files using ps2exe. Requires PowerShell 5.
54
+
Builds wslinternals PowerShell scripts to .exe files using ps2exe. Must be run as Administrator on PowerShell 7 or on PowerShell 5.
Copy file name to clipboardExpand all lines: wsl-reset.ps1
+10-13Lines changed: 10 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,16 @@
1
+
param (
2
+
[switch]$reset,
3
+
[switch]$hardReset,
4
+
[switch]$destructiveReset
5
+
)
1
6
2
7
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
3
8
Write-Error"This script must be run as an administrator."
4
9
Exit1
5
10
}
6
11
7
-
8
-
if (-not$args) {
9
-
Write-Error"This script must be run with either --reset, --hard-reset, or --destructive-reset."
0 commit comments