Skip to content

Instantly share code, notes, and snippets.

@TakamiChie
Last active July 7, 2020 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakamiChie/98902ef2c4ffb21ab78841a530f151f7 to your computer and use it in GitHub Desktop.
Save TakamiChie/98902ef2c4ffb21ab78841a530f151f7 to your computer and use it in GitHub Desktop.
19H2対応版:chocolateyとMicrosoft TeamsとChromium EdgeをセットアップしUI設定を日本語に設定したWindowsサンドボックスを立ち上げる(全ファイルを同じフォルダにおいてね)
Set-Content -Path "$env:TEMP\temp.wsb" -Value (Get-Content "$PSScriptRoot\template.wsb" | % { $_ -replace "%CURRENT%", $PSScriptRoot })
Start-Process $env:TEMP\temp.wsb -Wait
Remove-Item "$env:TEMP\temp.wsb"
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco.exe install -y -f microsoft-teams
choco.exe install -y -f microsoft-edge
powershell Set-WinUserLanguageList -Force ja-JP
powershell Set-Culture -CultureInfo ja-JP
<Configuration>
<VGpu>Default</VGpu>
<Networking>Default</Networking>
<MappedFolders>
<MappedFolder>
<HostFolder>%CURRENT%</HostFolder>
<ReadOnly>true</ReadOnly>
</MappedFolder>
</MappedFolders>
<LogonCommand>
<Command>C:\Users\WDAGUtilityAccount\Desktop\sandbox\run.cmd</Command>
</LogonCommand>
</Configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment