File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ foreach ($Component in $Components)
150150 Write-Information - MessageData " " - InformationAction Continue
151151 Write-Verbose - Message " OneDrive Installing" - Verbose
152152
153- Start-Process - FilePath $env: SystemRoot \SysWOW64 \OneDriveSetup.exe
153+ Start-Process - FilePath $env: SystemRoot \System32 \OneDriveSetup.exe
154154 }
155155 else
156156 {
@@ -224,8 +224,9 @@ foreach ($Component in $Components)
224224 Write-Verbose - Message " Teams Downloading" - Verbose
225225
226226 # https://www.microsoft.com/microsoft-teams/download-app
227+ $DownloadsFolder = Get-ItemPropertyValue - Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" - Name " {374DE290-123F-4565-9164-39C4925E467B}"
227228 $Parameters = @ {
228- Uri = " https://statics.teams.cdn.office.net/production-windows-x64/enterprise/webview2/lkg/MSTeams-x64.msix "
229+ Uri = " https://statics.teams.cdn.office.net/evergreen-assets/DesktopClient/MSTeamsSetup.exe "
229230 OutFile = " $DownloadsFolder \MSTeams-x64.msix"
230231 UseBasicParsing = $true
231232 Verbose = $true
You can’t perform that action at this time.
0 commit comments