WSL
WSL copied to clipboard
bash hangs when run as Network Service account
Microsoft Windows [Version 10.0.15063] Memory dump: [removed].
Reproduction script:
- Create a new scheduled task that will run
bash.exeas Network Service account. Here is a PowerShell recipe (must be run in elevated console with admin rights):
$MyAction = New-ScheduledTaskAction -Execute "bash.exe" -Argument "-c exit 1"
$MyPrincipal = New-ScheduledTaskPrincipal "Network Service"
$MySettings = New-ScheduledTaskSettingsSet
$MyTask = New-ScheduledTask -Action $MyAction -Principal $MyPrincipal -Settings $MySettings
Register-ScheduledTask MyBashTask -InputObject $MyTask
- Run the scheduled task:
Start-ScheduledTask MyBashTask.
Bash starts, but it seems that it hangs and does not exit.
Currently running Windows Subsystem for Linux is only possible from interactive user sessions.
Currently running Windows Subsystem for Linux is only possible from interactive user sessions.
Got it. Thank you! 👍