Browse Source

Fixed typos

pull/385/head
Dmitry Nefedov 2 years ago
parent
commit
8357a28805
  1. 12
      CHANGELOG.md
  2. 4
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Functions.ps1
  3. 10
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1
  4. 6
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Sophia.ps1
  5. 4
      Sophia Script/Sophia Script for Windows 10 LTSC 2021/Functions.ps1
  6. 10
      Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1
  7. 6
      Sophia Script/Sophia Script for Windows 10 LTSC 2021/Sophia.ps1
  8. 4
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Functions.ps1
  9. 10
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1
  10. 6
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Sophia.ps1
  11. 4
      Sophia Script/Sophia Script for Windows 10/Functions.ps1
  12. 12
      Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1
  13. 6
      Sophia Script/Sophia Script for Windows 10/Sophia.ps1
  14. 4
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1
  15. 10
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1
  16. 6
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1
  17. 4
      Sophia Script/Sophia Script for Windows 11/Functions.ps1
  18. 14
      Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1
  19. 6
      Sophia Script/Sophia Script for Windows 11/Sophia.ps1
  20. 2
      Wrapper/Config/config_Windows_10.json
  21. 2
      Wrapper/Config/config_Windows_10_LTSC.json
  22. 2
      Wrapper/Config/config_Windows_11.json
  23. 2
      Wrapper/Localizations/de-DE/tag.json
  24. 2
      Wrapper/Localizations/de-DE/tooltip_Windows_10.json
  25. 2
      Wrapper/Localizations/de-DE/tooltip_Windows_11.json
  26. 6
      Wrapper/Localizations/en-US/tooltip_Windows_10.json
  27. 6
      Wrapper/Localizations/en-US/tooltip_Windows_11.json
  28. 2
      Wrapper/Localizations/es-ES/tag.json
  29. 2
      Wrapper/Localizations/es-ES/tooltip_Windows_10.json
  30. 2
      Wrapper/Localizations/es-ES/tooltip_Windows_11.json
  31. 2
      Wrapper/Localizations/pt-BR/tag.json
  32. 2
      Wrapper/Localizations/pt-BR/tooltip_Windows_10.json
  33. 2
      Wrapper/Localizations/pt-BR/tooltip_Windows_11.json
  34. 2
      Wrapper/Localizations/ru-RU/tag.json
  35. 2
      Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
  36. 2
      Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
  37. BIN
      Wrapper/SophiaScriptWrapper.exe

12
CHANGELOG.md

@ -13,7 +13,7 @@ Diff from v6.1.3
[6.1.3...6.1.4](https://github.com/farag2/Sophia-Script-for-Windows/compare/6.1.3...6.1.4) [6.1.3...6.1.4](https://github.com/farag2/Sophia-Script-for-Windows/compare/6.1.3...6.1.4)
* We opened our official [Discord](https://discord.gg/sSryhaEv79) channel! Feel free to chat and talk! [![Discord](https://discordapp.com/api/guilds/1006179075263561779/widget.png?style=shield)](https://discord.gg/sSryhaEv79) * We opened our official [Discord](https://discord.gg/sSryhaEv79) channel! Feel free to chat and talk! [![Discord](https://discordapp.com/api/guilds/1006179075263561779/widget.png?style=shield)](https://discord.gg/sSryhaEv79)
* Improved Defender checkings; * Improved Defender checks;
* Now they're skipped for `Windows 10 Enteprise G`; * Now they're skipped for `Windows 10 Enteprise G`;
* Closes #379. * Closes #379.
* Now all all `.ps1, .psm1, .psd1` files are signed in cloud via GitHub Actions by a self-issued certificates; * Now all all `.ps1, .psm1, .psd1` files are signed in cloud via GitHub Actions by a self-issued certificates;
@ -72,7 +72,7 @@ Diff from v6.1.3
## Anniversary build of Sophia Script!💯⭐ ## Anniversary build of Sophia Script!💯⭐
* Improved startup checkings, especially regarding Microsoft Defender whether it wasn't removed or destroyed by malicious tweakers; * Improved startup checks, especially regarding Microsoft Defender whether it wasn't removed or destroyed by malicious tweakers;
* Added `RKNBypass` function to enable proxying only blocked sites from the unified registry of Roskomnadzor; * Added `RKNBypass` function to enable proxying only blocked sites from the unified registry of Roskomnadzor;
* The function will be applied only if the region in Windows is set to "Russia"; * The function will be applied only if the region in Windows is set to "Russia";
* Based on <https://antizapret.prostovpn.org> proxy. * Based on <https://antizapret.prostovpn.org> proxy.
@ -126,7 +126,7 @@ Diff from v6.1.3
* Closes #347. * Closes #347.
* Fixed bug in `NetworkAdaptersSavePower` function that caused an error that there is no internet connection even if it was so; * Fixed bug in `NetworkAdaptersSavePower` function that caused an error that there is no internet connection even if it was so;
* Formaly added Windows 10 22H2 support; * Formaly added Windows 10 22H2 support;
* Updated startup checkings; * Updated startup checks;
* Fixed `DiagnosticDataLevel` function; * Fixed `DiagnosticDataLevel` function;
* Now it uses `gpedit.msc` path: `HKLM:\Software\Policies\Microsoft\Windows\DataCollection` instead of `HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection`; * Now it uses `gpedit.msc` path: `HKLM:\Software\Policies\Microsoft\Windows\DataCollection` instead of `HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection`;
* To updated registry keys run `DiagnosticDataLevel -Minimal`. * To updated registry keys run `DiagnosticDataLevel -Minimal`.
@ -578,7 +578,7 @@ Diff from v5.10.8
[5.10.8...5.11](https://github.com/farag2/Windows-10-Sophia-Script/compare/5.10.8...5.11) [5.10.8...5.11](https://github.com/farag2/Windows-10-Sophia-Script/compare/5.10.8...5.11)
* Updated descriptions; * Updated descriptions;
* Expanded the `Checkings` funtion functionality; * Expanded the `Checks` funtion functionality;
* Updated the `OneDrive` function; * Updated the `OneDrive` function;
* Functions removed as not wanted * Functions removed as not wanted
* `ShareAcrossDevices` * `ShareAcrossDevices`
@ -698,7 +698,7 @@ Diff from v5.10.3
* Почитайте [лонгрид](https://habr.com/company/skillfactory/blog/553800) на Хабре, как происходила разработка скрипта последние полгода. * Почитайте [лонгрид](https://habr.com/company/skillfactory/blog/553800) на Хабре, как происходила разработка скрипта последние полгода.
* Added a warning message before the script running to be sure a user has customized the `Sophia.ps1` preset file; * Added a warning message before the script running to be sure a user has customized the `Sophia.ps1` preset file;
* You may disable it by removing the `Warning` argument in the `Checkings` function in the preset file. * You may disable it by removing the `Warning` argument in the `Checks` function in the preset file.
![image](https://i.imgur.com/d3QUmIP.png) ![image](https://i.imgur.com/d3QUmIP.png)
* Moved all localization files to the `Localizations` folder; * Moved all localization files to the `Localizations` folder;
![image](https://i.imgur.com/kQDktvj.png) ![image](https://i.imgur.com/kQDktvj.png)
@ -994,7 +994,7 @@ Diff from v5.3.3
* Now all archives are being created and uploaded to the release page via [GitHub Actions](https://github.com/farag2/Windows-10-Sophia-Script/blob/master/.github/workflows/Sophia.yml); * Now all archives are being created and uploaded to the release page via [GitHub Actions](https://github.com/farag2/Windows-10-Sophia-Script/blob/master/.github/workflows/Sophia.yml);
* Thnx to @inv2004 * Thnx to @inv2004
* When running the script using ```.\Sophia.ps1 -Functions "FunctionName1 -Parameter"``` regardless of the functions entered as an argument, the ```Checkings``` function will be executed first, and the ```Refresh``` and ```Errors``` functions will be executed at the end; * When running the script using ```.\Sophia.ps1 -Functions "FunctionName1 -Parameter"``` regardless of the functions entered as an argument, the `Checks` function will be executed first, and the ```Refresh``` and ```Errors``` functions will be executed at the end;
* Updated the ```CreateRestorePoint``` function * Updated the ```CreateRestorePoint``` function
* Closed #124 * Closed #124
* Updated the ```EnableWSL2``` function * Updated the ```EnableWSL2``` function

4
Sophia Script/Sophia Script for Windows 10 LTSC 2019/Functions.ps1

@ -66,8 +66,8 @@ Import-Module -Name $PSScriptRoot\bin\PolicyFileEditor\PolicyFileEditor.psd1 -Pa
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
# The mandatory checkings. Please, do not comment out this function # The mandatory checks. Please, do not comment out this function
Checkings Checks
$Parameters = @{ $Parameters = @{
CommandName = "Sophia" CommandName = "Sophia"

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

@ -42,8 +42,8 @@
https://github.com/Inestic https://github.com/Inestic
#> #>
#region Checkings #region Checks
function Checkings function Checks
{ {
param param
( (
@ -272,7 +272,7 @@ function Checkings
# Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3" # Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3"
Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File
#region Defender Checkings #region Defender checks
# Checking whether WMI is corrupted # Checking whether WMI is corrupted
try try
{ {
@ -420,7 +420,7 @@ function Checkings
} }
} }
} }
#endregion Defender Checkings #endregion Defender checks
# Display a warning message about whether a user has customized the preset file # Display a warning message about whether a user has customized the preset file
if ($Warning) if ($Warning)
@ -457,7 +457,7 @@ function Checkings
# Save all opened folders in order to restore them after File Explorer restart # Save all opened folders in order to restore them after File Explorer restart
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
} }
#endregion Checkings #endregion Checks
#region Protection #region Protection
# Enable script logging. The log will be being recorded into the script root folder # Enable script logging. The log will be being recorded into the script root folder

6
Sophia Script/Sophia Script for Windows 10 LTSC 2019/Sophia.ps1

@ -98,7 +98,7 @@ Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScri
#> #>
if ($Functions) if ($Functions)
{ {
Invoke-Command -ScriptBlock {Checkings} Invoke-Command -ScriptBlock {Checks}
foreach ($Function in $Functions) foreach ($Function in $Functions)
{ {
@ -113,13 +113,13 @@ if ($Functions)
#region Protection #region Protection
<# <#
The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
Please, do not comment out this function Please, do not comment out this function
Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
Пожалуйста, не комментируйте данную функцию Пожалуйста, не комментируйте данную функцию
#> #>
Checkings -Warning Checks -Warning
<# <#
Enable script logging. Log will be recorded into the script folder Enable script logging. Log will be recorded into the script folder

4
Sophia Script/Sophia Script for Windows 10 LTSC 2021/Functions.ps1

@ -66,8 +66,8 @@ Import-Module -Name $PSScriptRoot\bin\PolicyFileEditor\PolicyFileEditor.psd1 -Pa
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
# The mandatory checkings. Please, do not comment out this function # The mandatory checks. Please, do not comment out this function
Checkings Checks
$Parameters = @{ $Parameters = @{
CommandName = "Sophia" CommandName = "Sophia"

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

@ -42,8 +42,8 @@
https://github.com/Inestic https://github.com/Inestic
#> #>
#region Checkings #region Checks
function Checkings function Checks
{ {
param param
( (
@ -272,7 +272,7 @@ function Checkings
# Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3" # Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3"
Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File
#region Defender Checkings #region Defender checks
# Checking whether WMI is corrupted # Checking whether WMI is corrupted
try try
{ {
@ -420,7 +420,7 @@ function Checkings
} }
} }
} }
#endregion Defender Checkings #endregion Defender checks
# Display a warning message about whether a user has customized the preset file # Display a warning message about whether a user has customized the preset file
if ($Warning) if ($Warning)
@ -457,7 +457,7 @@ function Checkings
# Save all opened folders in order to restore them after File Explorer restart # Save all opened folders in order to restore them after File Explorer restart
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
} }
#endregion Checkings #endregion Checks
#region Protection #region Protection
# Enable script logging. The log will be being recorded into the script root folder # Enable script logging. The log will be being recorded into the script root folder

6
Sophia Script/Sophia Script for Windows 10 LTSC 2021/Sophia.ps1

@ -98,7 +98,7 @@ Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScri
#> #>
if ($Functions) if ($Functions)
{ {
Invoke-Command -ScriptBlock {Checkings} Invoke-Command -ScriptBlock {Checks}
foreach ($Function in $Functions) foreach ($Function in $Functions)
{ {
@ -113,13 +113,13 @@ if ($Functions)
#region Protection #region Protection
<# <#
The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
Please, do not comment out this function Please, do not comment out this function
Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
Пожалуйста, не комментируйте данную функцию Пожалуйста, не комментируйте данную функцию
#> #>
Checkings -Warning Checks -Warning
<# <#
Enable script logging. Log will be recorded into the script folder Enable script logging. Log will be recorded into the script folder

4
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Functions.ps1

@ -66,8 +66,8 @@ Import-Module -Name $PSScriptRoot\bin\PolicyFileEditor\PolicyFileEditor.psd1 -Pa
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
# The mandatory checkings. Please, do not comment out this function # The mandatory checks. Please, do not comment out this function
Checkings Checks
$Parameters = @{ $Parameters = @{
CommandName = "Sophia" CommandName = "Sophia"

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

@ -42,8 +42,8 @@
https://github.com/Inestic https://github.com/Inestic
#> #>
#region Checkings #region Checks
function Checkings function Checks
{ {
param param
( (
@ -274,7 +274,7 @@ function Checkings
# Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3" # Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3"
Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File
#region Defender Checkings #region Defender checks
# The Enterprise G edition doesn't has a built-in Defender # The Enterprise G edition doesn't has a built-in Defender
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name EditionID) -ne "EnterpriseG") if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name EditionID) -ne "EnterpriseG")
{ {
@ -454,7 +454,7 @@ function Checkings
} }
} }
} }
#endregion Defender Checkings #endregion Defender checks
# Display a warning message about whether a user has customized the preset file # Display a warning message about whether a user has customized the preset file
if ($Warning) if ($Warning)
@ -494,7 +494,7 @@ function Checkings
# Save all opened folders in order to restore them after File Explorer restart # Save all opened folders in order to restore them after File Explorer restart
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
} }
#endregion Checkings #endregion Checks
#region Protection #region Protection
# Enable script logging. The log will be being recorded into the script root folder # Enable script logging. The log will be being recorded into the script root folder

6
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Sophia.ps1

@ -107,7 +107,7 @@ catch
#> #>
if ($Functions) if ($Functions)
{ {
Invoke-Command -ScriptBlock {Checkings} Invoke-Command -ScriptBlock {Checks}
foreach ($Function in $Functions) foreach ($Function in $Functions)
{ {
@ -122,13 +122,13 @@ if ($Functions)
#region Protection #region Protection
<# <#
The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
Please, do not comment out this function Please, do not comment out this function
Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
Пожалуйста, не комментируйте данную функцию Пожалуйста, не комментируйте данную функцию
#> #>
Checkings -Warning Checks -Warning
<# <#
Enable script logging. Log will be recorded into the script folder Enable script logging. Log will be recorded into the script folder

4
Sophia Script/Sophia Script for Windows 10/Functions.ps1

@ -66,8 +66,8 @@ Import-Module -Name $PSScriptRoot\bin\PolicyFileEditor\PolicyFileEditor.psd1 -Pa
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
# The mandatory checkings. Please, do not comment out this function # The mandatory checks. Please, do not comment out this function
Checkings Checks
$Parameters = @{ $Parameters = @{
CommandName = "Sophia" CommandName = "Sophia"

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

@ -42,8 +42,8 @@
https://github.com/Inestic https://github.com/Inestic
#> #>
#region Checkings #region Checks
function Checkings function Checks
{ {
param param
( (
@ -272,7 +272,7 @@ function Checkings
# Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3" # Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3"
Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File
#region Defender Checkings #region Defender checks
# The Enterprise G edition doesn't has a built-in Defender # The Enterprise G edition doesn't has a built-in Defender
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name EditionID) -ne "EnterpriseG") if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name EditionID) -ne "EnterpriseG")
{ {
@ -452,7 +452,7 @@ function Checkings
} }
} }
} }
#endregion Defender Checkings #endregion Defender checks
# Display a warning message about whether a user has customized the preset file # Display a warning message about whether a user has customized the preset file
if ($Warning) if ($Warning)
@ -489,7 +489,7 @@ function Checkings
# Save all opened folders in order to restore them after File Explorer restart # Save all opened folders in order to restore them after File Explorer restart
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
} }
#endregion Checkings #endregion Checks
#region Protection #region Protection
# Enable script logging. The log will be being recorded into the script root folder # Enable script logging. The log will be being recorded into the script root folder
@ -2553,7 +2553,7 @@ function TaskbarSearch
.NOTES .NOTES
Current user Current user
#> #>
function SearchHighlights function SearchHighlights ###
{ {
param param
( (

6
Sophia Script/Sophia Script for Windows 10/Sophia.ps1

@ -98,7 +98,7 @@ Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScri
#> #>
if ($Functions) if ($Functions)
{ {
Invoke-Command -ScriptBlock {Checkings} Invoke-Command -ScriptBlock {Checks}
foreach ($Function in $Functions) foreach ($Function in $Functions)
{ {
@ -113,13 +113,13 @@ if ($Functions)
#region Protection #region Protection
<# <#
The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
Please, do not comment out this function Please, do not comment out this function
Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
Пожалуйста, не комментируйте данную функцию Пожалуйста, не комментируйте данную функцию
#> #>
Checkings -Warning Checks -Warning
<# <#
Enable script logging. Log will be recorded into the script folder Enable script logging. Log will be recorded into the script folder

4
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1

@ -66,8 +66,8 @@ Import-Module -Name $PSScriptRoot\bin\PolicyFileEditor\PolicyFileEditor.psd1 -Pa
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
# The mandatory checkings. Please, do not comment out this function # The mandatory checks. Please, do not comment out this function
Checkings Checks
$Parameters = @{ $Parameters = @{
CommandName = "Sophia" CommandName = "Sophia"

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

@ -41,8 +41,8 @@
https://github.com/Inestic https://github.com/Inestic
#> #>
#region Checkings #region Checks
function Checkings function Checks
{ {
param param
( (
@ -267,7 +267,7 @@ function Checkings
# Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3" # Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3"
Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File
#region Defender Checkings #region Defender checks
# Checking whether WMI is corrupted # Checking whether WMI is corrupted
try try
{ {
@ -415,7 +415,7 @@ function Checkings
} }
} }
} }
#endregion Defender Checkings #endregion Defender checks
# Display a warning message about whether a user has customized the preset file # Display a warning message about whether a user has customized the preset file
if ($Warning) if ($Warning)
@ -455,7 +455,7 @@ function Checkings
# Save all opened folders in order to restore them after File Explorer restart # Save all opened folders in order to restore them after File Explorer restart
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
} }
#endregion Checkings #endregion Checks
#region Protection #region Protection
# Enable script logging. The log will be being recorded into the script root folder # Enable script logging. The log will be being recorded into the script root folder

6
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1

@ -107,7 +107,7 @@ catch
#> #>
if ($Functions) if ($Functions)
{ {
Invoke-Command -ScriptBlock {Checkings} Invoke-Command -ScriptBlock {Checks}
foreach ($Function in $Functions) foreach ($Function in $Functions)
{ {
@ -122,13 +122,13 @@ if ($Functions)
#region Protection #region Protection
<# <#
The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
Please, do not comment out this function Please, do not comment out this function
Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
Пожалуйста, не комментируйте данную функцию Пожалуйста, не комментируйте данную функцию
#> #>
Checkings -Warning Checks -Warning
<# <#
Enable script logging. Log will be recorded into the script folder Enable script logging. Log will be recorded into the script folder

4
Sophia Script/Sophia Script for Windows 11/Functions.ps1

@ -66,8 +66,8 @@ Import-Module -Name $PSScriptRoot\bin\PolicyFileEditor\PolicyFileEditor.psd1 -Pa
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
# The mandatory checkings. Please, do not comment out this function # The mandatory checks. Please, do not comment out this function
Checkings Checks
$Parameters = @{ $Parameters = @{
CommandName = "Sophia" CommandName = "Sophia"

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

@ -16,7 +16,7 @@
.NOTES .NOTES
Supported Windows 11 versions Supported Windows 11 versions
Versions: 21H2/22H2 Versions: 21H2/22H2
Builds: 22000.739+, 22509+ Builds: 22000.739+, 22509+ ### 22621+
Editions: Home/Pro/Enterprise Editions: Home/Pro/Enterprise
.NOTES .NOTES
@ -41,8 +41,8 @@
https://github.com/Inestic https://github.com/Inestic
#> #>
#region Checkings #region Checks
function Checkings function Checks
{ {
param param
( (
@ -265,7 +265,7 @@ function Checkings
# Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3" # Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3"
Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File
#region Defender Checkings #region Defender checks
# Checking whether WMI is corrupted # Checking whether WMI is corrupted
try try
{ {
@ -413,7 +413,7 @@ function Checkings
} }
} }
} }
#endregion Defender Checkings #endregion Defender checks
# Display a warning message about whether a user has customized the preset file # Display a warning message about whether a user has customized the preset file
if ($Warning) if ($Warning)
@ -450,7 +450,7 @@ function Checkings
# Save all opened folders in order to restore them after File Explorer restart # Save all opened folders in order to restore them after File Explorer restart
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
} }
#endregion Checkings #endregion Checks
#region Protection #region Protection
# Enable script logging. The log will be being recorded into the script root folder # Enable script logging. The log will be being recorded into the script root folder
@ -1590,7 +1590,7 @@ function TailoredExperiences
.NOTES .NOTES
Current user Current user
#> #>
function BingSearch function BingSearch ### добавить в LTSC
{ {
param param
( (

6
Sophia Script/Sophia Script for Windows 11/Sophia.ps1

@ -97,7 +97,7 @@ Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScri
#> #>
if ($Functions) if ($Functions)
{ {
Invoke-Command -ScriptBlock {Checkings} Invoke-Command -ScriptBlock {Checks}
foreach ($Function in $Functions) foreach ($Function in $Functions)
{ {
@ -112,13 +112,13 @@ if ($Functions)
#region Protection #region Protection
<# <#
The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
Please, do not comment out this function Please, do not comment out this function
Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
Пожалуйста, не комментируйте данную функцию Пожалуйста, не комментируйте данную функцию
#> #>
Checkings -Warning Checks -Warning
<# <#
Enable script logging. Log will be recorded into the script folder Enable script logging. Log will be recorded into the script folder

2
Wrapper/Config/config_Windows_10.json

@ -4,7 +4,7 @@
"Region": "Protection", "Region": "Protection",
"Control": "cmb", "Control": "cmb",
"Required": "true", "Required": "true",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning" "Tag": "Warning"

2
Wrapper/Config/config_Windows_10_LTSC.json

@ -4,7 +4,7 @@
"Region": "Protection", "Region": "Protection",
"Control": "cmb", "Control": "cmb",
"Required": "true", "Required": "true",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning" "Tag": "Warning"

2
Wrapper/Config/config_Windows_11.json

@ -4,7 +4,7 @@
"Region": "Protection", "Region": "Protection",
"Control": "cmb", "Control": "cmb",
"Required": "true", "Required": "true",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning" "Tag": "Warning"

2
Wrapper/Localizations/de-DE/tag.json

@ -1,6 +1,6 @@
{ {
"Warning": "Warnen", "Warning": "Warnen",
"Checkings": "Überprüfen", "Checks": "Überprüfen",
"Disable": "Deaktivieren", "Disable": "Deaktivieren",
"Enable": "Aktivieren", "Enable": "Aktivieren",
"None": "Nichts", "None": "Nichts",

2
Wrapper/Localizations/de-DE/tooltip_Windows_10.json

@ -2,7 +2,7 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",

2
Wrapper/Localizations/de-DE/tooltip_Windows_11.json

@ -2,7 +2,7 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",

6
Wrapper/Localizations/en-US/tooltip_Windows_10.json

@ -2,15 +2,15 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",
"ToolTip": "The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the \"-Warning\" argument" "ToolTip": "The mandatory Checks. If you want to disable a warning message about whether the preset file was customized, remove the \"-Warning\" argument"
}, },
"One": { "One": {
"Tag": "", "Tag": "",
"ToolTip": "The mandatory checkings. No argument therefore no warning message about whether you've customized the preset file" "ToolTip": "The mandatory Checks. No argument therefore no warning message about whether you've customized the preset file"
} }
} }
}, },

6
Wrapper/Localizations/en-US/tooltip_Windows_11.json

@ -2,15 +2,15 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",
"ToolTip": "The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the \"-Warning\" argument" "ToolTip": "The mandatory Checks. If you want to disable a warning message about whether the preset file was customized, remove the \"-Warning\" argument"
}, },
"One": { "One": {
"Tag": "", "Tag": "",
"ToolTip": "The mandatory checkings. No argument therefore no warning message about whether you've customized the preset file" "ToolTip": "The mandatory Checks. No argument therefore no warning message about whether you've customized the preset file"
} }
} }
}, },

2
Wrapper/Localizations/es-ES/tag.json

@ -1,6 +1,6 @@
{ {
"Warning": "Advertencia", "Warning": "Advertencia",
"Checkings": "Comprobaciones", "Checks": "Comprobaciones",
"Disable": "Desactivar", "Disable": "Desactivar",
"Enable": "Habilitar", "Enable": "Habilitar",
"None": "Ninguno", "None": "Ninguno",

2
Wrapper/Localizations/es-ES/tooltip_Windows_10.json

@ -2,7 +2,7 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",

2
Wrapper/Localizations/es-ES/tooltip_Windows_11.json

@ -2,7 +2,7 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",

2
Wrapper/Localizations/pt-BR/tag.json

@ -1,6 +1,6 @@
{ {
"Warning": "Aviso", "Warning": "Aviso",
"Checkings": "Verificações", "Checks": "Verificações",
"Disable": "Desabilitar", "Disable": "Desabilitar",
"Enable": "Permitir", "Enable": "Permitir",
"None": "Nenhum", "None": "Nenhum",

2
Wrapper/Localizations/pt-BR/tooltip_Windows_10.json

@ -2,7 +2,7 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",

2
Wrapper/Localizations/pt-BR/tooltip_Windows_11.json

@ -2,7 +2,7 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",

2
Wrapper/Localizations/ru-RU/tag.json

@ -1,6 +1,6 @@
{ {
"Warning": "Предупреждение", "Warning": "Предупреждение",
"Checkings": "Проверки", "Checks": "Проверки",
"Disable": "Выключить", "Disable": "Выключить",
"Enable": "Включить", "Enable": "Включить",
"None": "Пропустить", "None": "Пропустить",

2
Wrapper/Localizations/ru-RU/tooltip_Windows_10.json

@ -2,7 +2,7 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",

2
Wrapper/Localizations/ru-RU/tooltip_Windows_11.json

@ -2,7 +2,7 @@
{ {
"Id": 100, "Id": 100,
"Region": "Protection", "Region": "Protection",
"Function": "Checkings", "Function": "Checks",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Warning", "Tag": "Warning",

BIN
Wrapper/SophiaScriptWrapper.exe

Binary file not shown.
Loading…
Cancel
Save