File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -260,10 +260,10 @@ Remove-Item -Path HKCU:\SOFTWARE\Microsoft\Office\16.0\Common\ExperimentEcs -Rec
260260if (-not (Test-Path - Path " $PSScriptRoot \setup.exe" ))
261261{
262262 $Parameters = @ {
263- Uri = " https://www.microsoft.com/en-us/download/confirmation .aspx?id=49117"
263+ Uri = " https://www.microsoft.com/en-us/download/details .aspx?id=49117"
264264 UseBasicParsing = $true
265265 }
266- $ODTURL = ((Invoke-WebRequest @Parameters ).Links | Where-Object {$_.outerHTML -match " click here to download manually " }).href
266+ $ODTURL = ((Invoke-WebRequest @Parameters ).Links | Where-Object {$_.href -match " officedeploymenttool " }).href
267267 $Parameters = @ {
268268 Uri = $ODTURL
269269 OutFile = " $PSScriptRoot \officedeploymenttool.exe"
You can’t perform that action at this time.
0 commit comments