Browse Source

24.10.2021 5.2.16

pull/277/head
Dmitry Nefedov 3 years ago
parent
commit
a95a8fe2c0
  1. 10
      Sophia Script/Sophia Script for Windows 10 LTSC/Functions.ps1
  2. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/de-DE/Sophia.psd1
  3. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/en-US/Sophia.psd1
  4. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/es-ES/Sophia.psd1
  5. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/fr-FR/Sophia.psd1
  6. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/hu-HU/Sophia.psd1
  7. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/it-IT/Sophia.psd1
  8. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/pt-BR/Sophia.psd1
  9. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/ru-RU/Sophia.psd1
  10. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/tr-TR/Sophia.psd1
  11. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/uk-UA/Sophia.psd1
  12. 2
      Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/zh-CN/Sophia.psd1
  13. 4
      Sophia Script/Sophia Script for Windows 10 LTSC/Manifest/Sophia.psd1
  14. 46
      Sophia Script/Sophia Script for Windows 10 LTSC/Module/Sophia.psm1
  15. 24
      Sophia Script/Sophia Script for Windows 10 LTSC/Sophia.ps1

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

@ -2,11 +2,11 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.2.15
Date: 05.10.2021
Version: v5.2.16
Date: 24.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -54,7 +54,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.15 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 20142021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.16 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/de-DE/Sophia.psd1

@ -65,7 +65,7 @@ Run = Starten
SelectAll = Wählen Sie Alle
Skip = Überspringen
Skipped = Übersprungen
FileExplorerRestartPrompt = Manchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden
FileExplorerRestartPrompt = \nManchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden
TelegramGroupTitle = Treten Sie unserer offiziellen Telegram-Gruppe bei
TelegramChannelTitle = Treten Sie unserem offiziellen Telegram-Kanal bei
Uninstall = Deinstallieren

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/en-US/Sophia.psd1

@ -65,7 +65,7 @@ Run = Run
SelectAll = Select all
Skip = Skip
Skipped = Skipped
FileExplorerRestartPrompt = Sometimes in order for the changes to take effect the File Explorer process has to be restarted
FileExplorerRestartPrompt = \nSometimes in order for the changes to take effect the File Explorer process has to be restarted
TelegramGroupTitle = Join our official Telegram group
TelegramChannelTitle = Join our official Telegram channel
Uninstall = Uninstall

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/es-ES/Sophia.psd1

@ -65,7 +65,7 @@ Run = Iniciar
SelectAll = Seleccionar todo
Skip = Omitir
Skipped = Omitido
FileExplorerRestartPrompt = A veces, para que los cambios surtan efecto, hay que reiniciar el proceso del Explorador de archivos
FileExplorerRestartPrompt = \nA veces, para que los cambios surtan efecto, hay que reiniciar el proceso del Explorador de archivos
TelegramGroupTitle = Únete a nuestro grupo oficial de Telegram
TelegramChannelTitle = Únete a nuestro canal oficial de Telegram
Uninstall = Desinstalar

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/fr-FR/Sophia.psd1

@ -65,7 +65,7 @@ Run = Démarrer
SelectAll = Tout sélectionner
Skip = Passer
Skipped = Passé
FileExplorerRestartPrompt = Parfois, pour que les modifications soient prises en compte, il faut redémarrer l'Explorateur de fichiers
FileExplorerRestartPrompt = \nParfois, pour que les modifications soient prises en compte, il faut redémarrer l'Explorateur de fichiers
TelegramGroupTitle = Rejoignez notre groupe Telegram officiel
TelegramChannelTitle = Rejoignez notre canal Telegram officiel
Uninstall = Désinstaller

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/hu-HU/Sophia.psd1

@ -65,7 +65,7 @@ Run = Futtatás
SelectAll = Összes kijelölése
Skip = Átugrás
Skipped = Átugorva
FileExplorerRestartPrompt = Néha ahhoz, hogy a módosítások hatályba lépjenek, a File Explorer folyamatot újra kell indítani
FileExplorerRestartPrompt = \nNéha ahhoz, hogy a módosítások hatályba lépjenek, a File Explorer folyamatot újra kell indítani
TelegramGroupTitle = Pridružite se našoj službenoj grupi Telegram
TelegramChannelTitle = Pridružite se našem službenom kanalu Telegram
Uninstall = Eltávolít

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/it-IT/Sophia.psd1

@ -65,7 +65,7 @@ Run = Eseguire
SelectAll = Seleziona tutto
Skip = Salta
Skipped = Saltato
FileExplorerRestartPrompt = A volte, affinché le modifiche abbiano effetto, il processo di File Explorer deve essere riavviato
FileExplorerRestartPrompt = \nA volte, affinché le modifiche abbiano effetto, il processo di File Explorer deve essere riavviato
TelegramGroupTitle = Unisciti al nostro gruppo ufficiale Telegram
TelegramChannelTitle = Unisciti al nostro canale ufficiale di Telegram
Uninstall = Disinstallare

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/pt-BR/Sophia.psd1

@ -65,7 +65,7 @@ Run = Executar
SelectAll = Selecionar tudo
Skip = Pular
Skipped = Ignorados
FileExplorerRestartPrompt = Por vezes, para que as alterações tenham efeito, o processo File Explorer tem de ser reiniciado
FileExplorerRestartPrompt = \nPor vezes, para que as alterações tenham efeito, o processo File Explorer tem de ser reiniciado
TelegramGroupTitle = Entre no grupo oficial do Telegram
TelegramChannelTitle = Entre no canal oficial do Telegram
Uninstall = Desinstalar

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/ru-RU/Sophia.psd1

@ -65,7 +65,7 @@ Run = Запустить
SelectAll = Выбрать всё
Skip = Пропустить
Skipped = Пропущено
FileExplorerRestartPrompt = Иногда для того, чтобы изменения вступили в силу, процесс проводника необходимо перезапустить
FileExplorerRestartPrompt = \nИногда для того, чтобы изменения вступили в силу, процесс проводника необходимо перезапустить
TelegramGroupTitle = Присоединяйтесь к нашей официальной группе в Telegram
TelegramChannelTitle = Присоединяйтесь к нашему официальному каналу в Telegram
Uninstall = Удалить

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/tr-TR/Sophia.psd1

@ -65,7 +65,7 @@ Run = Başlat
SelectAll = Hepsini seç
Skip = Atla
Skipped = Atlandı
FileExplorerRestartPrompt = Bazen değişikliklerin geçerli olması için Dosya Gezgini işleminin yeniden başlatılması gerekir
FileExplorerRestartPrompt = \nBazen değişikliklerin geçerli olması için Dosya Gezgini işleminin yeniden başlatılması gerekir
TelegramGroupTitle = Resmi Telegram grubumuza katılın
TelegramChannelTitle = Resmi Telegram kanalımıza katılın
Uninstall = Kaldır

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/uk-UA/Sophia.psd1

@ -65,7 +65,7 @@ Run = Запустити
SelectAll = Вибрати все
Skip = Пропустити
Skipped = Пропущено
FileExplorerRestartPrompt = Іноді для того, щоб зміни вступили в силу, процес провідника необхідно перезапустити
FileExplorerRestartPrompt = \nІноді для того, щоб зміни вступили в силу, процес провідника необхідно перезапустити
TelegramGroupTitle = Приєднуйтесь до нашої офіційної групи в Telegram
TelegramChannelTitle = Приєднуйтесь до нашого офіційного каналу в Telegram
Uninstall = Видалити

2
Sophia Script/Sophia Script for Windows 10 LTSC/Localizations/zh-CN/Sophia.psd1

@ -65,7 +65,7 @@ Run = 运行
SelectAll = 全选
Skip = 跳过
Skipped = 已跳过
FileExplorerRestartPrompt = 有时为了使更改生效必须重新启动文件管理器进程
FileExplorerRestartPrompt = \n有时为了使更改生效必须重新启动文件管理器进程
TelegramGroupTitle = 加入我们的官方Telegram
TelegramChannelTitle = 加入我们的官方Telegram 频道
Uninstall = 卸载

4
Sophia Script/Sophia Script for Windows 10 LTSC/Manifest/Sophia.psd1

@ -1,9 +1,9 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.2.15'
ModuleVersion = '5.2.16'
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 20142021 farag & Inestic. All rights reserved'
Copyright = '(c) 20142021 farag & Inestic. All rights reserved'
Description = 'Module for Windows fine-tuning and automating the routine tasks'
PowerShellVersion = '5.1'
ProcessorArchitecture = 'AMD64'

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

@ -2,11 +2,11 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.2.15
Date: 05.10.2021
Version: v5.2.16
Date: 24.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -546,39 +546,30 @@ function ScheduledTasks
# The following tasks will have their checkboxes checked
[string[]]$CheckedScheduledTasks = @(
# Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program
# Сбор телеметрических данных программы при участии в программе улучшения качества ПО
"ProgramDataUpdater",
# This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program
# Эта задача собирает и загружает данные SQM при участии в программе улучшения качества программного обеспечения
"Proxy",
# If the user has consented to participate in the Windows Customer Experience Improvement Program, this job collects and sends usage data to Microsoft
# Если пользователь изъявил желание участвовать в программе по улучшению качества программного обеспечения Windows, эта задача будет собирать и отправлять сведения о работе программного обеспечения в Майкрософт
"Consolidator",
# The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft
# При выполнении задачи программы улучшения качества ПО шины USB (USB CEIP) осуществляется сбор статистических данных об использовании универсальной последовательной шины USB и с ведений о компьютере, которые направляются инженерной группе Майкрософт по вопросам подключения устройств в Windows
"UsbCeip",
# The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program
# Для пользователей, участвующих в программе контроля качества программного обеспечения, служба диагностики дисков Windows предоставляет общие сведения о дисках и системе в корпорацию Майкрософт
"Microsoft-Windows-DiskDiagnosticDataCollector",
# This task shows various Map related toasts
# Эта задача показывает различные тосты (всплывающие уведомления) приложения "Карты"
"MapsToastTask",
# This task checks for updates to maps which you have downloaded for offline use
# Эта задача проверяет наличие обновлений для карт, загруженных для автономного использования
"MapsUpdateTask",
# Initializes Family Safety monitoring and enforcement
# Инициализация контроля и применения правил семейной безопасности
"FamilySafetyMonitor",
# Synchronizes the latest settings with the Microsoft family features service
# Синхронизирует последние параметры со службой функций семьи учетных записей Майкрософт
"FamilySafetyRefreshTask",
# XblGameSave Standby Task
@ -812,7 +803,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {($_.ProcessName -eq "powershell") -and ($_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -2917,6 +2908,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
#region main
# Change the %TEMP% environment variable path to %LOCALAPPDATA%\Temp
# The additional registry key creating are needed to fix the property type of the keys: SetEnvironmentVariable creates them with the "String" type instead of "ExpandString" as by default
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "User")
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "Machine")
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "Process")
@ -3456,7 +3448,6 @@ function WindowsFeatures
# The following Windows features will have their checkboxes checked
[string[]]$CheckedFeatures = @(
# Legacy Components
# Компоненты прежних версий
"LegacyComponents",
# PowerShell 2.0
@ -3464,11 +3455,9 @@ function WindowsFeatures
"MicrosoftWindowsPowershellV2Root",
# Microsoft XPS Document Writer
# Средство записи XPS-документов (Microsoft)
"Printing-XPSServices-Features",
# Work Folders Client
# Клиент рабочих папок
"WorkFolders-Client"
)
@ -3706,7 +3695,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {($_.ProcessName -eq "powershell") -and ($_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -3783,7 +3772,6 @@ function WindowsCapabilities
# The following optional features will have their checkboxes checked
[string[]]$CheckedCapabilities = @(
# Microsoft Quick Assist
# Быстрая поддержка (Майкрософт)
"App.Support.QuickAssist*"
)
@ -3793,7 +3781,6 @@ function WindowsCapabilities
"Browser.InternetExplorer*",
# Math Recognizer
# Распознаватель математических знаков
"MathRecognizer*",
# Windows Media Player
@ -3801,30 +3788,24 @@ function WindowsCapabilities
"Media.WindowsMediaPlayer*",
# OpenSSH Client
# Клиент OpenSSH
"OpenSSH.Client*"
)
# The following optional features will be excluded from the display
[string[]]$ExcludedCapabilities = @(
# The DirectX Database to configure and optimize apps when multiple Graphics Adapters are present
# База данных DirectX для настройки и оптимизации приложений при наличии нескольких графических адаптеров
"DirectX.Configuration.Database*",
# Language components
# Языковые компоненты
"Language.*",
# Notepad
# Блокнот
"Microsoft.Windows.Notepad*",
# Mail, contacts, and calendar sync component
# Компонент синхронизации почты, контактов и календаря
"OneCoreUAP.OneSync*",
# Windows PowerShell Intergrated Scripting Enviroment
# Интегрированная среда сценариев Windows PowerShell
"Microsoft.Windows.PowerShell.ISE*"
)
#endregion Variables
@ -4087,7 +4068,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {($_.ProcessName -eq "powershell") -and ($_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -4160,7 +4141,7 @@ function UpdateMicrosoftProducts
}
"Disable"
{
if ((New-Object -ComObject Microsoft.Update.ServiceManager).Services | Where-Object -FilterScript {$_.ServiceID -eq "7971f918-a847-4430-9279-4a52d1efe18d"})
if (((New-Object -ComObject Microsoft.Update.ServiceManager).Services | Where-Object -FilterScript {$_.ServiceID -eq "7971f918-a847-4430-9279-4a52d1efe18d"}).IsDefaultAUService -eq $true)
{
(New-Object -ComObject Microsoft.Update.ServiceManager).RemoveService("7971f918-a847-4430-9279-4a52d1efe18d")
}
@ -4415,14 +4396,14 @@ function IPv6Component
{
if ($null -eq $IPv6Test)
{
Disable-NetAdapterBinding Name * ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name * -ComponentID ms_tcpip6
}
}
"Enable"
{
if ($IPv6Test)
{
Enable-NetAdapterBinding Name * ComponentID ms_tcpip6
Enable-NetAdapterBinding -Name * -ComponentID ms_tcpip6
}
}
}
@ -6882,6 +6863,7 @@ function SetAppGraphicsPerformance
}
"1"
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
}
@ -7253,7 +7235,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For
}
"Delete"
{
Unregister-ScheduledTask -TaskName SoftwareDistribution -Confirm:$false
Unregister-ScheduledTask -TaskName SoftwareDistribution -Confirm:$false -ErrorAction Ignore
}
}
}
@ -7350,7 +7332,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object {`$_.CreationTime
}
"Delete"
{
Unregister-ScheduledTask -TaskName Temp -Confirm:$false
Unregister-ScheduledTask -TaskName Temp -Confirm:$false -ErrorAction Ignore
}
}
}

24
Sophia Script/Sophia Script for Windows 10 LTSC/Sophia.ps1

@ -2,11 +2,11 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 LTSC"
Version: v5.2.15
Date: 05.10.2021
Version: v5.2.16
Date: 24.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -72,7 +72,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.15 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 20142021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.16 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -656,7 +656,7 @@ SetUserShellFolderLocation -Root
# Сохранять скриншоты по нажатию Win+PrtScr на рабочий столе
WinPrtScrFolder -Desktop
# Save screenshots by pressing Win+PrtScr on the Pictures folder (default value)
# Save screenshots by pressing Win+PrtScr in the Pictures folder (default value)
# Cохранять скриншоты по нажатию Win+PrtScr в папку "Изображения" (значение по умолчанию)
# WinPrtScrFolder -Default
@ -684,14 +684,14 @@ NumLock -Enable
# Выключить Num Lock при загрузке (значение по умолчанию)
# NumLock -Disable
# Enable Caps Lock
# Включить Caps Lock
# CapsLock -Enable
# Disable Caps Lock (default value)
# Выключить Caps Lock (значение по умолчанию)
# Disable Caps Lock
# Выключить Caps Lock
# CapsLock -Disable
# Enable Caps Lock (default value)
# Включить Caps Lock (значение по умолчанию)
# CapsLock -Enable
# Turn off pressing the Shift key 5 times to turn Sticky keys
# Выключить залипание клавиши Shift после 5 нажатий
StickyShift -Disable

Loading…
Cancel
Save