Skip to content

Commit b3d3a1c

Browse files
authored
Update Download.ps1
1 parent a14edf4 commit b3d3a1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Download.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ Remove-Item -Path HKCU:\SOFTWARE\Microsoft\Office\16.0\Common\ExperimentEcs -Rec
260260
if (-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"

0 commit comments

Comments
 (0)