From 5dcdd2c36f5a3a15d1a9bb160dd8f638eed7376b Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:03:43 -0700 Subject: [PATCH] Clean up the Get-MicrosoftDrivers old code and version change --- FFUDevelopment/BuildFFUVM.ps1 | 159 +--------------------------------- 1 file changed, 1 insertion(+), 158 deletions(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index 7829a3f..d09359b 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -336,7 +336,7 @@ param( [bool]$AllowExternalHardDiskMedia, [bool]$PromptExternalHardDiskMedia = $true ) -$version = '2409.2' +$version = '2410.1' #Check if Hyper-V feature is installed (requires only checks the module) $osInfo = Get-WmiObject -Class Win32_OperatingSystem @@ -541,163 +541,6 @@ function Start-BitsTransferWithRetry { return $false } -# function Get-MicrosoftDrivers { -# param ( -# [string]$Make, -# [string]$Model, -# [int]$WindowsRelease -# ) - -# $url = "https://support.microsoft.com/en-us/surface/download-drivers-and-firmware-for-surface-09bb2e09-2a4b-cb69-0951-078a7739e120" - -# # Download the webpage content -# WriteLog "Getting Surface driver information from $url" -# $OriginalVerbosePreference = $VerbosePreference -# $VerbosePreference = 'SilentlyContinue' -# $webContent = Invoke-WebRequest -Uri $url -UseBasicParsing -Headers $Headers -UserAgent $UserAgent -# $VerbosePreference = $OriginalVerbosePreference -# WriteLog "Complete" - -# # Parse the content of the relevant nested divs -# WriteLog "Parsing web content for models and download links" -# $html = $webContent.Content -# $nestedDivPattern = '
(.*?)
' -# $nestedDivMatches = [regex]::Matches($html, $nestedDivPattern, [System.Text.RegularExpressions.RegexOptions]::Singleline) - -# $models = @() -# $modelPattern = '

(.*?)

\s*\s*\s*

\s*