-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathInstall_Apps.ps1
33 lines (24 loc) · 1.13 KB
/
Install_Apps.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Clear-Host
Write-Verbose "Setting Arguments" -Verbose
$StartDTM = (Get-Date)
$LogPS = "${env:SystemRoot}" + "\Temp\Install_Apps.log"
$Path = "C:\Applications-master"
Start-Transcript $LogPS | Out-Null
Write-Verbose "Installing Modules" -Verbose
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
if (!(Test-Path -Path "C:\Program Files\PackageManagement\ProviderAssemblies\nuget")) {Install-PackageProvider -Name 'Nuget' -ForceBootstrap -IncludeDependencies}
if (!(Get-Module -ListAvailable -Name Evergreen)) {Install-Module Evergreen -Force | Import-Module Evergreen}
Update-Module Evergreen
wget https://codeload.github.com/haavarstein/Applications/zip/master -OutFile c:\applications.zip -UseBasicParsing
Expand-Archive C:\applications.zip C:\
CD "$Path\Google\Chrome Enterprise"
.\Install.ps1
CD "$Path\Microsoft\Edge Enterprise"
.\Install.ps1
CD "$Path\Microsoft\Office 365"
.\Install.ps1
Write-Verbose "Stop logging" -Verbose
$EndDTM = (Get-Date)
Write-Verbose "Elapsed Time: $(($EndDTM-$StartDTM).TotalSeconds) Seconds" -Verbose
Write-Verbose "Elapsed Time: $(($EndDTM-$StartDTM).TotalMinutes) Minutes" -Verbose
Stop-Transcript