Skip to content

Documented new wsl.conf options #2175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion WSL/wsl-config.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Advanced settings configuration in WSL
description: A guide to the wsl.conf and .wslconfig files used for configuring settings when running multiple Linux distributions on Windows Subsystem for Linux.
ms.date: 12/16/2024
ms.date: 05/07/2025
ms.topic: article
ms.custom: seo-windows-dev
adobe-target: true
Expand Down Expand Up @@ -144,6 +144,23 @@ wsl.conf section label: `[boot]`
| Key | Value | Default | Notes |
|:----|:----|:----|:----|
| `command` | string | `""` | A string of the command that you would like to run when the WSL instance starts. This command is run as the root user. e.g: `service docker start`. |
| `protectBinfmt` | boolean | `true` | Prevents WSL from generating systemd units when systemd is enabled. |

### GPU settings

wsl.conf section label: `[gpu]`

| Key | Value | Default | Notes |
|:----|:----|:----|:----|
| `enabled` | boolean | `true` | Allow Linux applications to access the Windows GPU via para-virtualization. |

### Time settings

wsl.conf section label: `[time]`

| Key | Value | Default | Notes |
|:----|:----|:----|:----|
| `useWindowsTimezone` | boolean | `true` | Setting this key will make WSL use and sync to the timezone set in Windows. |

### Example wsl.conf file

Expand Down