Skip to content

Instantly share code, notes, and snippets.

@theangkko
Last active November 29, 2023 21:22
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 theangkko/c5af7bc736ccb0559609cde3151111e4 to your computer and use it in GitHub Desktop.
Save theangkko/c5af7bc736ccb0559609cde3151111e4 to your computer and use it in GitHub Desktop.
window-Sandbox-setup-files
Set-ExecutionPolicy Bypass ` -Scope Process ` -Force
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install git -y
# choco install googlechrome vscode -y
$progressPreference = 'silentlyContinue'
Write-Information "Downloading WinGet and its dependencies..."
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
#Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx
#Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.7.3/Microsoft.UI.Xaml.2.7.x64.appx -OutFile Microsoft.UI.Xaml.2.7.x64.appx
#Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx
#Add-AppxPackage Microsoft.UI.Xaml.2.7.x64.appx
start C:\users\WDAGUtilityAccount\Downloads
start appwiz.cpl
REM Part::VScode install
REM curl -L "https://update.code.visualstudio.com/latest/win32-x64-user/stable" --output C:\Users\WDAGUtilityAccount\Downloads\vscode.exe
REM Install and run VSCode
C:\Users\WDAGUtilityAccount\Downloads\vscode.exe /verysilent /suppressmsgboxes
REM Part::install Choco and Winget
Powershell Set-ExecutionPolicy unrestricted
Powershell C:\Users\WDAGUtilityAccount\Downloads\Install-ChocoWinget.ps1"
Pause
REM Download VSCode DOWNLOAD AUTO
curl -L "https://update.code.visualstudio.com/latest/win32-x64-user/stable" --output C:\Users\WDAGUtilityAccount\Downloads\vscode.exe
REM Install and run VSCode
C:\Users\WDAGUtilityAccount\Downloads\vscode.exe /verysilent /suppressmsgboxes
<Configuration>
<MappedFolders>
<MappedFolder>
<HostFolder>D:\Downloads</HostFolder>
<SandboxFolder>C:\Users\WDAGUtilityAccount\Downloads\sandbox</SandboxFolder>
</MappedFolder>
<MappedFolder>
<HostFolder>D:\repo</HostFolder>
<SandboxFolder>C:\Users\WDAGUtilityAccount\repo</SandboxFolder>
<ReadOnly>false</ReadOnly>
</MappedFolder>
</MappedFolders>
<LogonCommand>
<Command>C:\Users\WDAGUtilityAccount\Downloads\sandbox\VSCodeInstall.cmd</Command>
</LogonCommand>
<LogonCommand>
<Command>explorer.exe C:\users\WDAGUtilityAccount\Downloads</Command>
</LogonCommand>
</Configuration>
<Configuration>
<Networking>Enable</Networking>
<MappedFolders>
<MappedFolder>
<HostFolder>D:\Downloads</HostFolder>
<SandboxFolder>C:\Users\WDAGUtilityAccount\Downloads</SandboxFolder>
<ReadOnly>false</ReadOnly>
</MappedFolder>
<MappedFolder>
<HostFolder>D:\repo</HostFolder>
<SandboxFolder>C:\Users\WDAGUtilityAccount\repo</SandboxFolder>
<ReadOnly>false</ReadOnly>
</MappedFolder>
</MappedFolders>
<LogonCommand>
<Command>explorer.exe C:\users\WDAGUtilityAccount\Downloads</Command>
</LogonCommand>
<LogonCommand>
<Command>C:\Users\WDAGUtilityAccount\Downloads\VSCodeInstall.cmd</Command>
</LogonCommand>
<LogonCommand>
<Command>explorer.exe C:\Users\WDAGUtilityAccount\Downloads\Prep.cmd</Command>
</LogonCommand>
</Configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment