Skip to content

Run WSL.exe non-interactive #7022

@pasilva-msft

Description

@pasilva-msft

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions