nav-arm-templates/additional-install.ps1

35 строки
1.2 KiB
PowerShell
Исходник Обычный вид История

if (!(Test-Path function:Log)) {
function Log([string]$line, [string]$color = "Gray") {
("<font color=""$color"">" + [DateTime]::Now.ToString([System.Globalization.DateTimeFormatInfo]::CurrentInfo.ShortTimePattern.replace(":mm",":mm:ss")) + " $line</font>") | Add-Content -Path "c:\demo\status.txt"
Write-Host -ForegroundColor $color $line
}
}
#Install Choco
Log "Install Choco"
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n allowGlobalConfirmation
Log "Install git"
choco install git --force
Log "Install Chrome"
choco install googlechrome
Log "Install firefox"
choco install firefox
2019-07-31 18:11:30 +03:00
Log "Install Office 365 Business"
choco install office365business
#Add VSCode Extensions
"eamodio.gitlens", "ms-vscode.PowerShell", "heaths.vscode-guid", "github.vscode-pull-request-github", "formulahendry.docker-explorer" | % {
Log "Install VSCode Extension: $_"
code --install-extension $_
}
2019-05-05 01:21:35 +03:00
. "C:\DEMO\Settings.ps1"
& git config --global core.safecrlf false
& git config --global user.email "$($vmAdminUsername)@$($hostName)"
& git config --global user.name "$vmAdminUsername"