51 Commits

Author SHA1 Message Date
Blue
28f15865b6 Localization change from build: 145307940 (#40302)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-04-24 08:12:24 -07:00
Blue
3363d3d111 Localization change from build: 145280293 (#40299)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-04-24 01:57:57 +00:00
Blue
34bce0d6f7 Localization change from build: 145214525 (#40283)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-04-23 09:29:46 -07:00
Ben Hillis
81839b3fb0 Add admin protection error message for shadow admin scenarios (#40170)
* Add admin protection error message for shadow admin scenarios

When Windows Admin Protection is enabled, the elevated process runs as a
shadow admin with a different SID, so distributions registered under the
real user are not visible. Surface an informational message in two cases:

1. Launching a distribution by name that is not found (WSL_E_DISTRO_NOT_FOUND)
2. Listing distributions when none are registered (WSL_E_DEFAULT_DISTRO_NOT_FOUND)

* formatting

* Show admin protection message for non-elevated users too

When Admin Protection creates a shadow admin, distros registered under
the real user are invisible to the shadow admin and vice versa. Remove
the elevation check so the informational message appears for both
elevated and non-elevated callers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-22 23:33:36 +00:00
Blue
2793f4c90e Localization change from build: 145118702 (#40271)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-04-22 08:19:18 -07:00
Blue
e6a5a465d7 Localization change from build: 145021774 (#40258)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-04-21 08:31:28 -07:00
Blue
fad87fd45c Localization change from build: 144997944 (#40257)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-04-20 20:41:18 -07:00
FetoiuCatalin
8e6584385b Add boot check for ipv6 disabled via registry in mirrored mode (#40235)
* Fallback to NAT when IPv6 is disabled via registry for mirrored networking

When the registry key HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
has DisabledComponents set to 0xFF (all IPv6 components disabled), mirrored
networking mode cannot mirror host interfaces. This adds a check in
ValidateNetworkingMode() that detects this condition and falls back to NAT
networking mode with a user-facing warning.

Only mirrored networking mode is affected by this registry key; other
networking modes (NAT, Bridged, VirtioProxy) are not checked.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* add registry check

* pr review

* remove shutdown

* re-add shutdown

---------

Co-authored-by: Catalin-Emil Fetoiu <cfetoiu@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-20 18:30:20 -07:00
Darshak Bhatti
37a3aa5b13 Settings: Add pending changes tracking and apply confirmation dialog (#14425)
* initial commit

* cp

* cp

* pr feedback

* cp

* pr feedback

* pr feedback

* cp

* pr feedback

* refactor

* pr feedback

* cp

* Move Apply Changes button to ShellPage to deduplicate across settings pages

* PR feedback 1

---------

Co-authored-by: Darshak Bhatti <dabhatti@micorsoft.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-04-20 18:24:17 -07:00
Blue
93fa8b5ee0 Localization change from build: 143033415 (#14553)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-03-27 09:15:10 -07:00
Blue
2d428fc4db Localization change from build: 142949177 (#14542)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-03-26 08:15:30 -07:00
Blue
8338ecaf52 Localization change from build: 142847827 (#14525)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-03-25 08:23:15 -07:00
Feng Wang
83d59d4b4a Fix: Fail and warn the user when --uninstall is given parameters (#14524)
Fail and warn the user when --uninstall is given parameters.
2026-03-25 13:08:56 +08:00
Blue
456a5cfe45 Localization change from build: 141225222 (#14360)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-03-05 06:51:07 -08:00
Blue
7cadd55247 Localization change from build: 141137626 (#14352)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-03-04 08:26:09 -08:00
Ben Hillis
8c220dc083 Fix grammar, typos, and formatting in docs and source (#14286)
* Fix localization text, Intune capitalization, ADMX indentation, unused import

- distributions/validate.py: Remove unused 'import base64'
- en-US/en-GB Resources.resw: Fix word order 'the list distribution' -> 'the distribution list' in MessageCouldFetchDistributionList
- en-US/en-GB Resources.resw: Remove trailing space from MessageCorruptedDistroRegistration value
- intune/en-US/WSL.adml: Fix 'For Linux' -> 'for Linux' capitalization (5 occurrences) to match official product name
- intune/WSL.admx: Fix inconsistent 3-space indent to 4-space on AllowWSL1 and CustomKernelUserSettingConfigurable policies

* Fix grammar, typos, and formatting in docs and source code

- WmiService.h: Fix duplicated word 'of of' -> 'is of' in WQL comment
- drvfs.md: Fix 'which tell' -> 'which tells' (subject-verb agreement), double space, second 'tell' -> 'tells'
- systemd.md: Fix 'tries synchronizes' -> 'tries to synchronize'
- wslhost.exe.md: Fix 'processes terminates' -> 'process terminates'
- boot-process.md: Add missing 'in' preposition, fix C:/ -> C:\, fix lowercase 'linux' to 'Linux' (4 occurrences), fix misplaced parenthesis
- init.md: Fix double space before hvsocket backtick
- session-leader.md: Fix heading level ## -> ### to match sibling section
- CONTRIBUTING.md: Fix double period after bold security notice
- debugging.md: Fix missing word 'be' in 'can enabled', fix 'process' -> 'processes'
- index.md: Add missing period at end of sentence
- technical-documentation/index.md: Fix 'API's' -> 'APIs' (remove incorrect apostrophe)
- relay.md: Fix lowercase 'linux' to 'Linux' (3 occurrences)
- localhost.md: Fix lowercase 'linux' to 'Linux'
- plan9.md: Fix lowercase 'linux' to 'Linux'

* update errormessages testcase

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-03-03 18:13:59 -08:00
Blue
21cb15e009 Localization change from build: 141093872 (#14345)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-03-03 13:49:17 -08:00
Andy Sterland
32329bb35c Add vs info to settings (#14169)
* Initial commit to add a page to the OOBE experience for the Visual Studio integration with WSL.

* Updated link for C++ to the landing page for Linux dev.

* Reverting accidental commit of UserConfig.cmake.sample.

* Revert accidental change

* Revert "cleanup: fix UserConfig.cmake.sample in master branch (#14076)"

This reverts commit 4b23185dfe.

* Reapply "cleanup: fix UserConfig.cmake.sample in master branch (#14076)"

This reverts commit d97e2753bb.

* revert

* revert

* Tidying whitespace

* Tidying whitespace

* Tidying whitespace

* Tidying whitespace

* Tidying whitespace

* Update src/windows/wslsettings/Views/OOBE/ShellPage.xaml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/windows/wslsettings/Activation/ProtocolActivationHandler.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 14:45:00 -05:00
Blue
cf742f0186 Localization change from build: 138754557 (#14140)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-01-31 07:52:22 -08:00
Blue
b5c11b15e4 Localization change from build: 138626054 (#14127)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-01-29 08:07:56 -08:00
Blue
05603c86ed Localization change from build: 138543929 (#14122)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-01-28 09:01:25 -08:00
Blue
608ce7d8f2 Localization change from build: 138459409 (#14114)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-01-27 08:18:42 -08:00
Craig Loewen
49856a2633 Updated enable virtualization error message (#14110)
* Updated enable virtualization error message

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Ben Hillis <benhillis@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-26 13:38:45 -08:00
Blue
21e60dcfb2 Localization change from build: 137534777 (#14059)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-01-13 15:46:54 -08:00
Blue
0a2f80d2cd Localization change from build: 137487010 (#14057)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-01-13 10:56:13 -08:00
Blue
7ced2d6bd1 Localization change from build: 136690255 (#14003)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-12-31 10:42:35 -08:00
Blue
9ed5c130f4 Localization change from build: 135812430 (#13905)
* Localization change from build: 135812430

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* remove unused string

---------

Co-authored-by: WSL localization <noreply@microsoft.com>
Co-authored-by: Ben Hillis <benhillis@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-12-15 13:36:56 -05:00
Ben Hillis
b4c0ced6b8 cleanup: minor tweaks to path translation failed messages (#13892)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-12-13 10:59:55 -08:00
Fabio Ros
f3bdac25ba Fix typo in Dutch localization (#13853) 2025-12-10 09:39:39 -08:00
Blue
71c87c211f Localization change from build: 134886165 (#13802)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-12-01 08:33:25 -08:00
Blue
b6cc29eefc Localization change from build: 134015316 (#13731)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-11-17 11:18:05 -08:00
Blue
b2c28b92fe Localization change from build: 133610492 (#13704)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-11-11 08:12:16 -08:00
Blue
296fe805b9 Localization change from build: 132491007 (#13639)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-10-25 12:09:22 -07:00
Blue
2715a79fb4 Localization change from build: 132360042 (#13630)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-10-23 08:27:52 -07:00
Blue
3361736a3a Localization change from build: 132310101 (#13627)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-10-22 10:42:21 -07:00
Blue
cccae113d7 Localization change from build: 132289123 (#13625)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-10-22 08:42:54 -07:00
Ben Hillis
9e9ef6f145 Fix edge cases around .vhd support (#13061)
* Fix edge cases around .vhd support

* PR feedback

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* pr feedback

* remove unneeded scope exit in unit test

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-21 17:00:47 -07:00
Junhao Liao
98f4960118 fix: correct sparse VHD command to include true (#13512)
* fix: correct sparse VHD command to include `true`

* Revert all localization strings to f8c26f7c3 except en-US/Resources.resw

* fix: run validate-localization.py with --fix option
2025-10-01 16:49:49 -07:00
Blue
0c0ca04ab0 Localization change from build: 127406956 (#13316)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-07-31 08:13:52 -07:00
Josh Soref
6d18bf5074 Spelling (#13289)
* link: report them to the Microsoft Security Response Center (MSRC)

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* link: Microsoft Security Response Center

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: , or

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: adapters

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: at

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: attaching them to the bug, please send them to wsl-gh-logs@microsoft.com with the github issue number in the subject, and include a link to your github issue comment in the message body.

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: disk

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: effect

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: for the file

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: for the mount to be available

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: grandchild

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: last pid

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: nonexistent

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: on which the...

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: path

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: pseudo

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: script

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: service, the

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: session

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: strip

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: that a

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: that the

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: the first one we find in the test

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: to which

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: waitpid

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: whether

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: while the relay was being set up,

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: with an

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: without specifying

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

---------

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Ben Hillis <benhillis@gmail.com>
2025-07-29 11:24:39 -07:00
Blue
494808d308 Localization change from build: 127017409 (#13290)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-07-25 10:10:44 -07:00
Blue
e8145a7ee9 Localization change from build: 126514791 (#13267)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-07-17 15:24:39 -07:00
Ben Hillis
ae77467ec8 cleanup: remove reference to deprecated pageReportingOrder setting (#13264)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-07-17 10:52:03 -07:00
Blue
5f34d17955 Localization change from build: 125806897 (#13229)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-07-06 10:17:24 -07:00
Craig Gumbley
4547e2a6f2 Expose the VM ID inside user distros (#13212)
* Add --vm-id to wslinfo usage string

* Pass the VM id to init

This change ensures that we pass the vm id to an
instances init. The id is then set as an environment
variable and can be accessed at runtime.

* Expose VM id to wslinfo

Add a new argument --vm-id to wslinfo so that
the caller can retrieve the VM id by calling the
binary.

Although it is an environment variable, it can be useful
here too to save additional string parsing from the caller.
2025-07-03 17:30:47 -07:00
Blue
ece64c8b14 Localization change from build: 124713931 (#13134)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-06-18 09:38:15 -07:00
Blue
c7964ead5b Localization change from build: 124643027 (#13123)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-06-17 09:25:15 -07:00
Blue
02ca6d3d2d Fix various issues with systemd user sessions (#13101)
* Save state

* Save state

* Add test coverage

* Remove useless condition

* Update localized strings

* Update test distro
2025-06-13 16:31:57 -07:00
Blue
ed3e9479a1 Localization change from build: 123701725 (#13034)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-06-02 14:19:36 -07:00
Josh Soref
83d14de518 Spelling localizations (#12957) 2025-05-21 10:48:14 -07:00