()
| 618 | * qualified form is unambiguous when the machine is domain-joined. |
| 619 | */ |
| 620 | const windowsTaskUserId = (): string => { |
| 621 | const name = userInfo().username; |
| 622 | const domain = process.env.USERDOMAIN; |
| 623 | return domain ? `${domain}\\${name}` : name; |
| 624 | }; |
| 625 | |
| 626 | /** |
| 627 | * Render the Task Scheduler task definition (Task Scheduler 1.2 XML, the schema |
no outgoing calls
no test coverage detected