Further improve logon command

Makes it easier to include multiple commands, one per line
pull/2/head
ThioJoe 2025-08-06 19:53:51 -07:00
parent 49ca6c6fc5
commit 9c29c4f0e8
No known key found for this signature in database
GPG Key ID: 2E328FE64CC3898C
1 changed files with 8 additions and 2 deletions

View File

@ -27,11 +27,17 @@
<!-- Run the powershell script from the mapped folder -->
<LogonCommand>
<!-- Run the powershell script from the mapped folder. The seemingly redundant command nesting makes it so the powershell window is visible when running. -->
<Command>powershell -executionpolicy Bypass -command "start powershell {-file C:\Users\WDAGUtilityAccount\Desktop\HostShared\SandboxStartup.ps1 -launchingSandbox};"
<!-- Note: You can add more powershell commands as additional lines because of the way it parses the XML. For example you can uncomment the line below. Comments also obviously work here. -->
<!-- start powershell {Write-Host 'Test'; Read-Host} -->
</Command>
<!-- Run the powershell script from the mapped folder. The seemingly redundant command nesting makes it so the powershell window is visible when running. -->
<Command>powershell -executionpolicy Bypass -command "
start powershell {-file C:\Users\WDAGUtilityAccount\Desktop\HostShared\SandboxStartup.ps1 -launchingSandbox};
<!-- Note: You can add more powershell commands as additional lines because of the way it parses the XML. Just remember to escape any quotation marks. -->
<!-- For example you can uncomment the line below. -->
<!-- start powershell {-file \"C:\Users\WDAGUtilityAccount\Desktop\HostShared\Set Theme Dark.ps1\"} -->
"</Command>
</LogonCommand>
</Configuration>