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
Default preset file for "Windows 10 Sophia Script"
Version: v5.3.3
Date: 20.01.2021
Copyright (c) 2021 farag & oZ-Zo
Version: v5.4
Date: 04.02.2021
Copyright (c) 20152021 farag & oZ-Zo
Thanks to all https://forum.ru-board.com members involved
@ -27,7 +27,7 @@
.NOTES
https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
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/
.LINK
@ -47,28 +47,36 @@ param
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
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia
<#
.SYNOPSIS
Adds the feature to run the script by specifying module functions as parameters
Добавляет возможность запускать скрипт, указывая в качестве параметров функции модуля
.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)
{
Invoke-Command -ScriptBlock {Checkings}
foreach ($Function in $Functions)
{
Invoke-Expression -Command $Function
}
Invoke-Command -ScriptBlock {Refresh; Errors}
exit
}
@ -488,11 +496,11 @@ AppsLanguageSwitch -Enable
#region OneDrive
# Uninstall OneDrive
# Удалить OneDrive
UninstallOneDrive
OneDrive -Uninstall
# Install OneDrive (current user only) (default value)
# Установить OneDrive (только для текущего пользователя) (значение по умолчанию)
# InstallOneDrive
# OneDrive -Install
#endregion OneDrive
#region System
@ -603,30 +611,30 @@ WindowsManageDefaultPrinter -Disable
# WindowsManageDefaultPrinter -Enable
<#
Disable the Windows features using the pop-up dialog box that enables the user to select features to remove
Отключить компоненты Windows, используя всплывающее диалоговое окно, позволяющее пользователю отметить компоненты на удаление
Disable the Windows features using the pop-up dialog box
Отключить компоненты 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
# Enable the Windows features using the pop-up dialog box that enables the user to select features to remove
# Включить компоненты Windows, используя всплывающее диалоговое окно, позволяющее пользователю отметить компоненты на удаление
# Enable the Windows features using the pop-up dialog box
# Включить компоненты Windows, используя всплывающее диалоговое окно
# WindowsFeatures -Enable
<#
Disable Features On Demand v2 (FODv2) capabilities using the pop-up dialog box
Отключить компоненты "Функции по требованию" (FODv2), используя всплывающее диалоговое окно
Uninstall Features On Demand v2 (FODv2) capabilities using the pop-up dialog box
Удалить компоненты "Функции по требованию" (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
# Включить компоненты "Функции по требованию" (FODv2), используя всплывающее диалоговое окно
# WindowsCapabilities -Enable
# Install Features On Demand v2 (FODv2) capabilities using the pop-up dialog box
# Установить компоненты "Функции по требованию" (FODv2), используя всплывающее диалоговое окно
# WindowsCapabilities -Install
# Opt-in to Microsoft Update service, so to receive updates for other Microsoft products
# Подключаться к службе Microsoft Update так, чтобы при обновлении Windows получать обновления для других продуктов Майкрософт
@ -827,13 +835,8 @@ DeviceRestartAfterUpdate -Enable
#endregion System
#region WSL
<#
Install the Windows Subsystem for Linux (WSL)
Установить подсистему Windows для Linux (WSL)
https://github.com/farag2/Windows-10-Sophia-Script/issues/43
https://github.com/microsoft/WSL/issues/5437
#>
# Install the Windows Subsystem for Linux (WSL)
# Установить подсистему Windows для Linux (WSL)
# WSL -Enable
# Uninstall the Windows Subsystem for Linux (WSL)
@ -848,30 +851,8 @@ DeviceRestartAfterUpdate -Enable
Скачать и установить пакет обновления ядра Linux
Установить WSL 2 как версию по умолчанию при установке нового дистрибутива Linux
Выполните функцию только после установки WSL и перезагрузка ПК
https://github.com/microsoft/WSL/issues/5437
https://github.com/farag2/Windows-10-Sophia-Script/issues/43
#>
# 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
#region Start menu
@ -903,48 +884,37 @@ RunCMDShortcut -Elevated
# Открепить все ярлыки от начального экрана
UnpinAllStartTiles
<#
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
# Pin the "Control Panel" shortcut to Start within the syspin app
# Закрепить ярлык "Панели управления" на начальном экране с помощью syspin
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
PinDevicesPrinters
# Pin the Command Prompt" shortcut to Start within syspin
# Pin the Command Prompt" shortcut to Start within the syspin app
# Закрепить ярлык "Командная строка" на начальном экране с помощью syspin
PinCommandPrompt
#endregion Start menu
#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
Удалить UWP-приложения, используя всплывающее диалоговое окно, позволяющее пользователю отметить пакеты на удаление
Приложения не будут установлены для новых пользователе, если отмечено "Удалять для всех пользователей"
Удалить UWP-приложения, используя всплывающее диалоговое окно
Приложения не будут установлены для новых пользователей, если отмечено "Удалять для всех пользователей"
#>
UninstallUWPApps
<#
Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page
The extension can be installed without Microsoft account for free instead of $0.99
"Movies & TV" app required
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
Открыть страницу "Расширения для видео HEVC от производителя устройства" в Microsoft Store
Расширение может быть установлено бесплатно без учетной записи Microsoft вместо 0,99 $
Для работы необходимо приложение "Кино и ТВ"
Открыть страницу "Расширения для видео HEVC от производителя устройства" в Microsoft Store, чтобы вручную установить расширение для открытия изображений в форматах .heic и .heif
Расширение может быть установлено бесплатно без учетной записи Microsoft
#>
InstallHEVC
InstallHEIF
# Disable Cortana autostarting
# Выключить автозагрузку Кортана
@ -1180,14 +1150,14 @@ SaveZoneInformation -Disable
<#
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 (только для текущего пользователя)
Становится невозможным запустить файлы .js и .vbs
Блокирует запуск файлов .js и .vbs
#>
# WindowsScriptHost -Disable
# Emable Windows Script Host (current user only) (default value)
# Enable Windows Script Host (current user only) (default value)
# Включить Windows Script Host (только для текущего пользователя) (значение по умолчанию)
# WindowsScriptHost -Enable
@ -1367,4 +1337,4 @@ Refresh
# 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
UnsupportedOSBuild = 该脚本支持Windows 10版本2004 / 20H1和更高版本
UnsupportedRelease = 找到新版本
@ -88,4 +88,5 @@ Skip = 跳过
Skipped = 已跳过
SymbolicSkipped = 跳过创建符号链接
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
UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004 / 20H1-Versionen und höher
UnsupportedRelease = Neue Version gefunden
@ -88,4 +88,5 @@ Skip = Überspringen
Skipped = Übersprungen
SymbolicSkipped = Das Erstellen eines symbolischen Links wurde übersprungen
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
UnsupportedOSBuild = The script supports Windows 10 2004/20H1 versions and higher
UnsupportedRelease = New version found
@ -88,4 +88,5 @@ Skip = Skip
Skipped = Skipped
SymbolicSkipped = Skipped creating a symbolic link
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
UnsupportedOSBuild = Este script solo soporta Windows 10 2004/20H1 o superior
UnsupportedRelease = Nueva versión encontrada
@ -88,4 +88,5 @@ Skip = Omitir
Skipped = Omitido
SymbolicSkipped = Se omitió la creación de un enlace simbólico
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
UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H1 et ultérieures
UnsupportedRelease = Nouvelle version trouvée
@ -88,4 +88,5 @@ Skip = Passer
Skipped = Passé
SymbolicSkipped = La création d'un lien symbolique a été ignorée
Uninstall = Désinstaller
Install = Installer
'@

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

@ -88,4 +88,5 @@ Skip = Salta
Skipped = Saltato
SymbolicSkipped = È stata saltata la creazione di un collegamento simbolico
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
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 версии 2004/20H1 и выше
UnsupportedRelease = Обнаружена новая версия
@ -88,4 +88,5 @@ Skip = Пропустить
Skipped = Пропущено
SymbolicSkipped = Пропущено создание символической ссылки
Uninstall = Удалить
Install = Установить
'@

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

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

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

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

Loading…
Cancel
Save