winiso-valhalla/winfs/Scripts/Startup.ps1

14 lines
573 B
PowerShell

$null = $env:WIN_COMPUTER_NAME;
$null = $env:SETUP_SCRIPT_NAME;
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'));
Import-Module $env:ChocolateyInstall/helpers/chocolateyProfile.psm1;
choco install -y git
choco install -y powershell-core;
refreshenv;
git clone https://git.nuth.ch/manuth/PortValhalla.git;
Set-Location PortValhalla;
pwsh;