Browse Source

Fixed missing WebRequest

pull/305/head
Dmitry Nefedov 3 years ago
parent
commit
d8ff066ece
  1. 2
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1
  2. 2
      Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1
  3. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1
  4. 2
      Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1
  5. 2
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1
  6. 2
      Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1

2
Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1

@ -4004,7 +4004,7 @@ function WindowsCapabilities
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-RestMethod @Parameters).StatusDescription)
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}

2
Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1

@ -4359,7 +4359,7 @@ function WindowsCapabilities
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-RestMethod @Parameters).StatusDescription)
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1

@ -5203,7 +5203,7 @@ function WindowsCapabilities
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-RestMethod @Parameters).StatusDescription)
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}

2
Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1

@ -5172,7 +5172,7 @@ function WindowsCapabilities
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-RestMethod @Parameters).StatusDescription)
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}

2
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1

@ -4931,7 +4931,7 @@ function WindowsCapabilities
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-RestMethod @Parameters).StatusDescription)
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}

2
Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1

@ -4900,7 +4900,7 @@ function WindowsCapabilities
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-RestMethod @Parameters).StatusDescription)
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}

Loading…
Cancel
Save