Skip to content

MS Link Change - Microsoft Update Health Tools/Remediation.ps1 #13

Description

@sbv2291

It looks like MS link is little changed and script needs to be modified

Current Link in the Script = "https://www.microsoft.com/en-us/download/confirmation.aspx?id=103324"
New Link = "https://www.microsoft.com/en-us/download/details.aspx?id=103324"

Below updated code works for me :

$ProgressPreference = 'SilentlyContinue'
$URL = "https://www.microsoft.com/en-us/download/details.aspx?id=103324"
$Request = Invoke-WebRequest -Uri $URL -UseBasicParsing
$DownloadURL = ($Request.Links | Where-Object { $.outerHTML -match "dlcdetail__download-btn" -and $.href -match ".zip" }).href

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions