Contents

Windows Sandbox 參數調整設定小記

Contents

有空研究在整理

隨意小記

分享一組我在啟動 Windows Sandbox 時都會執行的初始設定腳本 | The Will Will Web

(11) How to configure Windows Sandbox - YouTube

https://docs.microsoft.com/zh-tw/powershell/module/microsoft.powershell.core/about/about_scripts?view=powershell-7.2

powershell 呼叫
https://stackoverflow.com/questions/64795150/windows-sandbox-powershell-logon-command-window-not-visible

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<Configuration>
  <MappedFolders>
    <MappedFolder>
      <HostFolder>C:\SandboxScripts</HostFolder>
      <ReadOnly>true</ReadOnly>
    </MappedFolder>
    <MappedFolder>
      <HostFolder>C:\CodingProjects</HostFolder>
      <ReadOnly>false</ReadOnly>
    </MappedFolder>
  </MappedFolders>
  <LogonCommand>
    <Command>powershell -executionpolicy unrestricted -command "start powershell {-noexit -file C:\SandboxScripts\autorun.ps1}"</Command>
  </LogonCommand>
</Configuration>

Customize Windows Sandbox