microsoft / microsoft/WSL

Run WSL.exe non-interactive

Open
#7,022 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

We have a C# application that needs to call wsl.exe to run a command with no user logged on. For example, need to run wsl.exe whois microsoft.com

Describe the solution you'd like
A clear and concise description of what you want to happen.

Call wsl.exe without a logged on user, an application call to wsl.exe, schedule a windows task to run wsl.exe command from time to time, for instance.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

The application that I am trying to run is based on Ruby, which is better suited for Linux, convert it to Windows is very tricky and so will be to update this application from time to time.

Additional context
Add any other context or screenshots about the feature request here.

I am able to run the application by using wsl.exe , but user must be logged on. Tried to use Windows Scheduled tasks to run with no user logged on, but it does not work. Maybe I could install wsl.exe on SYSTEM user?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the wsl.exe entry point and the reported Windows Scheduled Tasks scenario; compare invocation when a user is logged on with the no-user context. Done means the requested Ruby/Linux command can be launched through wsl.exe by an application or scheduled task without an interactive logged-on user.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, ruby
Domain
cli, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.