Browse Source

04.02.2021 v5.4

pull/135/head
Dmitry Nefedov 4 years ago
committed by GitHub
parent
commit
5732fdb337
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 126
      Sophia/PowerShell 5.1/Sophia.ps1
  2. BIN
      Sophia/PowerShell 5.1/Sophia.psd1
  3. 1507
      Sophia/PowerShell 5.1/Sophia.psm1
  4. 3
      Sophia/PowerShell 5.1/cn-CN/Sophia.psd1
  5. 3
      Sophia/PowerShell 5.1/de-DE/Sophia.psd1
  6. 3
      Sophia/PowerShell 5.1/en-US/Sophia.psd1
  7. 3
      Sophia/PowerShell 5.1/es-ES/Sophia.psd1
  8. 3
      Sophia/PowerShell 5.1/fr-FR/Sophia.psd1
  9. 1
      Sophia/PowerShell 5.1/it-IT/Sophia.psd1
  10. 3
      Sophia/PowerShell 5.1/ru-RU/Sophia.psd1
  11. 1
      Sophia/PowerShell 5.1/tr-TR/Sophia.psd1
  12. 1
      Sophia/PowerShell 5.1/uk-UA/Sophia.psd1

126
Sophia/PowerShell 5.1/Sophia.ps1

@ -2,9 +2,9 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Windows 10 Sophia Script" Default preset file for "Windows 10 Sophia Script"
Version: v5.3.3 Version: v5.4
Date: 20.01.2021 Date: 04.02.2021
Copyright (c) 2021 farag & oZ-Zo Copyright (c) 20152021 farag & oZ-Zo
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
@ -27,7 +27,7 @@
.NOTES .NOTES
https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15 https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
https://habr.com/post/521202/ https://habr.com/post/521202/
https://forums.mydigitallife.net/threads/powershell-script-setup-windows-10.81675/ https://forums.mydigitallife.net/threads/powershell-windows-10-sophia-script.81675/
https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/ https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/
.LINK .LINK
@ -47,28 +47,36 @@ param
Clear-Host Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.3.3 | ©️ farag & oz-zo, 2015–2021" $Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.4 | ©️ farag & oz-zo, 2015–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia
<# <#
.SYNOPSIS .SYNOPSIS
Adds the feature to run the script by specifying module functions as parameters Adds the feature to run the script by specifying module functions as parameters
Добавляет возможность запускать скрипт, указывая в качестве параметров функции модуля Добавляет возможность запускать скрипт, указывая в качестве параметров функции модуля
.EXAMPLE .EXAMPLE
.\Sophia.ps1 -Functions "FunctionName1 -Parameter", "FunctionName2 -Parameter" .\Sophia.ps1 -Functions "FunctionName1 -Parameter", "FunctionName2 -Parameter", FunctionName3
.NOTES
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
Вне зависимости от введенных функций в качестве аргумента, сначала будет выполнена функция "Checkings", и в конце "Refresh" и "Errors"
#> #>
if ($Functions) if ($Functions)
{ {
Invoke-Command -ScriptBlock {Checkings}
foreach ($Function in $Functions) foreach ($Function in $Functions)
{ {
Invoke-Expression -Command $Function Invoke-Expression -Command $Function
} }
Invoke-Command -ScriptBlock {Refresh; Errors}
exit exit
} }
@ -488,11 +496,11 @@ AppsLanguageSwitch -Enable
#region OneDrive #region OneDrive
# Uninstall OneDrive # Uninstall OneDrive
# Удалить OneDrive # Удалить OneDrive
UninstallOneDrive OneDrive -Uninstall
# Install OneDrive (current user only) (default value) # Install OneDrive (current user only) (default value)
# Установить OneDrive (только для текущего пользователя) (значение по умолчанию) # Установить OneDrive (только для текущего пользователя) (значение по умолчанию)
# InstallOneDrive # OneDrive -Install
#endregion OneDrive #endregion OneDrive
#region System #region System
@ -603,30 +611,30 @@ WindowsManageDefaultPrinter -Disable
# WindowsManageDefaultPrinter -Enable # WindowsManageDefaultPrinter -Enable
<# <#
Disable the Windows features using the pop-up dialog box that enables the user to select features to remove Disable the Windows features using the pop-up dialog box
Отключить компоненты Windows, используя всплывающее диалоговое окно, позволяющее пользователю отметить компоненты на удаление Отключить компоненты Windows, используя всплывающее диалоговое окно
If you want to leave "Multimedia settings" in the advanced settings of Power Options do not uninstall this feature If you want to leave "Multimedia settings" element in the advanced settings of Power Options do not uninstall the "MediaPlayback" feature
Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не удаляйте этот компонент Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не удаляйте компонент "MediaPlayback"
#> #>
WindowsFeatures -Disable WindowsFeatures -Disable
# Enable the Windows features using the pop-up dialog box that enables the user to select features to remove # Enable the Windows features using the pop-up dialog box
# Включить компоненты Windows, используя всплывающее диалоговое окно, позволяющее пользователю отметить компоненты на удаление # Включить компоненты Windows, используя всплывающее диалоговое окно
# WindowsFeatures -Enable # WindowsFeatures -Enable
<# <#
Disable Features On Demand v2 (FODv2) capabilities using the pop-up dialog box Uninstall Features On Demand v2 (FODv2) capabilities using the pop-up dialog box
Отключить компоненты "Функции по требованию" (FODv2), используя всплывающее диалоговое окно Удалить компоненты "Функции по требованию" (FODv2), используя всплывающее диалоговое окно
If you want to leave "Multimedia settings" in the advanced settings of Power Options do not uninstall this feature If you want to leave "Multimedia settings" element in the advanced settings of Power Options do not uninstall the "MediaPlayback" feature
Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не удаляйте этот компонент Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не удаляйте компонент "MediaPlayback"
#> #>
WindowsCapabilities -Disable WindowsCapabilities -Uninstall
# Enable Feature On Demand v2 (FODv2) capabilities using the pop-up dialog box # Install Features On Demand v2 (FODv2) capabilities using the pop-up dialog box
# Включить компоненты "Функции по требованию" (FODv2), используя всплывающее диалоговое окно # Установить компоненты "Функции по требованию" (FODv2), используя всплывающее диалоговое окно
# WindowsCapabilities -Enable # WindowsCapabilities -Install
# Opt-in to Microsoft Update service, so to receive updates for other Microsoft products # Opt-in to Microsoft Update service, so to receive updates for other Microsoft products
# Подключаться к службе Microsoft Update так, чтобы при обновлении Windows получать обновления для других продуктов Майкрософт # Подключаться к службе Microsoft Update так, чтобы при обновлении Windows получать обновления для других продуктов Майкрософт
@ -827,13 +835,8 @@ DeviceRestartAfterUpdate -Enable
#endregion System #endregion System
#region WSL #region WSL
<# # Install the Windows Subsystem for Linux (WSL)
Install the Windows Subsystem for Linux (WSL) # Установить подсистему Windows для Linux (WSL)
Установить подсистему Windows для Linux (WSL)
https://github.com/farag2/Windows-10-Sophia-Script/issues/43
https://github.com/microsoft/WSL/issues/5437
#>
# WSL -Enable # WSL -Enable
# Uninstall the Windows Subsystem for Linux (WSL) # Uninstall the Windows Subsystem for Linux (WSL)
@ -848,30 +851,8 @@ DeviceRestartAfterUpdate -Enable
Скачать и установить пакет обновления ядра Linux Скачать и установить пакет обновления ядра Linux
Установить WSL 2 как версию по умолчанию при установке нового дистрибутива Linux Установить WSL 2 как версию по умолчанию при установке нового дистрибутива Linux
Выполните функцию только после установки WSL и перезагрузка ПК Выполните функцию только после установки WSL и перезагрузка ПК
https://github.com/microsoft/WSL/issues/5437
https://github.com/farag2/Windows-10-Sophia-Script/issues/43
#> #>
# EnableWSL2 # EnableWSL2
<#
Disable swap file in WSL
Use only if the %TEMP% environment variable path changed
Отключить файл подкачки в WSL
Используйте только в случае, если изменился путь переменной среды для %TEMP%
https://github.com/microsoft/WSL/issues/5437
#>
# WSLSwap -Disable
<#
Enable swap file in WSL
Включить файл подкачки в WSL
https://github.com/microsoft/WSL/issues/5437
#>
# WSLSwap -Enable
#endregion WSL #endregion WSL
#region Start menu #region Start menu
@ -903,48 +884,37 @@ RunCMDShortcut -Elevated
# Открепить все ярлыки от начального экрана # Открепить все ярлыки от начального экрана
UnpinAllStartTiles UnpinAllStartTiles
<# # Pin the "Control Panel" shortcut to Start within the syspin app
Test if syspin.exe is in a folder. Unless download it
Проверить, находится ли файл syspin.exe в папке. Иначе скачать его
http://www.technosys.net/products/utils/pintotaskbar
SHA256: 07D6C3A19A8E3E243E9545A41DD30A9EE1E9AD79CDD6D446C229D689E5AB574A
#>
syspin
# Pin the "Control Panel" shortcut to Start within syspin
# Закрепить ярлык "Панели управления" на начальном экране с помощью syspin # Закрепить ярлык "Панели управления" на начальном экране с помощью syspin
PinControlPanel PinControlPanel
# Pin the old-style "Devices and Printers" shortcut to Start within syspin # Pin the old-style "Devices and Printers" shortcut to Start within the syspin app
# Закрепить ярлык старого формата "Устройства и принтеры" на начальном экране с помощью syspin # Закрепить ярлык старого формата "Устройства и принтеры" на начальном экране с помощью syspin
PinDevicesPrinters PinDevicesPrinters
# Pin the Command Prompt" shortcut to Start within syspin # Pin the Command Prompt" shortcut to Start within the syspin app
# Закрепить ярлык "Командная строка" на начальном экране с помощью syspin # Закрепить ярлык "Командная строка" на начальном экране с помощью syspin
PinCommandPrompt PinCommandPrompt
#endregion Start menu #endregion Start menu
#region UWP apps #region UWP apps
<# <#
Uninstall UWP apps using the pop-up dialog box that enables the user to select packages to remove Uninstall UWP apps using the pop-up dialog box
App packages will not be installed for new users if "Uninstall for All Users" is checked App packages will not be installed for new users if "Uninstall for All Users" is checked
Удалить UWP-приложения, используя всплывающее диалоговое окно, позволяющее пользователю отметить пакеты на удаление Удалить UWP-приложения, используя всплывающее диалоговое окно
Приложения не будут установлены для новых пользователе, если отмечено "Удалять для всех пользователей" Приложения не будут установлены для новых пользователей, если отмечено "Удалять для всех пользователей"
#> #>
UninstallUWPApps UninstallUWPApps
<# <#
Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page to install this extension manually to be able to open .heic and .heif image formats
The extension can be installed without Microsoft account for free instead of $0.99 The extension can be installed without Microsoft account
"Movies & TV" app required
Открыть страницу "Расширения для видео HEVC от производителя устройства" в Microsoft Store Открыть страницу "Расширения для видео HEVC от производителя устройства" в Microsoft Store, чтобы вручную установить расширение для открытия изображений в форматах .heic и .heif
Расширение может быть установлено бесплатно без учетной записи Microsoft вместо 0,99 $ Расширение может быть установлено бесплатно без учетной записи Microsoft
Для работы необходимо приложение "Кино и ТВ"
#> #>
InstallHEVC InstallHEIF
# Disable Cortana autostarting # Disable Cortana autostarting
# Выключить автозагрузку Кортана # Выключить автозагрузку Кортана
@ -1180,14 +1150,14 @@ SaveZoneInformation -Disable
<# <#
Disable Windows Script Host (current user only) Disable Windows Script Host (current user only)
It becomes impossible to run .js and .vbs files Blocks WSH from executing .js and .vbs files
Отключить Windows Script Host (только для текущего пользователя) Отключить Windows Script Host (только для текущего пользователя)
Становится невозможным запустить файлы .js и .vbs Блокирует запуск файлов .js и .vbs
#> #>
# WindowsScriptHost -Disable # WindowsScriptHost -Disable
# Emable Windows Script Host (current user only) (default value) # Enable Windows Script Host (current user only) (default value)
# Включить Windows Script Host (только для текущего пользователя) (значение по умолчанию) # Включить Windows Script Host (только для текущего пользователя) (значение по умолчанию)
# WindowsScriptHost -Enable # WindowsScriptHost -Enable
@ -1367,4 +1337,4 @@ Refresh
# Errors output # Errors output
# Вывод ошибок # Вывод ошибок
Errors Errors

BIN
Sophia/PowerShell 5.1/Sophia.psd1

Binary file not shown.

1507
Sophia/PowerShell 5.1/Sophia.psm1

File diff suppressed because it is too large

3
Sophia/PowerShell 5.1/cn-CN/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @' ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64 UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本2004 / 20H1和更高版本 UnsupportedOSBuild = 该脚本支持Windows 10版本2004 / 20H1和更高版本
UnsupportedRelease = 找到新版本 UnsupportedRelease = 找到新版本
@ -88,4 +88,5 @@ Skip = 跳过
Skipped = 已跳过 Skipped = 已跳过
SymbolicSkipped = 跳过创建符号链接 SymbolicSkipped = 跳过创建符号链接
Uninstall = 卸载 Uninstall = 卸载
Install = 安装
'@ '@

3
Sophia/PowerShell 5.1/de-DE/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @' ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64 UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004 / 20H1-Versionen und höher UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004 / 20H1-Versionen und höher
UnsupportedRelease = Neue Version gefunden UnsupportedRelease = Neue Version gefunden
@ -88,4 +88,5 @@ Skip = Überspringen
Skipped = Übersprungen Skipped = Übersprungen
SymbolicSkipped = Das Erstellen eines symbolischen Links wurde übersprungen SymbolicSkipped = Das Erstellen eines symbolischen Links wurde übersprungen
Uninstall = Deinstallieren Uninstall = Deinstallieren
Install = Installieren
'@ '@

3
Sophia/PowerShell 5.1/en-US/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @' ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports Windows 10 x64 only UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 2004/20H1 versions and higher UnsupportedOSBuild = The script supports Windows 10 2004/20H1 versions and higher
UnsupportedRelease = New version found UnsupportedRelease = New version found
@ -88,4 +88,5 @@ Skip = Skip
Skipped = Skipped Skipped = Skipped
SymbolicSkipped = Skipped creating a symbolic link SymbolicSkipped = Skipped creating a symbolic link
Uninstall = Uninstall Uninstall = Uninstall
Install = Install
'@ '@

3
Sophia/PowerShell 5.1/es-ES/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @' ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Este script solo soporta Windows 10 x64 UnsupportedOSBitness = Este script solo soporta Windows 10 x64
UnsupportedOSBuild = Este script solo soporta Windows 10 2004/20H1 o superior UnsupportedOSBuild = Este script solo soporta Windows 10 2004/20H1 o superior
UnsupportedRelease = Nueva versión encontrada UnsupportedRelease = Nueva versión encontrada
@ -88,4 +88,5 @@ Skip = Omitir
Skipped = Omitido Skipped = Omitido
SymbolicSkipped = Se omitió la creación de un enlace simbólico SymbolicSkipped = Se omitió la creación de un enlace simbólico
Uninstall = Desinstalar Uninstall = Desinstalar
Install = Instalar
'@ '@

3
Sophia/PowerShell 5.1/fr-FR/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @' ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64 UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H1 et ultérieures UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H1 et ultérieures
UnsupportedRelease = Nouvelle version trouvée UnsupportedRelease = Nouvelle version trouvée
@ -88,4 +88,5 @@ Skip = Passer
Skipped = Passé Skipped = Passé
SymbolicSkipped = La création d'un lien symbolique a été ignorée SymbolicSkipped = La création d'un lien symbolique a été ignorée
Uninstall = Désinstaller Uninstall = Désinstaller
Install = Installer
'@ '@

1
Sophia/PowerShell 5.1/it-IT/Sophia.psd1

@ -88,4 +88,5 @@ Skip = Salta
Skipped = Saltato Skipped = Saltato
SymbolicSkipped = È stata saltata la creazione di un collegamento simbolico SymbolicSkipped = È stata saltata la creazione di un collegamento simbolico
Uninstall = Rimuovi Uninstall = Rimuovi
Install = Installare
'@ '@

3
Sophia/PowerShell 5.1/ru-RU/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @' ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64 UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 версии 2004/20H1 и выше UnsupportedOSBuild = Скрипт поддерживает только Windows 10 версии 2004/20H1 и выше
UnsupportedRelease = Обнаружена новая версия UnsupportedRelease = Обнаружена новая версия
@ -88,4 +88,5 @@ Skip = Пропустить
Skipped = Пропущено Skipped = Пропущено
SymbolicSkipped = Пропущено создание символической ссылки SymbolicSkipped = Пропущено создание символической ссылки
Uninstall = Удалить Uninstall = Удалить
Install = Установить
'@ '@

1
Sophia/PowerShell 5.1/tr-TR/Sophia.psd1

@ -88,4 +88,5 @@ Skip = Atla
Skipped = Atlandı Skipped = Atlandı
SymbolicSkipped = Sembolik bir bağlantı oluşturma atlandı SymbolicSkipped = Sembolik bir bağlantı oluşturma atlandı
Uninstall = Kaldır Uninstall = Kaldır
Install = Yüklemek
'@ '@

1
Sophia/PowerShell 5.1/uk-UA/Sophia.psd1

@ -88,4 +88,5 @@ Skip = Пропустити
Skipped = Пропущено Skipped = Пропущено
SymbolicSkipped = Пропущено створення символічного посилання SymbolicSkipped = Пропущено створення символічного посилання
Uninstall = Видалити Uninstall = Видалити
Install = Встановити
'@ '@

Loading…
Cancel
Save