-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
emailed-logsLogs have been emailedLogs have been emailed
Description
Windows Version
Microsoft Windows [Version 10.0.26200.6584]
WSL Version
0.0.0.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
This issue occurs on a fresh Windows installation when carrying out the following steps;
- Run cmd as Administrator
- Use PSExec to run cmd as SYSTEM (psexec -s -i -cmd.exe)
- Verify cmd is running as SYSTEM (whoami returns nt authority\system)
- Run wsl install (in our use case, wsl.exe --install --no-distribution --web-download --enable-wsl1, but the same occurs when just running wsl.exe --install)
Expected Behavior
WSL should install as expected.
Actual Behavior
The error 'The requested operation requires elevation' is returned, and wsl.exe exits.
While it might seem odd to run wsl.exe --install as SYSTEM, this is required when using deployment tools such as ConfigMgr to deploy a working WSL installation to end users. Using PSExec to run cmd.exe as SYSTEM allows us to test wsl.exe in this situation, without using ConfigMgr.
Diagnostic Logs
No response
Metadata
Metadata
Assignees
Labels
emailed-logsLogs have been emailedLogs have been emailed