Browse Source

Fixed typos

pull/703/head
Dmitry Nefedov 2 months ago
parent
commit
e45d8de241
  1. 8
      src/Sophia_Script_for_Windows_10/Module/Private/InitialActions.ps1
  2. 2
      src/Sophia_Script_for_Windows_10/Module/Private/PostActions.ps1
  3. 16
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Private/InitialActions.ps1
  4. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Private/PostActions.ps1
  5. 16
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Private/InitialActions.ps1
  6. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Private/PostActions.ps1
  7. 8
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Private/InitialActions.ps1
  8. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Private/PostActions.ps1
  9. 8
      src/Sophia_Script_for_Windows_11/Module/Private/InitialActions.ps1
  10. 2
      src/Sophia_Script_for_Windows_11/Module/Private/PostActions.ps1
  11. 8
      src/Sophia_Script_for_Windows_11_ARM/Module/Private/InitialActions.ps1
  12. 2
      src/Sophia_Script_for_Windows_11_ARM/Module/Private/PostActions.ps1
  13. 8
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Private/InitialActions.ps1
  14. 2
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Private/PostActions.ps1
  15. 8
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Private/InitialActions.ps1
  16. 2
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Private/PostActions.ps1
  17. 8
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Private/InitialActions.ps1
  18. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Private/PostActions.ps1

8
src/Sophia_Script_for_Windows_10/Module/Private/InitialActions.ps1

@ -574,7 +574,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
@ -608,7 +613,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_10/Module/Private/PostActions.ps1

@ -124,7 +124,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

16
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Private/InitialActions.ps1

@ -524,7 +524,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://www.microsoft.com/software-download/" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -540,7 +540,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -565,7 +565,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -574,13 +574,18 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -608,7 +613,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Private/PostActions.ps1

@ -114,7 +114,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

16
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Private/InitialActions.ps1

@ -524,7 +524,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -540,7 +540,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -565,7 +565,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -574,13 +574,18 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -607,7 +612,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Private/PostActions.ps1

@ -124,7 +124,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

8
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Private/InitialActions.ps1

@ -612,7 +612,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
@ -646,7 +651,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows10" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Private/PostActions.ps1

@ -124,7 +124,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

8
src/Sophia_Script_for_Windows_11/Module/Private/InitialActions.ps1

@ -577,7 +577,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
@ -611,7 +616,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_11/Module/Private/PostActions.ps1

@ -114,7 +114,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

8
src/Sophia_Script_for_Windows_11_ARM/Module/Private/InitialActions.ps1

@ -577,7 +577,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
@ -611,7 +616,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_11_ARM/Module/Private/PostActions.ps1

@ -114,7 +114,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

8
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Private/InitialActions.ps1

@ -615,7 +615,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
@ -649,7 +654,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Private/PostActions.ps1

@ -114,7 +114,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

8
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Private/InitialActions.ps1

@ -577,7 +577,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
@ -611,7 +616,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Private/PostActions.ps1

@ -114,7 +114,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

8
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Private/InitialActions.ps1

@ -615,7 +615,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
exit
}
if ((Get-Service -Name SecurityHealthService).Status -ne "running")
# Check SecurityHealthService service
try
{
Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service
}
catch
{
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender")
@ -649,7 +654,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Start-Process -FilePath "windowsdefender://RansomwareProtection"
Write-Verbose -Message "https://www.microsoft.com/software-download/windows11" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

2
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Private/PostActions.ps1

@ -114,7 +114,7 @@ public static void PostMessage()
$Global:ScheduledTasks = $false
}
Write-Error -Message "ms-settings:startupapps"
Write-Error -Message "ms-settings:startupapps" -ErrorAction SilentlyContinue
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
if (Test-Path -Path "$env:TEMP\LGPO.txt")

Loading…
Cancel
Save