@ -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 ) 2015 – 20 21 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 (только для текущего пользователя) (значение по умолчанию)
# Install OneDrive
# 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 " Med iaPlayback " 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 " Med iaPlayback " 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
# Em able Windows Script Host (current user only) (default value)
# En able 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