You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ([bool](schtasks /query /fo list | Select-String -pattern "TaskName:\s+\\{{TASK_NAME}}" -quiet)) {
This part requires the system language is English, because the regex has TaskName literal.
However, when OS language settings is Japanese, the schtasks command puts something like this:
タスク名: \StartWSL_Ubuntu_for_desktop-xxxxxx-tomyk
How about just removing TaskName: because \s+\\{{TASK_NAME}} is enough to identify the newly registered task?
The text was updated successfully, but these errors were encountered:
This part requires the system language is English, because the regex has
TaskName
literal.However, when OS language settings is Japanese, the
schtasks
command puts something like this:How about just removing
TaskName:
because\s+\\{{TASK_NAME}}
is enough to identify the newly registered task?The text was updated successfully, but these errors were encountered: