diff --git a/CI/WindowOSBuild.Tests.ps1 b/CI/WindowOSBuild.Tests.ps1 index 761f8b9..cd8ed2e 100644 --- a/CI/WindowOSBuild.Tests.ps1 +++ b/CI/WindowOSBuild.Tests.ps1 @@ -8,7 +8,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (1507)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1507 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -25,7 +25,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (1511)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1511 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -42,7 +42,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 / Server 2016 (1607)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1607 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -59,7 +59,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (1703)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1703 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -76,7 +76,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (1709)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1709 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -93,7 +93,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (1803)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1803 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -110,7 +110,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 / Server 2019 (1809)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1809 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -127,7 +127,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (1903)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1903 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -143,7 +143,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (1909)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1909 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -159,7 +159,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (2004)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 2004 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -175,7 +175,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (20H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 20H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -191,7 +191,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (21H1)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 21H1 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -207,7 +207,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (21H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 21H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -224,7 +224,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 10 (22H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 22H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -240,7 +240,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 11 (21H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win11 -OSVersion 21H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -256,7 +256,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 11 (22H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win11 -OSVersion 22H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -272,7 +272,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Win 11 (23H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win11 -OSVersion 23H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -288,7 +288,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Server 2022 (21H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Server2022 -OSVersion 21H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -303,9 +303,9 @@ If ($PSVersionTable.PSVersion.Major -le 6) { } Context "Server 2022 Hotpatch (21H2)" { It "Results" { - $Results = Get-LatestOSBuild -OSName Server2022Hotpatch -OSVersion 21H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 - $Results.Build.Count | Should -BeGreaterThan 1 + $Results = Get-LatestOSBuild -OSName Server2022Hotpatch -OSVersion 21H2 -latestreleases 1 + Start-Sleep -Seconds 10 + $Results.Build.Count | Should -BeGreaterThan 0 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty $Results.'Availability date' | Should -Not -BeNullOrEmpty @@ -321,7 +321,7 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Server SAC (1709)" { It "Results" { $Results = Get-LatestOSBuild -OSName ServerSAC -OSVersion 1709 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -339,14 +339,14 @@ If ($PSVersionTable.PSVersion.Major -le 6) { Context "Build only" { It "Results" { $Results = Get-CurrentOSBuild - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Count | Should -Be 1 } } Context "Detailed" { It "Results" { $Results = Get-CurrentOSBuild -Detailed - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -Be 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -426,7 +426,7 @@ Else { Context "Win 10 (1507)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1507 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -443,7 +443,7 @@ Else { Context "Win 10 (1511)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1511 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -460,7 +460,7 @@ Else { Context "Win 10 / Server 2016 (1607)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1607 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -477,7 +477,7 @@ Else { Context "Win 10 (1703)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1703 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -494,7 +494,7 @@ Else { Context "Win 10 (1709)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1709 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -511,7 +511,7 @@ Else { Context "Win 10 (1803)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1803 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -528,7 +528,7 @@ Else { Context "Win 10 / Server 2019 (1809)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1809 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -545,7 +545,7 @@ Else { Context "Win 10 (1903)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1903 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -561,7 +561,7 @@ Else { Context "Win 10 (1909)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 1909 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -577,7 +577,7 @@ Else { Context "Win 10 (2004)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 2004 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -593,7 +593,7 @@ Else { Context "Win 10 (20H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 20H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -609,7 +609,7 @@ Else { Context "Win 10 (21H1)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 21H1 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -625,7 +625,7 @@ Else { Context "Win 10 (21H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 21H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -642,7 +642,7 @@ Else { Context "Win 10 (22H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win10 -OSVersion 22H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -658,7 +658,7 @@ Else { Context "Win 11 (21H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win11 -OSVersion 21H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -674,7 +674,7 @@ Else { Context "Win 11 (22H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win11 -OSVersion 22H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -690,7 +690,7 @@ Else { Context "Win 11 (23H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Win11 -OSVersion 23H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -706,7 +706,7 @@ Else { Context "Server 2022 (21H2)" { It "Results" { $Results = Get-LatestOSBuild -OSName Server2022 -OSVersion 21H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -721,9 +721,9 @@ Else { } Context "Server 2022 Hotpatch (21H2)" { It "Results" { - $Results = Get-LatestOSBuild -OSName Server2022Hotpatch -OSVersion 21H2 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 - $Results.Build.Count | Should -BeGreaterThan 1 + $Results = Get-LatestOSBuild -OSName Server2022Hotpatch -OSVersion 21H2 -latestreleases 1 + Start-Sleep -Seconds 10 + $Results.Build.Count | Should -BeGreaterThan 0 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty $Results.'Availability date' | Should -Not -BeNullOrEmpty @@ -739,7 +739,7 @@ Else { Context "Server SAC (1709)" { It "Results" { $Results = Get-LatestOSBuild -OSName ServerSAC -OSVersion 1709 -latestreleases 1000 - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -BeGreaterThan 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -758,14 +758,14 @@ Else { Context "Build only" { It "Results" { $Results = Get-CurrentOSBuild - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Count | Should -Be 1 } } Context "Detailed" { It "Results" { $Results = Get-CurrentOSBuild -Detailed - Start-Sleep -Milliseconds 5000 + Start-Sleep -Seconds 10 $Results.Build.Count | Should -Be 1 $Results.Version | Should -Not -BeNullOrEmpty $Results.Build | Should -Not -BeNullOrEmpty @@ -843,8 +843,8 @@ Else { # SIG # Begin signature block # MIImcgYJKoZIhvcNAQcCoIImYzCCJl8CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR -# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUh99lro8ezbQ3O3/VlA1ef0mX -# FmuggiAtMIIFjTCCBHWgAwIBAgIQDpsYjvnQLefv21DiCEAYWjANBgkqhkiG9w0B +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU2cz2oaIcTixVLvssEXGNzPjA +# 22WggiAtMIIFjTCCBHWgAwIBAgIQDpsYjv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0SWStRBVzispqLns+4DQEQKIn1 +# WeIstR0jYbpPrm89CNWov+cDoAnq6o5JM7ux9sXur2CWMNaTnZ8ZEtjAYqB5fIKJ +# oNTm8dXt+qFSMbqOft3xe0Zk5nLTTy+YwcCMTJBfVH6tVSh8bFmxLC4lBZwHabou +# CF/8ZGScNFETzjlolNy2X0qRZays1wDI9HkvCIkfcICbaPEuPD50Tv92nW2xfN4C +# e6OhnbzsecI17JbYlZaUBt1r2+5+wwFl6UIOtPH8wCZ1h+0iS2nvLQvX3vA6oEXN +# D+y84LJBpY/7uBgTAiuv6cYwW7ktn845OJIqqmKSOpUQ5Pbw+WciiB7TlDNTWKmi +# 4Irjhz/4WAB4Mb5Mde4n/U8r1VzxyYBmg1qv90Nme5323J0hGghxG1ERVJitqi8m +# QGyhQmq3IDaxSOQDYF2SbgheSzq/rMTMIrmQofXmgKlDGzpS73b2d008JFUD6l1x +# TCN4kKGO # SIG # End signature block diff --git a/Public/Get-LatestOSBuild.ps1 b/Public/Get-LatestOSBuild.ps1 index faaa4f1..33f2923 100644 --- a/Public/Get-LatestOSBuild.ps1 +++ b/Public/Get-LatestOSBuild.ps1 @@ -163,19 +163,19 @@ Function Get-ChromeUserAgent { # Define the URL to fetch the latest Chrome version - $url = "https://www.whatismybrowser.com/guides/the-latest-user-agent/chrome" + $LatestChromeUserAgentURL = "https://www.whatismybrowser.com/guides/the-latest-user-agent/chrome" # Send a GET request to the URL and parse the HTML - $response = Invoke-WebRequest -Uri $url - $html = $response.Content + $LatestChromeUserAgentResponse = Invoke-WebRequest -Uri $LatestChromeUserAgentURL -UseBasicParsing -ErrorAction SilentlyContinue + $HTMLLatestChromeUserAgent = $LatestChromeUserAgentResponse.Content # Extract the latest Chrome version from the HTML - $pattern = 'Chrome/([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)' - $latestVersion = [regex]::Match($html, $pattern).Groups[1].Value + $RegexPattern = 'Chrome/([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)' + $ChromeUserAgentLatestVersion = [regex]::Match($HTMLLatestChromeUserAgent, $RegexPattern).Groups[1].Value # Construct the user agent string - $userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/$($latestVersion) Safari/537.36" - Return $userAgent + $UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/$($ChromeUserAgentLatestVersion) Safari/537.36" + Return $UserAgent } # Obtain data from webpage @@ -536,8 +536,8 @@ # SIG # Begin signature block # MIImcgYJKoZIhvcNAQcCoIImYzCCJl8CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR -# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUv1+iXazBmjgyTBXEw2DrH0n+ -# OZmggiAtMIIFjTCCBHWgAwIBAgIQDpsYjvnQLefv21DiCEAYWjANBgkqhkiG9w0B +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUCg43FFo1CCU15BwZJslO3SiK +# JUWggiAtMIIFjTCCBHWgAwIBAgIQDpsYjvnQLefv21DiCEAYWjANBgkqhkiG9w0B # AQwFADBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD # VQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVk # IElEIFJvb3QgQ0EwHhcNMjIwODAxMDAwMDAwWhcNMzExMTA5MjM1OTU5WjBiMQsw @@ -713,31 +713,31 @@ # QS4xJDAiBgNVBAMTG0NlcnR1bSBDb2RlIFNpZ25pbmcgMjAyMSBDQQIQeAuTgzem # d0ILREkKU+Yq2jAJBgUrDgMCGgUAoHgwGAYKKwYBBAGCNwIBDDEKMAigAoAAoQKA # ADAZBgkqhkiG9w0BCQMxDAYKKwY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1n7Rzgaz4T8NHLKPakMsbGAqt4ZHlIDqFgLFfbh527SKTL+uUJmKgo+3MNfwxEXz +# dKXbLuWS # SIG # End signature block diff --git a/WindowsOSBuild.psd1 b/WindowsOSBuild.psd1 index dfce55f..bede037 100644 Binary files a/WindowsOSBuild.psd1 and b/WindowsOSBuild.psd1 differ diff --git a/appveyor.yml b/appveyor.yml index 4d30bbb..8aee82b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,6 +3,9 @@ skip_commits: - "**/*.md" - "**/*.png" - "**/*LICENCE" + - "**/appveyor.yml" + - "CI/WindowOSBuild.Tests.ps1" + - "**/WindowsOSBuild.psd1" install: - ps: |