Browse Source

minor changes

pull/450/head
Dmitry Nefedov 2 years ago
parent
commit
05401599c4
  1. 6
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  2. 4
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  3. 4
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  4. 4
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  5. 4
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  6. 4
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

6
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -282,7 +282,7 @@ function Checks
} }
catch [Microsoft.PowerShell.Commands.ServiceCommandException] catch [Microsoft.PowerShell.Commands.ServiceCommandException]
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }
@ -295,7 +295,7 @@ function Checks
# Check Microsoft Defender state # Check Microsoft Defender state
if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore)) if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore))
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }
@ -356,7 +356,7 @@ function Checks
} }
catch [System.Management.Automation.PropertyNotFoundException] catch [System.Management.Automation.PropertyNotFoundException]
{ {
$Localization.UpdateDefender $Localization.UpdateDefender ###
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"

4
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -272,7 +272,7 @@ function Checks
} }
catch [Microsoft.PowerShell.Commands.ServiceCommandException] catch [Microsoft.PowerShell.Commands.ServiceCommandException]
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }
@ -280,7 +280,7 @@ function Checks
if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore)) if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore))
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }

4
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -272,7 +272,7 @@ function Checks
} }
catch [Microsoft.PowerShell.Commands.ServiceCommandException] catch [Microsoft.PowerShell.Commands.ServiceCommandException]
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }
@ -280,7 +280,7 @@ function Checks
if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore)) if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore))
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -282,7 +282,7 @@ function Checks
} }
catch [Microsoft.PowerShell.Commands.ServiceCommandException] catch [Microsoft.PowerShell.Commands.ServiceCommandException]
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }
@ -295,7 +295,7 @@ function Checks
# Check Microsoft Defender state # Check Microsoft Defender state
if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore)) if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore))
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }

4
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -298,7 +298,7 @@ function Checks
# Check Microsoft Defender state # Check Microsoft Defender state
if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore)) if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore))
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }
@ -310,7 +310,7 @@ function Checks
} }
catch [Microsoft.PowerShell.Commands.ServiceCommandException] catch [Microsoft.PowerShell.Commands.ServiceCommandException]
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -298,7 +298,7 @@ function Checks
# Check Microsoft Defender state # Check Microsoft Defender state
if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore)) if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore))
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }
@ -310,7 +310,7 @@ function Checks
} }
catch [Microsoft.PowerShell.Commands.ServiceCommandException] catch [Microsoft.PowerShell.Commands.ServiceCommandException]
{ {
$Localization.WindowsBroken Write-Warning -Message $Localization.WindowsBroken
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
exit exit
} }

Loading…
Cancel
Save