Browse Source

changed URL for the internet connection check

master
Dmitry Nefedov 1 year ago
parent
commit
5108c5f13a
  1. 26
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  2. 20
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  3. 20
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  4. 26
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  5. 26
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  6. 26
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

26
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -100,7 +100,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -402,7 +402,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -710,7 +710,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4384,7 +4384,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4504,7 +4504,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -5002,7 +5002,7 @@ public static bool MarkFileDelete (string sourcefile)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -6551,7 +6551,7 @@ function WindowsCapabilities
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -6915,7 +6915,7 @@ function IPv6Component
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -9956,7 +9956,7 @@ function InstallVCRedist
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -10036,7 +10036,7 @@ function InstallDotNetRuntimes
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -11766,7 +11766,7 @@ function HEVC
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -14772,7 +14772,7 @@ function BitmapImageNewContext
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -14863,7 +14863,7 @@ function RichTextDocumentNewContext
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true

20
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -299,7 +299,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -573,7 +573,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -3336,7 +3336,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -3456,7 +3456,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -5191,7 +5191,7 @@ function WindowsCapabilities
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -5555,7 +5555,7 @@ function IPv6Component
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -8255,7 +8255,7 @@ function InstallVCRedist
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -8335,7 +8335,7 @@ function InstallDotNetRuntimes
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -11205,7 +11205,7 @@ function BitmapImageNewContext
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -11296,7 +11296,7 @@ function RichTextDocumentNewContext
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true

20
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -299,7 +299,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -573,7 +573,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -3706,7 +3706,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -3826,7 +3826,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -5577,7 +5577,7 @@ function WindowsCapabilities
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -5941,7 +5941,7 @@ function IPv6Component
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -8879,7 +8879,7 @@ function InstallVCRedist
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -8959,7 +8959,7 @@ function InstallDotNetRuntimes
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -12374,7 +12374,7 @@ function BitmapImageNewContext
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -12465,7 +12465,7 @@ function RichTextDocumentNewContext
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true

26
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -96,7 +96,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -403,7 +403,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -711,7 +711,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4388,7 +4388,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4508,7 +4508,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -5006,7 +5006,7 @@ public static bool MarkFileDelete (string sourcefile)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -6555,7 +6555,7 @@ function WindowsCapabilities
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
SslProtocol = "Tls12"
DisableKeepAlive = $true
@ -6920,7 +6920,7 @@ function IPv6Component
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -9961,7 +9961,7 @@ function InstallVCRedist
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -10041,7 +10041,7 @@ function InstallDotNetRuntimes
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -11791,7 +11791,7 @@ function HEVC
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -14797,7 +14797,7 @@ function BitmapImageNewContext
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
SslProtocol = "Tls12"
DisableKeepAlive = $true
@ -14889,7 +14889,7 @@ function RichTextDocumentNewContext
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
SslProtocol = "Tls12"
DisableKeepAlive = $true

26
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -99,7 +99,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -202,7 +202,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -488,7 +488,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -762,7 +762,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4095,7 +4095,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4215,7 +4215,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4713,7 +4713,7 @@ public static bool MarkFileDelete (string sourcefile)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -6259,7 +6259,7 @@ function WindowsCapabilities
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -6827,7 +6827,7 @@ function IPv6Component
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -9744,7 +9744,7 @@ function InstallVCRedist
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -9824,7 +9824,7 @@ function InstallDotNetRuntimes
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -10048,7 +10048,7 @@ function Install-WSA
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -11443,7 +11443,7 @@ function HEVC
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true

26
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -95,7 +95,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -198,7 +198,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -489,7 +489,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -763,7 +763,7 @@ public static string GetString(uint strId)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4096,7 +4096,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4216,7 +4216,7 @@ function Cursors
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -4714,7 +4714,7 @@ public static bool MarkFileDelete (string sourcefile)
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -6260,7 +6260,7 @@ function WindowsCapabilities
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
SslProtocol = "Tls13"
DisableKeepAlive = $true
@ -6829,7 +6829,7 @@ function IPv6Component
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -9746,7 +9746,7 @@ function InstallVCRedist
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -9826,7 +9826,7 @@ function InstallDotNetRuntimes
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -10050,7 +10050,7 @@ function Install-WSA
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@ -11465,7 +11465,7 @@ function HEVC
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Uri = "https://www.cloudflare.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true

Loading…
Cancel
Save