diff --git a/Download_Latest_Sophia.ps1 b/Download_Latest_Sophia.ps1 index c38112a8..7701a416 100644 --- a/Download_Latest_Sophia.ps1 +++ b/Download_Latest_Sophia.ps1 @@ -44,9 +44,8 @@ catch [System.Net.WebException] Write-Warning -Message "https://codeload.github.com is unreachable. Please check Internet connection or change your DNS records." Write-Information -MessageData "" -InformationAction Continue - $DNS = (Get-NetRoute -AddressFamily IPv4 | Where-Object -FilterScript {$_.Protocol -eq "NetMgmt"} | Get-NetAdapter | Where-Object -FilterScript { - ($_.Status -eq "Up") -and (-not $_.Virtual) - } | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses + $InterfaceIndex = (Find-NetRoute -RemoteIPAddress "1.1.1.1" | Select-Object -First 1).InterfaceIndex + $DNS = (Get-NetAdapter -InterfaceIndex $InterfaceIndex | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses Write-Warning -Message "You're using $(if ($DNS.Count -gt 1) {$DNS -join ', '} else {$DNS}) DNS records" diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index aecb7478..29194f56 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -40,9 +40,8 @@ catch [System.Net.WebException] Write-Warning -Message "https://api.github.com is unreachable. Please check Internet connection or change your DNS records." Write-Information -MessageData "" -InformationAction Continue - $DNS = (Get-NetRoute -AddressFamily IPv4 | Where-Object -FilterScript {$_.Protocol -eq "NetMgmt"} | Get-NetAdapter | Where-Object -FilterScript { - ($_.Status -eq "Up") -and (-not $_.Virtual) - } | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses + $InterfaceIndex = (Find-NetRoute -RemoteIPAddress "1.1.1.1" | Select-Object -First 1).InterfaceIndex + $DNS = (Get-NetAdapter -InterfaceIndex $InterfaceIndex | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses Write-Warning -Message "You're using $(if ($DNS.Count -gt 1) {$DNS -join ', '} else {$DNS}) DNS records" @@ -67,9 +66,8 @@ catch [System.Net.WebException] Write-Warning -Message "https://raw.githubusercontent.com is unreachable. Please check Internet connection or change your DNS records." Write-Information -MessageData "" -InformationAction Continue - $DNS = (Get-NetRoute -AddressFamily IPv4 | Where-Object -FilterScript {$_.Protocol -eq "NetMgmt"} | Get-NetAdapter | Where-Object -FilterScript { - ($_.Status -eq "Up") -and (-not $_.Virtual) - } | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses + $InterfaceIndex = (Find-NetRoute -RemoteIPAddress "1.1.1.1" | Select-Object -First 1).InterfaceIndex + $DNS = (Get-NetAdapter -InterfaceIndex $InterfaceIndex | Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses Write-Warning -Message "You're using $(if ($DNS.Count -gt 1) {$DNS -join ', '} else {$DNS}) DNS records" diff --git a/Windows_Builds.json b/Windows_Builds.json index a2e09dc4..8a2d2eca 100644 --- a/Windows_Builds.json +++ b/Windows_Builds.json @@ -1,7 +1,7 @@ { "Windows_10_URL": "https://learn.microsoft.com/en-us/windows/release-health/release-information", "Windows_11_URL": "https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information", - "Windows_10_Minor": "7663", + "Windows_10_Minor": "6456", "Windows_10_LTSC_2019_Minor": "9121", "Windows_10_LTSC_2021_Minor": "7663", "Windows_11_LTSC_2024_Minor": "9168", diff --git a/supported_windows_builds.json b/supported_windows_builds.json index c085f03d..6cc39e34 100644 --- a/supported_windows_builds.json +++ b/supported_windows_builds.json @@ -1,7 +1,7 @@ { "Windows_10_URL": "https://learn.microsoft.com/en-us/windows/release-health/release-information", "Windows_11_URL": "https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information", - "Windows_10": "7663", + "Windows_10": "6456", "Windows_10_LTSC_2019": "9121", "Windows_10_LTSC_2021": "7663", "Windows_11_LTSC_2024": "9168",