2020-06-11 13:57:10 +03:00
|
|
|
|
if (!(Test-Path function:AddToStatus)) {
|
|
|
|
|
function AddToStatus([string]$line, [string]$color = "Gray") {
|
2020-06-11 16:02:55 +03:00
|
|
|
|
("<font color=""$color"">" + [DateTime]::Now.ToString([System.Globalization.DateTimeFormatInfo]::CurrentInfo.ShortTimePattern.replace(":mm",":mm:ss")) + " $line</font>") | Add-Content -Path "c:\demo\status.txt" -Force -ErrorAction SilentlyContinue
|
2019-03-28 12:20:56 +03:00
|
|
|
|
Write-Host -ForegroundColor $color $line
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#Install Choco
|
2020-06-11 13:57:10 +03:00
|
|
|
|
AddToSTatus "Install Choco"
|
2019-03-28 12:20:56 +03:00
|
|
|
|
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
|
|
|
|
choco feature enable -n allowGlobalConfirmation
|
|
|
|
|
|
2020-06-11 13:57:10 +03:00
|
|
|
|
AddToStatus "Install git"
|
2020-07-02 07:53:04 +03:00
|
|
|
|
choco install git --force --params "/NoAutoCrlf"
|
2019-03-28 12:20:56 +03:00
|
|
|
|
|
2020-07-02 07:53:04 +03:00
|
|
|
|
AddToStatus "Install Edge"
|
|
|
|
|
choco install microsoft-edge
|
2019-12-11 13:29:22 +03:00
|
|
|
|
|
2020-06-11 13:57:10 +03:00
|
|
|
|
AddToStatus "Install Chrome"
|
2019-03-28 12:20:56 +03:00
|
|
|
|
choco install googlechrome
|
|
|
|
|
|
2020-06-11 13:57:10 +03:00
|
|
|
|
AddToStatus "Install firefox"
|
2019-03-28 12:20:56 +03:00
|
|
|
|
choco install firefox
|
|
|
|
|
|
2020-10-25 09:34:16 +03:00
|
|
|
|
#AddToStatus "Install Office 365 Business"
|
|
|
|
|
#choco install office365business
|
2019-07-31 18:11:30 +03:00
|
|
|
|
|
2020-10-25 09:34:16 +03:00
|
|
|
|
#AddToStatus "Install PowerBI Desktop"
|
|
|
|
|
#choco install powerbi
|
2019-10-12 23:18:37 +03:00
|
|
|
|
|
2019-03-28 12:20:56 +03:00
|
|
|
|
#Add VSCode Extensions
|
|
|
|
|
"eamodio.gitlens", "ms-vscode.PowerShell", "heaths.vscode-guid", "github.vscode-pull-request-github", "formulahendry.docker-explorer" | % {
|
2020-06-11 13:57:10 +03:00
|
|
|
|
AddToStatus "Install VSCode Extension: $_"
|
2019-03-28 12:20:56 +03:00
|
|
|
|
code --install-extension $_
|
|
|
|
|
}
|
2019-05-05 01:21:35 +03:00
|
|
|
|
|
|
|
|
|
. "C:\DEMO\Settings.ps1"
|
2019-09-07 23:52:21 +03:00
|
|
|
|
& "C:\Program Files\GIT\bin\git.exe" config --global core.safecrlf false
|
|
|
|
|
& "C:\Program Files\GIT\bin\git.exe" config --global user.email "$($vmAdminUsername)@$($hostName)"
|
|
|
|
|
& "C:\Program Files\GIT\bin\git.exe" config --global user.name "$vmAdminUsername"
|