-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAIBWin10MSImageBuildTeamMedia.ps1
49 lines (38 loc) · 2.37 KB
/
AIBWin10MSImageBuildTeamMedia.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#Script to setup golden image with Azure Image Builder
#Create temp folder
New-Item -Path 'C:\temp' -ItemType Directory -Force | Out-Null
#Install VSCode
Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/?Linkid=852157' -OutFile 'c:\temp\VScode.exe'
Invoke-Expression -Command 'c:\temp\VScode.exe /verysilent'
#Start sleep
Start-Sleep -Seconds 10
#InstallNotepadplusplus
Invoke-WebRequest -Uri 'https://notepad-plus-plus.org/repository/7.x/7.7.1/npp.7.7.1.Installer.x64.exe' -OutFile 'c:\temp\notepadplusplus.exe'
Invoke-Expression -Command 'c:\temp\notepadplusplus.exe /S'
#Start sleep
Start-Sleep -Seconds 10
#InstallFSLogix
Invoke-WebRequest -Uri 'https://aka.ms/fslogix_download' -OutFile 'c:\temp\fslogix.zip'
Start-Sleep -Seconds 10
Expand-Archive -Path 'C:\temp\fslogix.zip' -DestinationPath 'C:\temp\fslogix\' -Force
Invoke-Expression -Command 'C:\temp\fslogix\x64\Release\FSLogixAppsSetup.exe /install /quiet /norestart'
#Start sleep
Start-Sleep -Seconds 10
#Disable Windows Update
Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU -name NoAutoUpdate -Value “1” -Force | Out-Null
#Setup Timezone redirection
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" -PropertyType DWORD -name fEnableTimeZoneRedirection -Value “1” -Force | Out-Null
#InstallTeamsMachinemode Preview Media Optimisations - Reg pre-reqs
New-Item -Path HKLM:\SOFTWARE\Microsoft\Teams -Force | Out-Null
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Teams -name IsWVDEnvironment -PropertyType DWORD -Value “1” -Force | Out-Null
#Install VC++ & WebSocket Service then Teams with media optimisations
Invoke-WebRequest -Uri 'https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads' -OutFile 'c:\temp\vc.msi'
Invoke-Expression -Command 'c:\temp\vc.msi /quiet'
#Start sleep
Start-Sleep -Seconds 10
Invoke-WebRequest -Uri 'https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE4vkL6' -OutFile 'c:\temp\websocket.msi'
Invoke-Expression -Command 'c:\temp\websocket.msi /quiet'
#Start sleep
Start-Sleep -Seconds 10
Invoke-WebRequest -Uri 'https://statics.teams.cdn.office.net/production-windows-x64/1.3.00.4461/Teams_windows_x64.msi' -OutFile 'c:\temp\Teams.msi'
Invoke-Expression -Command 'msiexec /i C:\temp\Teams.msi /quiet /l*v C:\temp\teamsinstall.log ALLUSER=1 ALLUSERS=1'