WSL icon indicating copy to clipboard operation
WSL copied to clipboard

bash hangs when run as Network Service account

Open bahrep opened this issue 9 years ago • 2 comments

Microsoft Windows [Version 10.0.15063] Memory dump: [removed].

Reproduction script:

  1. Create a new scheduled task that will run bash.exe as 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
  1. Run the scheduled task: Start-ScheduledTask MyBashTask.

Bash starts, but it seems that it hangs and does not exit.

bahrep avatar Aug 29 '17 13:08 bahrep

Currently running Windows Subsystem for Linux is only possible from interactive user sessions.

benhillis avatar Aug 29 '17 16:08 benhillis

Currently running Windows Subsystem for Linux is only possible from interactive user sessions.

Got it. Thank you! 👍

bahrep avatar Aug 30 '17 09:08 bahrep