From 05401599c4f9a9a3a7ffb0bbb40d76ff0359efc0 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Wed, 8 Feb 2023 19:38:47 +0300 Subject: [PATCH] minor changes --- src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 | 6 +++--- .../Module/Sophia.psm1 | 4 ++-- .../Module/Sophia.psm1 | 4 ++-- .../Module/Sophia.psm1 | 4 ++-- src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 | 4 ++-- .../Module/Sophia.psm1 | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 7842c9d0..0821d6f0 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -282,7 +282,7 @@ function Checks } catch [Microsoft.PowerShell.Commands.ServiceCommandException] { - $Localization.WindowsBroken + Write-Warning -Message $Localization.WindowsBroken Start-Process -FilePath "https://t.me/sophia_chat" exit } @@ -295,7 +295,7 @@ function Checks # Check Microsoft Defender state 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" exit } @@ -356,7 +356,7 @@ function Checks } catch [System.Management.Automation.PropertyNotFoundException] { - $Localization.UpdateDefender + $Localization.UpdateDefender ### Start-Process -FilePath "https://t.me/sophia_chat" diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index c6a759df..7c775d54 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -272,7 +272,7 @@ function Checks } catch [Microsoft.PowerShell.Commands.ServiceCommandException] { - $Localization.WindowsBroken + Write-Warning -Message $Localization.WindowsBroken Start-Process -FilePath "https://t.me/sophia_chat" exit } @@ -280,7 +280,7 @@ function Checks 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" exit } diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index fad52536..bedd8aae 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -272,7 +272,7 @@ function Checks } catch [Microsoft.PowerShell.Commands.ServiceCommandException] { - $Localization.WindowsBroken + Write-Warning -Message $Localization.WindowsBroken Start-Process -FilePath "https://t.me/sophia_chat" exit } @@ -280,7 +280,7 @@ function Checks 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" exit } diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index 890f0f6c..03006a50 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -282,7 +282,7 @@ function Checks } catch [Microsoft.PowerShell.Commands.ServiceCommandException] { - $Localization.WindowsBroken + Write-Warning -Message $Localization.WindowsBroken Start-Process -FilePath "https://t.me/sophia_chat" exit } @@ -295,7 +295,7 @@ function Checks # Check Microsoft Defender state 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" exit } diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 0f725d06..98137ad1 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -298,7 +298,7 @@ function Checks # Check Microsoft Defender state 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" exit } @@ -310,7 +310,7 @@ function Checks } catch [Microsoft.PowerShell.Commands.ServiceCommandException] { - $Localization.WindowsBroken + Write-Warning -Message $Localization.WindowsBroken Start-Process -FilePath "https://t.me/sophia_chat" exit } diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index be1a185a..689c91ee 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -298,7 +298,7 @@ function Checks # Check Microsoft Defender state 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" exit } @@ -310,7 +310,7 @@ function Checks } catch [Microsoft.PowerShell.Commands.ServiceCommandException] { - $Localization.WindowsBroken + Write-Warning -Message $Localization.WindowsBroken Start-Process -FilePath "https://t.me/sophia_chat" exit }