Script to setup Windows 10 1903
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1438 lines
76 KiB

<#
.SYNOPSIS
Default preset file for "Windows 10 Sophia Script"
Version: v5.10.4
Date: 07.05.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & oZ-Zo
Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION
Place the "#" char before function if you don't want to run it
Remove the "#" char before function if you want to run it
Every tweak in the preset file has its' corresponding function to restore the default settings
.EXAMPLE Run the whole script
.\Sophia.ps1
.EXAMPLE Run the script by specifying the module functions as an argument
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
3 years ago
.NOTES
Supported Windows 10 versions
Versions: 2004/20H2/21H1
Builds: 19041/19042/19043
3 years ago
Editions: Home/Pro/Enterprise
Architecture: x64
.NOTES
Set execution policy to be able to run scripts only in the current PowerShell session:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
.NOTES
Running the script is best done on a fresh install because running it on wrong tweaked system may result in errors occurring
.NOTES
To use the TAB completion for functions and their arguments dot source the Function.ps1 script first:
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
3 years ago
.NOTES
https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
https://habr.com/post/521202/
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 Telegram channel & group
3 years ago
https://t.me/sophianews
https://t.me/sophia_chat
.LINK
https://github.com/farag2
https://github.com/Inestic
.LINK
https://github.com/farag2/Windows-10-Sophia-Script
#>
#Requires -RunAsAdministrator
#Requires -Version 5.1
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string[]]
$Functions
)
Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.4 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
4 years ago
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
<#
.SYNOPSIS
Run the script by specifying the module functions as an argument
Запустить скрипт, указав в качестве аргумента функции модуля
.EXAMPLE
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
.NOTES
Separate functions with a comma
#>
if ($Functions)
{
# Regardless of functions entered as an argument, the "Checkings" function will be executed first,
# and the "Refresh" and "Errors" functions will be executed at the end
Invoke-Command -ScriptBlock {Checkings}
foreach ($Function in $Functions)
{
Invoke-Expression -Command $Function
}
Invoke-Command -ScriptBlock {Refresh; Errors}
exit
}
#region Protection
3 years ago
<#
Checkings. If you want disable a warning message about whether you've customized the preset file remove the Warning argument
Please, do not comment out this function
3 years ago
Проверки
Пожалуйста, не комментируйте данную функцию
#>
Checkings -Warning
<#
Enable script logging. Log will be recorded into the script folder
To stop logging just close console or type "Stop-Transcript"
Включить логирование работы скрипта. Лог будет записываться в папку скрипта
Чтобы остановить логгирование, закройте консоль или наберите "Stop-Transcript"
#>
# Logging
# Create a restore point
# Создать точку восстановления
CreateRestorePoint
#endregion Protection
#region Privacy & Telemetry
# Disable the DiagTrack service, and block connection for the Unified Telemetry Client Outbound Traffic
# Отключить службу DiagTrack и заблокировать соединение для исходящего трафик клиента единой телеметрии
DiagTrackService -Disable
# Enable the DiagTrack service, and allow connection for the Unified Telemetry Client Outbound Traffic
# Включить службу DiagTrack и разрешить соединение для исходящего трафик клиента единой телеметрии
# DiagTrackService -Enable
# Set the OS level of diagnostic data gathering to minimum
# Установить уровень сбора диагностических сведений ОС на минимальный
4 years ago
DiagnosticDataLevel -Minimal
# Set the default OS level of diagnostic data gathering
# Установить уровень сбора диагностических сведений ОС по умолчанию
4 years ago
# DiagnosticDataLevel -Default
3 years ago
# Turn off the Windows Error Reporting
# Отключить запись отчетов об ошибках Windows
4 years ago
ErrorReporting -Disable
3 years ago
# Turn on the Windows Error Reporting (default value)
# Включить отчеты об ошибках Windows (значение по умолчанию)
4 years ago
# ErrorReporting -Enable
3 years ago
# Change the Windows feedback frequency to "Never"
# Изменить частоту формирования отзывов на "Никогда"
4 years ago
WindowsFeedback -Disable
3 years ago
# Change the Windows Feedback frequency to "Automatically" (default value)
# Изменить частоту формирования отзывов на "Автоматически" (значение по умолчанию)
4 years ago
# WindowsFeedback -Enable
3 years ago
# Turn off the diagnostics tracking scheduled tasks
# Отключить задачи диагностического отслеживания
4 years ago
ScheduledTasks -Disable
3 years ago
# Turn on the diagnostics tracking scheduled tasks (default value)
4 years ago
# Включить задачи диагностического отслеживания (значение по умолчанию)
# ScheduledTasks -Enable
3 years ago
# Do not use sign-in info to automatically finish setting up device and reopen apps after an update or restart
# Не использовать данные для входа для автоматического завершения настройки устройства и открытия приложений после перезапуска или обновления
4 years ago
SigninInfo -Disable
3 years ago
# Use sign-in info to automatically finish setting up device and reopen apps after an update or restart (default value)
# Использовать данные для входа для автоматического завершения настройки устройства и открытия приложений после перезапуска или обновления (значение по умолчанию)
4 years ago
# SigninInfo -Enable
3 years ago
# Do not let websites provide locally relevant content by accessing language list
# Не позволять веб-сайтам предоставлять местную информацию за счет доступа к списку языков
4 years ago
LanguageListAccess -Disable
3 years ago
# Let websites provide locally relevant content by accessing language list (default value)
# Позволять веб-сайтам предоставлять местную информацию за счет доступа к списку языков (значение по умолчанию)
4 years ago
# LanguageListAccess -Enable
3 years ago
# Do not allow apps to use advertising ID
# Не разрешать приложениям использовать идентификатор рекламы
4 years ago
AdvertisingID -Disable
3 years ago
# Allow apps to use advertising ID (default value)
# Разрешать приложениям использовать идентификатор рекламы (значение по умолчанию)
4 years ago
# AdvertisingID -Enable
3 years ago
# Do not let apps on other devices open and message apps on this device, and vice versa
# Не разрешать приложениям на других устройствах запускать приложения и отправлять сообщения на этом устройстве и наоборот
4 years ago
ShareAcrossDevices -Disable
3 years ago
# Let apps on other devices open and message apps on this device, and vice versa (default value)
# Разрешать приложениям на других устройствах запускать приложения и отправлять сообщения на этом устройстве и наоборот (значение по умолчанию)
4 years ago
# ShareAcrossDevices -Enable
3 years ago
# Hide the Windows welcome experiences after updates and occasionally when I sign in to highlight what's new and suggested
# Скрывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях
4 years ago
WindowsWelcomeExperience -Hide
3 years ago
# Show the Windows welcome experiences after updates and occasionally when I sign in to highlight what's new and suggested (default value)
# Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях (значение по умолчанию)
4 years ago
# WindowsWelcomeExperience -Show
3 years ago
# Get tip, trick, and suggestions as you use Windows (default value)
# Получать советы, подсказки и рекомендации при использованию Windows (значение по умолчанию)
4 years ago
WindowsTips -Enable
3 years ago
# Do not get tip, trick, and suggestions as you use Windows
# Не получать советы, подсказки и рекомендации при использованию Windows
4 years ago
# WindowsTips -Disable
3 years ago
# Hide the suggested content in the Settings app
# Скрывать рекомендуемое содержимое в приложении "Параметры"
4 years ago
SettingsSuggestedContent -Hide
3 years ago
# Show the suggested content in the Settings app (default value)
# Показывать рекомендуемое содержимое в приложении "Параметры" (значение по умолчанию)
4 years ago
# SettingsSuggestedContent -Show
3 years ago
# Turn off the automatic installing suggested apps
# Отключить автоматическую установку рекомендованных приложений
4 years ago
AppsSilentInstalling -Disable
3 years ago
# Turn on automatic installing suggested apps (default value)
# Включить автоматическую установку рекомендованных приложений (значение по умолчанию)
4 years ago
# AppsSilentInstalling -Enable
3 years ago
# Do not suggest ways I can finish setting up my device to get the most out of Windows
# Не предлагать способы завершения настройки устройства для максимально эффективного использования Windows
4 years ago
WhatsNewInWindows -Disable
4 years ago
# Suggest ways I can finish setting up my device to get the most out of Windows (default value)
# Предлагать способы завершения настройки устройства для максимально эффективного использования Windows (значение по умолчанию)
# WhatsNewInWindows -Enable
3 years ago
# Do not offer tailored experiences based on the diagnostic data setting
# Не предлагать персонализированные возможности, основанные на выбранном параметре диагностических данных
4 years ago
TailoredExperiences -Disable
4 years ago
# Offer tailored experiences based on the diagnostic data setting (default value)
# Предлагать персонализированные возможности, основанные на выбранном параметре диагностических данных (значение по умолчанию)
# TailoredExperiences -Enable
# Disable Bing search in the Start Menu (for the USA only)
# Отключить в меню "Пуск" поиск через Bing (только для США)
4 years ago
BingSearch -Disable
3 years ago
# Enable Bing search in the Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
4 years ago
# BingSearch -Enable
#endregion Privacy & Telemetry
#region UI & Personalization
3 years ago
# Show the "This PC" icon on Desktop
# Отобразить значок "Этот компьютер" на рабочем столе
4 years ago
ThisPC -Show
3 years ago
# Hide the "This PC" icon on Desktop (default value)
# Скрывать "Этот компьютер" на рабочем столе (значение по умолчанию)
4 years ago
# ThisPC -Hide
3 years ago
# Do not use check boxes to select items
# Не использовать флажки для выбора элементов
4 years ago
CheckBoxes -Disable
3 years ago
# Use check boxes to select items (default value)
# Использовать флажки для выбора элементов (значение по умолчанию)
4 years ago
# CheckBoxes -Enable
3 years ago
# Show hidden files, folders, and drives
# Отображать скрытые файлы, папки и диски
4 years ago
HiddenItems -Enable
3 years ago
# Do not show hidden files, folders, and drives (default value)
# Не отображать скрытые файлы, папки и диски (значение по умолчанию)
4 years ago
# HiddenItems -Disable
3 years ago
# Show file name extensions
# Отображать расширения имён файлов
4 years ago
FileExtensions -Show
3 years ago
# Hide file name extensions (default value)
# Скрывать расширения имён файлов файлов (значение по умолчанию)
4 years ago
# FileExtensions -Hide
3 years ago
# Do not hide folder merge conflicts
# Не скрывать конфликт слияния папок
4 years ago
MergeConflicts -Show
3 years ago
# Hide folder merge conflicts (default value)
# Скрывать конфликт слияния папок (значение по умолчанию)
4 years ago
# MergeConflicts -Hide
3 years ago
# Open File Explorer to: "This PC"
# Открывать проводник для: "Этот компьютер"
4 years ago
OpenFileExplorerTo -ThisPC
# Open File Explorer to: Quick access (default value)
3 years ago
# Открывать проводник для: "Быстрый доступ" (значение по умолчанию)
4 years ago
# OpenFileExplorerTo -QuickAccess
3 years ago
# Hide Cortana button on the taskbar
# Скрывать кнопку Кортаны на панели задач
4 years ago
CortanaButton -Hide
3 years ago
# Show Cortana button on the taskbar (default value)
# Показать кнопку Кортаны на панели задач (значение по умолчанию)
4 years ago
# CortanaButton -Show
3 years ago
# Do not show sync provider notification within File Explorer
# Не показывать уведомления поставщика синхронизации в проводнике
4 years ago
OneDriveFileExplorerAd -Hide
3 years ago
# Show sync provider notification within File Explorer (default value)
# Показывать уведомления поставщика синхронизации в проводнике (значение по умолчанию)
4 years ago
# OneDriveFileExplorerAd -Show
3 years ago
# Hide Task View button on the taskbar
# Скрывать кнопку Просмотра задач
4 years ago
TaskViewButton -Hide
3 years ago
# Show Task View button on the taskbar (default value)
# Показывать кнопку Просмотра задач (значение по умолчанию)
4 years ago
# TaskViewButton -Show
3 years ago
# Hide People button on the taskbar
# Скрывать панель "Люди" на панели задач
4 years ago
PeopleTaskbar -Hide
3 years ago
# Show People button on the taskbar (default value)
# Показывать панель "Люди" на панели задач (значение по умолчанию)
4 years ago
# PeopleTaskbar -Show
3 years ago
# Show seconds on the taskbar clock
# Отображать секунды в системных часах на панели задач
4 years ago
SecondsInSystemClock -Show
3 years ago
# Hide seconds on the taskbar clock (default value)
# Скрывать секунды в системных часах на панели задач (значение по умолчанию)
4 years ago
# SecondsInSystemClock -Hide
3 years ago
# When I snap a window, do not show what I can snap next to it
# При прикреплении окна не показывать, что можно прикрепить рядом с ним
4 years ago
SnapAssist -Disable
3 years ago
# When I snap a window, show what I can snap next to it (default value)
# При прикреплении окна показывать, что можно прикрепить рядом с ним (значение по умолчанию)
4 years ago
# SnapAssist -Enable
# Show the file transfer dialog box in the detailed mode
# Отображать диалоговое окно передачи файлов в развернутом виде
4 years ago
FileTransferDialog -Detailed
# Show the file transfer dialog box in the compact mode (default value)
# Отображать диалоговое окно передачи файлов в свернутом виде (значение по умолчанию)
4 years ago
# FileTransferDialog -Compact
3 years ago
# Expand the File Explorer ribbon
3 years ago
# Развернуть ленту проводника
4 years ago
FileExplorerRibbon -Expanded
3 years ago
# Minimize the File Explorer ribbon (default value)
3 years ago
# Свернуть ленту проводника (значение по умолчанию)
# FileExplorerRibbon -Minimized
# Display the recycle bin files delete confirmation dialog
# Запрашивать подтверждение на удаление файлов в корзину
4 years ago
RecycleBinDeleteConfirmation -Enable
# Do not display the recycle bin files delete confirmation dialog (default value)
4 years ago
# Не запрашивать подтверждение на удаление файлов в корзину (значение по умолчанию)
# RecycleBinDeleteConfirmation -Disable
# Hide the "3D Objects" folder in "This PC" and Quick access
3 years ago
# Скрыть папку "Объемные объекты" в "Этот компьютер" и панели быстрого доступа
4 years ago
3DObjects -Hide
# Show the "3D Objects" folder in "This PC" and Quick access (default value)
3 years ago
# Отобразить папку "Объемные объекты" в "Этот компьютер" и панели быстрого доступа (значение по умолчанию)
4 years ago
# 3DObjects -Show
# Hide frequently used folders in Quick access
3 years ago
# Скрыть недавно используемые папки на панели быстрого доступа
4 years ago
QuickAccessFrequentFolders -Hide
# Show frequently used folders in Quick access (default value)
# Показать часто используемые папки на панели быстрого доступа (значение по умолчанию)
4 years ago
# QuickAccessFrequentFolders -Show
3 years ago
# Do not show recently used files in Quick access
# Не показывать недавно использовавшиеся файлы на панели быстрого доступа
4 years ago
QuickAccessRecentFiles -Hide
3 years ago
# Show recently used files in Quick access (default value)
# Показать недавно использовавшиеся файлы на панели быстрого доступа (значение по умолчанию)
4 years ago
# QuickAccessRecentFiles -Show
3 years ago
# Hide the search on the taskbar
# Скрыть поле или значок поиска на панели задач
4 years ago
TaskbarSearch -Hide
3 years ago
# Show the search icon on the taskbar
# Показать значок поиска на панели задач
4 years ago
# TaskbarSearch -SearchIcon
3 years ago
# Show the search box on the taskbar (default value)
# Показать поле поиска на панели задач (значение по умолчанию)
4 years ago
# TaskbarSearch -SearchBox
# Do not show the Windows Ink Workspace button on the taskbar
3 years ago
# Не показывать кнопку Windows Ink Workspace на панели задач
4 years ago
WindowsInkWorkspace -Hide
# Show Windows Ink Workspace button on the taskbar (default value)
3 years ago
# Показать кнопку Windows Ink Workspace на панели задач (значение по умолчанию)
4 years ago
# WindowsInkWorkspace -Show
3 years ago
# Always show all icons in the notification area
# Всегда отображать все значки в области уведомлений
4 years ago
TrayIcons -Show
3 years ago
# Do not show all icons in the notification area (default value)
# Не отображать все значки в области уведомлений (значение по умолчанию)
4 years ago
# TrayIcons -Hide
3 years ago
# Hide the Meet Now icon in the notification area
# Скрыть иконку "Провести собрание" в трее
MeetNow -Hide
# Show the Meet Now icon in the notification area
# Отобразить иконку "Провести собрание" в трее
# MeetNow -Show
3 years ago
# Unpin Microsoft Edge and Microsoft Store from the taskbar
3 years ago
# Открепить Microsoft Edge и Microsoft Store от панели задач
UnpinTaskbarEdgeStore
3 years ago
# View the Control Panel icons by: large icons
# Просмотр иконок Панели управления как: крупные значки
4 years ago
ControlPanelView -LargeIcons
3 years ago
# View the Control Panel icons by: small icons
# Просмотр иконок Панели управления как: маленькие значки
# ControlPanelView -SmallIcons
# View the Control Panel icons by: category (default value)
# Просмотр иконок Панели управления как: категория (значение по умолчанию)
4 years ago
# ControlPanelView -Category
3 years ago
# Set the Windows mode color scheme to the dark
# Установить цвет режима Windows по умолчанию на темный
4 years ago
WindowsColorScheme -Dark
3 years ago
# Set the Windows mode color scheme to the light
# Установить режим цвета для Windows на светлый
4 years ago
# WindowsColorScheme -Light
# Set the app mode color scheme to the dark
# Установить цвет режима приложений на темный
4 years ago
AppMode -Dark
# Set the app mode color scheme to the light
# Установить цвет режима приложений на светлый
4 years ago
# AppMode -Light
# Do not show the "New App Installed" indicator
# Не показывать уведомление "Установлено новое приложение"
4 years ago
NewAppInstalledNotification -Hide
4 years ago
# Show the "New App Installed" indicator (default value)
# Показывать уведомление "Установлено новое приложение" (значение по умолчанию)
# NewAppInstalledNotification -Show
3 years ago
# Hide first sign-in animation after the upgrade
4 years ago
# Скрывать анимацию при первом входе в систему после обновления
FirstLogonAnimation -Disable
3 years ago
# Show first sign-in animation after the upgrade (default value)
4 years ago
# Показывать анимацию при первом входе в систему после обновления (значение по умолчанию)
# FirstLogonAnimation -Enable
3 years ago
# Set the quality factor of the JPEG desktop wallpapers to maximum
# Установить коэффициент качества обоев рабочего стола в формате JPEG на максимальный
4 years ago
JPEGWallpapersQuality -Max
3 years ago
# Set the quality factor of the JPEG desktop wallpapers to default
# Установить коэффициент качества обоев рабочего стола в формате JPEG по умолчанию
4 years ago
# JPEGWallpapersQuality -Default
3 years ago
# Start Task Manager in expanded mode
# Запускать Диспетчера задач в развернутом виде
4 years ago
TaskManagerWindow -Expanded
3 years ago
# Start Task Manager in compact mode (default value)
# Запускать Диспетчера задач в свернутом виде (значение по умолчанию)
4 years ago
# TaskManagerWindow -Compact
# Show a notification when your PC requires a restart to finish updating
# Показывать уведомление, когда компьютеру требуется перезагрузка для завершения обновления
4 years ago
RestartNotification -Show
4 years ago
# Do not show a notification when your PC requires a restart to finish updating (default value)
# Не показывать уведомление, когда компьютеру требуется перезагрузка для завершения обновления (значение по умолчанию)
# RestartNotification -Hide
3 years ago
# Do not add the "- Shortcut" suffix to the file name of created shortcuts
# Нe дoбaвлять "- яpлык" к имени coздaвaeмых яpлыков
4 years ago
ShortcutsSuffix -Disable
3 years ago
# Add the "- Shortcut" suffix to the file name of created shortcuts (default value)
# Дoбaвлять "- яpлык" к имени coздaвaeмых яpлыков (значение по умолчанию)
4 years ago
# ShortcutsSuffix -Enable
3 years ago
# Use the PrtScn button to open screen snipping
# Использовать кнопку PRINT SCREEN, чтобы запустить функцию создания фрагмента экрана
4 years ago
PrtScnSnippingTool -Enable
3 years ago
# Do not use the PrtScn button to open screen snipping (default value)
# Не использовать кнопку PRINT SCREEN, чтобы запустить функцию создания фрагмента экрана (значение по умолчанию)
4 years ago
# PrtScnSnippingTool -Disable
3 years ago
# Let me use a different input method for each app window
# Позволить выбирать метод ввода для каждого окна
AppsLanguageSwitch -Enable
3 years ago
# Do not let use a different input method for each app window (default value)
# Не позволять выбирать метод ввода для каждого окна (значение по умолчанию)
# AppsLanguageSwitch -Disable
#endregion UI & Personalization
#region OneDrive
# Uninstall OneDrive
# Удалить OneDrive
4 years ago
OneDrive -Uninstall
3 years ago
# Install OneDrive (default value)
# Установить OneDrive (значение по умолчанию)
4 years ago
# OneDrive -Install
#endregion OneDrive
#region System
4 years ago
#region StorageSense
3 years ago
# Turn on Storage Sense
# Включить Контроль памяти
4 years ago
StorageSense -Enable
3 years ago
# Turn off Storage Sense (default value)
# Выключить Контроль памяти (значение по умолчанию)
4 years ago
# StorageSense -Disable
3 years ago
# Run Storage Sense every month
# Запускать Контроль памяти каждый месяц
4 years ago
StorageSenseFrequency -Month
3 years ago
# Run Storage Sense during low free disk space (default value)
# Запускать Контроль памяти, когда остается мало место на диске (значение по умолчанию)
4 years ago
# StorageSenseFrequency -Default
3 years ago
# Delete temporary files that apps aren't using
# Удалять временные файлы, не используемые в приложениях
4 years ago
StorageSenseTempFiles -Enable
3 years ago
# Do not delete temporary files that apps aren't using
# Не удалять временные файлы, не используемые в приложениях
4 years ago
# StorageSenseTempFiles -Disable
3 years ago
# Delete files in recycle bin if they have been there for over 30 days
# Удалять файлы из корзины, если они находятся в корзине более 30 дней
4 years ago
StorageSenseRecycleBin -Enable
3 years ago
# Do not delete files in recycle bin if they have been there for over 30 days
# Не удалять файлы из корзины, если они находятся в корзине более 30 дней
4 years ago
# StorageSenseRecycleBin -Disable
#endregion StorageSense
3 years ago
# Disable hibernation
# Отключить режим гибернации
4 years ago
Hibernate -Disable
4 years ago
# Enable hibernate (default value)
# Включить режим гибернации (значение по умолчанию)
# Hibernate -Enable
3 years ago
# Change the %TEMP% environment variable path to "%SystemDrive%\Temp"
# Изменить путь переменной среды для %TEMP% на "%SystemDrive%\Temp"
TempFolder -SystemDrive
3 years ago
# Change %TEMP% environment variable path to "%LOCALAPPDATA%\Temp" (default value)
# Изменить путь переменной среды для %TEMP% на "LOCALAPPDATA%\Temp" (значение по умолчанию)
# TempFolder -Default
3 years ago
# Disable the Windows 260 characters path limit
# Отключить ограничение Windows на 260 символов в пути
4 years ago
Win32LongPathLimit -Disable
3 years ago
# Enable the Windows 260 character path limit (default value)
4 years ago
# Включить ограничение Windows на 260 символов в пути (значение по умолчанию)
# Win32LongPathLimit -Enable
# Display the Stop error information on the BSoD
# Отображать Stop-ошибку при появлении BSoD
4 years ago
BSoDStopError -Enable
4 years ago
# Do not display the Stop error information on the BSoD (default value)
# Не отображать Stop-ошибку при появлении BSoD (значение по умолчанию)
# BSoDStopError -Disable
3 years ago
# Choose when to be notified about changes to your computer: never notify
# Настройка уведомления об изменении параметров компьютера: никогда не уведомлять
4 years ago
AdminApprovalMode -Disable
3 years ago
# Choose when to be notified about changes to your computer: notify me only when apps try to make changes to my computer (default value)
# Настройка уведомления об изменении параметров компьютера: уведомлять меня только при попытках приложений внести изменения в компьютер (значение по умолчанию)
4 years ago
# AdminApprovalMode -Enable
# Turn on access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled
# Включить доступ к сетевым дискам при включенном режиме одобрения администратором при доступе из программ, запущенных с повышенными правами
4 years ago
MappedDrivesAppElevatedAccess -Enable
4 years ago
# Turn off access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled (default value)
# Выключить доступ к сетевым дискам при включенном режиме одобрения администратором при доступе из программ, запущенных с повышенными правами (значение по умолчанию)
# MappedDrivesAppElevatedAccess -Disable
3 years ago
# Turn off Delivery Optimization
# Выключить оптимизацию доставки
4 years ago
DeliveryOptimization -Disable
3 years ago
# Turn on Delivery Optimization (default value)
# Включить оптимизацию доставки (значение по умолчанию)
4 years ago
# DeliveryOptimization -Enable
# Always wait for the network at computer startup and logon for workgroup networks
# Всегда ждать сеть при запуске и входе в систему для рабочих групп
4 years ago
WaitNetworkStartup -Enable
4 years ago
# Never wait for the network at computer startup and logon for workgroup networks (default value)
# Никогда не ждать сеть при запуске и входе в систему для рабочих групп (значение по умолчанию)
# WaitNetworkStartup -Disable
3 years ago
# Do not let Windows decide which printer should be the default one
# Не разрешать Windows решать, какой принтер должен использоваться по умолчанию
4 years ago
WindowsManageDefaultPrinter -Disable
3 years ago
# Let Windows decide which printer should be the default one (default value)
# Разрешать Windows решать, какой принтер должен использоваться по умолчанию (значение по умолчанию)
4 years ago
# WindowsManageDefaultPrinter -Enable
<#
4 years ago
Disable the Windows features using the pop-up dialog box
Отключить компоненты Windows, используя всплывающее диалоговое окно
3 years ago
If you want to leave "Multimedia settings" element in the advanced settings of Power Options do not disable the "MediaPlayback" feature
Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не удаляйте отключайте "MediaPlayback"
#>
4 years ago
WindowsFeatures -Disable
4 years ago
# Enable the Windows features using the pop-up dialog box
# Включить компоненты Windows, используя всплывающее диалоговое окно
4 years ago
# WindowsFeatures -Enable
<#
3 years ago
Uninstall optional features using the pop-up dialog box
Удалить дополнительные компоненты, используя всплывающее диалоговое окно
4 years ago
If you want to leave "Multimedia settings" element in the advanced settings of Power Options do not uninstall the "MediaPlayback" feature
Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не удаляйте компонент "MediaPlayback"
#>
4 years ago
WindowsCapabilities -Uninstall
3 years ago
# Install optional features using the pop-up dialog box
# Установить дополнительные компоненты, используя всплывающее диалоговое окно
4 years ago
# WindowsCapabilities -Install
3 years ago
# Receive updates for other Microsoft products when you update Windows
# При обновлении Windows получать обновления для других продуктов Майкрософт
4 years ago
UpdateMicrosoftProducts -Enable
3 years ago
# Do not receive updates for other Microsoft products when you update Windows (default value)
# При обновлении Windows не получать обновления для других продуктов Майкрософт (значение по умолчанию)
4 years ago
# UpdateMicrosoftProducts -Disable
# Set the power management scheme on "High performance" if device is a desktop
# Установить схему управления питанием на "Высокая производительность", если устройство является стационарным ПК
4 years ago
PowerManagementScheme -High
# Set the power management scheme on "Balanced" (default value)
# Установить схему управления питанием на "Сбалансированная" (значение по умолчанию)
4 years ago
# PowerManagementScheme -Balanced
# Use latest installed .NET runtime for all apps
# Использовать последнюю установленную среду выполнения .NET для всех приложений
4 years ago
LatestInstalled.NET -Enable
4 years ago
# Do not use latest installed .NET runtime for all apps (default value)
# Не использовать последнюю установленную версию .NET для всех приложений (значение по умолчанию)
# LatestInstalled.NET -Disable
3 years ago
# Do not allow the computer to turn off the network adapters to save power
# Запретить отключение всех сетевых адаптеров для экономии энергии
4 years ago
PCTurnOffDevice -Disable
4 years ago
# Allow the computer to turn off the network adapters to save power (default value)
# Разрешить отключение всех сетевых адаптеров для экономии энергии (значение по умолчанию)
# PCTurnOffDevice -Enable
3 years ago
# Override for default input method: English
# Переопределить метод ввода по умолчанию: английский
4 years ago
SetInputMethod -English
3 years ago
# Override for default input method: use language list (default value)
3 years ago
# Переопределить метод ввода по умолчанию: использовать список языков (значение по умолчанию)
4 years ago
# SetInputMethod -Default
<#
3 years ago
Move user folders location to the root of any drive using the interactive menu
User files or folders won't me moved to a new location. Move them manually
They're located in the %SystemDrive%\Users\%Username% folder by default
3 years ago
Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню
Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную
По умолчанию они располагаются в папке %SystemDrive%\Users\%Username%
#>
SetUserShellFolderLocation -Root
<#
3 years ago
Select folders for user folders location manually using a folder browser dialog
User files or folders won't me moved to a new location. Move them manually
They're located in the %SystemDrive%\Users\%Username% folder by default
3 years ago
Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок"
Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную
По умолчанию они располагаются в папке %SystemDrive%\Users\%Username%
#>
# SetUserShellFolderLocation -Custom
<#
3 years ago
Change user folders location to the default values
User files or folders won't me moved to the new location. Move them manually
They're located in the %SystemDrive%\Users\%Username% folder by default
3 years ago
Изменить расположение пользовательских папок на значения по умолчанию
Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную
По умолчанию они располагаются в папке %SystemDrive%\Users\%Username%
#>
# SetUserShellFolderLocation -Default
3 years ago
# Save screenshots by pressing Win+PrtScr on the Desktop
# Сохранять скриншоты по нажатию Win+PrtScr на рабочий столе
4 years ago
WinPrtScrFolder -Desktop
3 years ago
# Save screenshots by pressing Win+PrtScr on the Pictures folder (default value)
# Cохранять скриншоты по нажатию Win+PrtScr в папку "Изображения" (значение по умолчанию)
4 years ago
# WinPrtScrFolder -Default
<#
Run troubleshooters automatically, then notify
In order this feature to work the OS level of diagnostic data gathering will be set to "Optional diagnostic data", and the error reporting feature will be turned on
Автоматически запускать средства устранения неполадок, а затем уведомлять
Чтобы заработала данная функция, уровень сбора диагностических сведений ОС будет установлен на "Необязательные диагностические данные" и включится создание отчетов об ошибках Windows
#>
4 years ago
RecommendedTroubleshooting -Automatic
<#
Ask me before running troubleshooters (default value)
In order this feature to work the OS level of diagnostic data gathering will be set to "Optional diagnostic data"
Спрашивать перед запуском средств устранения неполадок (значение по умолчанию)
Чтобы заработала данная функция, уровень сбора диагностических сведений ОС будет установлен на "Необязательные диагностические данные" и включится создание отчетов об ошибках Windows
#>
4 years ago
# RecommendedTroubleshooting -Default
3 years ago
# Launch folder windows in a separate process
# Запускать окна с папками в отдельном процессе
4 years ago
FoldersLaunchSeparateProcess -Enable
3 years ago
# Do not launch folder windows in a separate process (default value)
# Не запускать окна с папками в отдельном процессе (значение по умолчанию)
4 years ago
# FoldersLaunchSeparateProcess -Disable
# Disable and delete reserved storage after the next update installation
# Отключить и удалить зарезервированное хранилище после следующей установки обновлений
4 years ago
ReservedStorage -Disable
4 years ago
# Enable reserved storage (default value)
# Включить зарезервированное хранилище (значение по умолчанию)
# ReservedStorage -Enable
3 years ago
# Disable help look up via F1
# Отключить открытие справки по нажатию F1
4 years ago
F1HelpPage -Disable
3 years ago
# Enable help look up via F1 (default value)
# Включить открытие справки по нажатию F1 (значение по умолчанию)
4 years ago
# F1HelpPage -Enable
4 years ago
# Enable Num Lock at startup
# Включить Num Lock при загрузке
4 years ago
NumLock -Enable
4 years ago
# Disable Num Lock at startup (default value)
# Выключить Num Lock при загрузке (значение по умолчанию)
# NumLock -Disable
# Enable Caps Lock
# Включить Caps Lock
# CapsLock -Enable
# Disable Caps Lock (default value)
# Выключить Caps Lock (значение по умолчанию)
# CapsLock -Disable
3 years ago
# Disable StickyKey after tapping the Shift key 5 times
# Выключить залипание клавиши Shift после 5 нажатий
4 years ago
StickyShift -Disable
3 years ago
# Enable StickyKey after tapping the Shift key 5 times (default value)
# Включить залипание клавиши Shift после 5 нажатий (значение по умолчанию)
4 years ago
# StickyShift -Enable
3 years ago
# Disable AutoPlay for all media and devices
# Выключать автозапуск для всех носителей и устройств
4 years ago
Autoplay -Disable
3 years ago
# Enable AutoPlay for all media and devices (default value)
# Включить автозапуск для всех носителей и устройств (значение по умолчанию)
4 years ago
# Autoplay -Enable
# Disable thumbnail cache removal
# Отключить удаление кэша миниатюр
4 years ago
ThumbnailCacheRemoval -Disable
4 years ago
# Enable thumbnail cache removal (default value)
# Включить удаление кэша миниатюр (значение по умолчанию)
# ThumbnailCacheRemoval -Enable
3 years ago
# Enable automatically saving my restartable apps when signing out and restart them after signing in
# Включить автоматическое сохранение моих перезапускаемых приложений при выходе из системы и перезапускать их после выхода
4 years ago
SaveRestartableApps -Enable
3 years ago
# Disable automatically saving my restartable apps when signing out and restart them after signing in (default value)
# Выключить автоматическое сохранение моих перезапускаемых приложений при выходе из системы и перезапускать их после выхода (значение по умолчанию)
4 years ago
# SaveRestartableApps -Disable
# Enable "Network Discovery" and "File and Printers Sharing" for workgroup networks
# Включить сетевое обнаружение и общий доступ к файлам и принтерам для рабочих групп
4 years ago
NetworkDiscovery -Enable
4 years ago
# Disable "Network Discovery" and "File and Printers Sharing" for workgroup networks (default value)
# Выключить сетевое обнаружение и общий доступ к файлам и принтерам для рабочих групп (значение по умолчанию)
# NetworkDiscovery -Disable
# Automatically adjust active hours for me based on daily usage
# Автоматически изменять период активности для этого устройства на основе действий
4 years ago
SmartActiveHours -Enable
4 years ago
# Do not automatically adjust active hours for me based on daily usage (default value)
# Не изменять автоматически период активности для этого устройства на основе действий (значение по умолчанию)
# SmartActiveHours -Disable
# Restart this device as soon as possible when a restart is required to install an update
# Перезапускать это устройство как можно быстрее, если для установки обновления требуется перезагрузка
4 years ago
DeviceRestartAfterUpdate -Enable
# Do not restart this device as soon as possible when a restart is required to install an update (default value)
3 years ago
# Не перезапускать это устройство как можно быстрее, если для установки обновления требуется перезагрузка (значение по умолчанию)
4 years ago
# DeviceRestartAfterUpdate -Disable
3 years ago
<#
Register app, calculate hash, and set as default for specific extension without the "How do you want to open this?" pop-up
3 years ago
Зарегистрировать приложение, вычислить хэш и установить как приложение по умолчанию для конкретного расширения без всплывающего окна "Каким образом вы хотите открыть этот файл?"
3 years ago
Examples:
Примеры:
Set-Association -ProgramPath "C:\SumatraPDF.exe" -Extension .pdf -Icon "shell32.dll,100"
3 years ago
Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
3 years ago
#>
3 years ago
# Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
#endregion System
4 years ago
#region WSL
4 years ago
# Install the Windows Subsystem for Linux (WSL)
# Установить подсистему Windows для Linux (WSL)
4 years ago
# WSL -Enable
# Uninstall the Windows Subsystem for Linux (WSL)
# Удалить подсистему Windows для Linux (WSL)
# WSL -Disable
<#
Download and install the Linux kernel update package
Set WSL 2 as the default version when installing a new Linux distribution
Run the function only after WSL installed and PC restart
Скачать и установить пакет обновления ядра Linux
Установить WSL 2 как версию по умолчанию при установке нового дистрибутива Linux
Выполните функцию только после установки WSL и перезагрузка ПК
4 years ago
#>
# EnableWSL2
#endregion WSL
#region Start menu
4 years ago
# Hide recently added apps in the Start menu
# Скрывать недавно добавленные приложения в меню "Пуск"
RecentlyAddedApps -Hide
4 years ago
# Show recently added apps in the Start menu (default value)
# Показывать недавно добавленные приложения в меню "Пуск" (значение по умолчанию)
# RecentlyAddedApps -Show
4 years ago
# Hide app suggestions in the Start menu
# Скрывать рекомендации в меню "Пуск"
AppSuggestions -Hide
4 years ago
# Show app suggestions in the Start menu (default value)
# Показывать рекомендации в меню "Пуск" (значение по умолчанию)
# AppSuggestions -Show
3 years ago
# Run the Windows PowerShell shortcut from the Start menu as Administrator
# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
RunPowerShellShortcut -Elevated
3 years ago
# Run the Windows PowerShell shortcut from the Start menu as user (default value)
# Запускать ярлык Windows PowerShell в меню "Пуск" от имени пользователя (значение по умолчанию)
# RunPowerShellShortcut -NonElevated
3 years ago
<#
3 years ago
Pin to Start the following links: Control Panel, Devices and Printers, PowerShell
Valid shortcuts values: ControlPanel, DevicesPrinters and PowerShell
3 years ago
Закрепить на начальном экране следующие ярлыки: Панель управдения, Устройства и принтеры, PowerShell
Валидные значения ярлыков: ControlPanel, DevicesPrinters, PowerShell
3 years ago
#>
3 years ago
PinToStart -Tiles ControlPanel, DevicesPrinters, PowerShell
<#
Unpin all tiles first and pin necessary ones
Открепить все ярлыки сначала и закрепить необходимые
#>
# PinToStart -UnpinAll -Tiles ControlPanel, DevicesPrinters, PowerShell
3 years ago
# Unpin all the Start tiles
# Открепить все ярлыки от начального экрана
3 years ago
# PinToStart -UnpinAll
#endregion Start menu
#region UWP apps
<#
4 years ago
Uninstall UWP apps using the pop-up dialog box
3 years ago
If the "For All Users" is checked apps packages will not be installed for new users
4 years ago
Удалить UWP-приложения, используя всплывающее диалоговое окно
3 years ago
Пакеты приложений не будут установлены для новых пользователей, если отмечена галочка "Для всех пользователей"
#>
UninstallUWPApps
3 years ago
<#
Uninstall UWP apps using the pop-up dialog box
If the "For All Users" is checked apps packages will not be installed for new users
The "For All Users" checkbox checked by default
Удалить UWP-приложения, используя всплывающее диалоговое окно
Пакеты приложений не будут установлены для новых пользователей, если отмечена галочка "Для всех пользователей"
Галочка "Для всех пользователей" отмечена по умолчанию
#>
# UninstallUWPApps -ForAllUsers
<#
Restore the default UWP apps using the pop-up dialog box
UWP apps can be restored only if they were uninstalled only for the current user
Восстановить стандартные UWP-приложения, используя всплывающее диалоговое окно
UWP-приложения могут быть восстановлены, только если они были удалены для текущего пользователя
#>
# RestoreUWPApps
<#
3 years ago
Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page to install this extension manually to be able to open .heic and .heif formats
4 years ago
The extension can be installed without Microsoft account
3 years ago
Открыть страницу "Расширения для видео HEVC от производителя устройства" в Microsoft Store, чтобы вручную установить расширение для открытия форматов .heic и .heif
4 years ago
Расширение может быть установлено бесплатно без учетной записи Microsoft
#>
3 years ago
# HEIF -Manual
# Download and install "HEVC Video Extensions from Device Manufacturer" to be able to open .heic and .heif formats
# Скачать и установить "Расширения для видео HEVC от производителя устройства", чтобы иметь возможность открывать форматы .heic и .heif
HEIF -Install
4 years ago
# Disable Cortana autostarting
# Выключить автозагрузку Кортана
CortanaAutostart -Disable
# Enable Cortana autostarting (default value)
4 years ago
# Включить автозагрузку Кортана (значение по умолчанию)
# CortanaAutostart -Enable
3 years ago
# Do not let UWP apps run in the background
# Не разрешать UWP-приложениям работать в фоновом режиме
BackgroundUWPApps -Disable
# Let all UWP apps run in the background (default value)
# Разрешить всем UWP-приложениям работать в фоновом режиме (значение по умолчанию)
# BackgroundUWPApps -Enable
# Check for UWP apps updates
# Проверить обновления UWP-приложений
CheckUWPAppsUpdates
#endregion UWP apps
#region Gaming
4 years ago
# Disable Xbox Game Bar
# Отключить Xbox Game Bar
4 years ago
XboxGameBar -Disable
4 years ago
# Enable Xbox Game Bar (default value)
# Включить Xbox Game Bar (значение по умолчанию)
# XboxGameBar -Enable
4 years ago
# Disable Xbox Game Bar tips
# Отключить советы Xbox Game Bar
4 years ago
XboxGameTips -Disable
4 years ago
# Enable Xbox Game Bar tips (default value)
# Включить советы Xbox Game Bar (значение по умолчанию)
# XboxGameTips -Enable
<#
Set "High performance" in graphics performance preference for an app
Only with a dedicated GPU
Установить параметры производительности графики для отдельных приложений на "Высокая производительность"
Только при наличии внешней видеокарты
#>
SetAppGraphicsPerformance
<#
Turn on hardware-accelerated GPU scheduling. Restart needed
Only with a dedicated GPU and WDDM verion is 2.7 or higher
Включить планирование графического процессора с аппаратным ускорением. Необходима перезагрузка
Только при наличии внешней видеокарты и WDDM версии 2.7 и выше
#>
4 years ago
GPUScheduling -Enable
4 years ago
# Turn off hardware-accelerated GPU scheduling (default value). Restart needed
# Выключить планирование графического процессора с аппаратным ускорением (значение по умолчанию). Необходима перезагрузка
# GPUScheduling -Disable
#endregion Gaming
#region Scheduled tasks
<#
3 years ago
Create the "Windows Cleanup" scheduled task for cleaning up Windows unused files and updates
A native interactive toast notification pops up every 30 days
The task runs every 30 days
3 years ago
Создать задачу "Windows Cleanup" по очистке неиспользуемых файлов и обновлений Windows в Планировщике заданий
Нативный интерактивный тост всплывает каждые 30 дней
Задача выполняется каждые 30 дней
#>
3 years ago
CleanupTask -Register
3 years ago
# Delete the "Windows Cleanup" and "Windows Cleanup Notification" scheduled tasks for cleaning up Windows unused files and updates
3 years ago
# Удалить задачи "Windows Cleanup" и "Windows Cleanup Notification" по очистке неиспользуемых файлов и обновлений Windows из Планировщика заданий
3 years ago
# CleanupTask -Delete
4 years ago
<#
3 years ago
Create the "SoftwareDistribution" scheduled task for cleaning up the %SystemRoot%\SoftwareDistribution\Download folder
3 years ago
The task will wait until the Windows Updates service finishes running
3 years ago
The task runs every 90 days
3 years ago
Создать задачу "SoftwareDistribution" по очистке папки %SystemRoot%\SoftwareDistribution\Download в Планировщике заданий
3 years ago
Задача будет ждать, пока служба обновлений Windows не закончит работу
3 years ago
Задача выполняется каждые 90 дней
4 years ago
#>
SoftwareDistributionTask -Register
3 years ago
# Delete the "SoftwareDistribution" scheduled task for cleaning up the %SystemRoot%\SoftwareDistribution\Download folder
3 years ago
# Удалить задачу "SoftwareDistribution" по очистке папки %SystemRoot%\SoftwareDistribution\Download из Планировщика заданий
# SoftwareDistributionTask -Delete
<#
3 years ago
Create the "Temp" scheduled task for cleaning up the %TEMP% folder
3 years ago
The task runs every 60 days
3 years ago
Создать задачу "Temp" в Планировщике заданий по очистке папки %TEMP%
Задача выполняется каждые 60 дней
#>
TempTask -Register
3 years ago
# Delete the "Temp" scheduled task for cleaning up the %TEMP% folder
3 years ago
# Удалить задачу "Temp" по очистке папки %TEMP% из Планировщика заданий
# TempTask -Delete
#endregion Scheduled tasks
#region Microsoft Defender & Security
# Enable Controlled folder access and add protected folders
# Включить контролируемый доступ к папкам и добавить защищенные папки
AddProtectedFolders
# Remove all added protected folders
# Удалить все добавленные защищенные папки
# RemoveProtectedFolders
# Allow an app through Controlled folder access
# Разрешить работу приложения через контролируемый доступ к папкам
AddAppControlledFolder
# Remove all allowed apps through Controlled folder access
# Удалить все добавленные разрешенные приложение через контролируемый доступ к папкам
# RemoveAllowedAppsControlledFolder
# Add a folder to the exclusion from Microsoft Defender scanning
# Добавить папку в список исключений сканирования Microsoft Defender
AddDefenderExclusionFolder
# Remove all excluded folders from Microsoft Defender scanning
# Удалить все папки из списка исключений сканирования Microsoft Defender
# RemoveDefenderExclusionFolders
# Add a file to the exclusion from Microsoft Defender scanning
# Добавить файл в список исключений сканирования Microsoft Defender
AddDefenderExclusionFile
# Remove all excluded files from Microsoft Defender scanning
# Удалить все файлы из списка исключений сканирования Microsoft Defender
# RemoveDefenderExclusionFiles
4 years ago
# Enable Microsoft Defender Exploit Guard network protection
# Включить защиту сети в Microsoft Defender Exploit Guard
4 years ago
NetworkProtection -Enable
4 years ago
# Disable Microsoft Defender Exploit Guard network protection (default value)
# Выключить защиту сети в Microsoft Defender Exploit Guard
4 years ago
# NetworkProtection -Disable
4 years ago
# Enable detection for potentially unwanted applications and block them
# Включить обнаружение потенциально нежелательных приложений и блокировать их
4 years ago
PUAppsDetection -Enable
4 years ago
# Disable detection for potentially unwanted applications and block them (default value)
# Выключить обнаружение потенциально нежелательных приложений и блокировать их (значение по умолчанию)
# PUAppsDetection -Disable
<#
Enable sandboxing for Microsoft Defender
There is a bug in KVM with QEMU: enabling this function causes VM to freeze up during the loading phase of Windows
Включить песочницу для Microsoft Defender
3 years ago
В KVM с QEMU присутствует баг: включение этой функции приводит ВМ к зависанию во время загрузки Windows
#>
4 years ago
DefenderSandbox -Enable
4 years ago
# Disable sandboxing for Microsoft Defender (default value)
# Выключить песочницу для Microsoft Defender (значение по умолчанию)
# DefenderSandbox -Disable
# Dismiss Microsoft Defender offer in the Windows Security about signing in Microsoft account
# Отклонить предложение Microsoft Defender в "Безопасность Windows" о входе в аккаунт Microsoft
DismissMSAccount
# Dismiss Microsoft Defender offer in the Windows Security about turning on the SmartScreen filter for Microsoft Edge
# Отклонить предложение Microsoft Defender в "Безопасность Windows" включить фильтр SmartScreen для Microsoft Edge
DismissSmartScreenFilter
4 years ago
# Enable events auditing generated when a process is created or starts
# Включить аудит событий, возникающих при создании или запуске процесса
4 years ago
AuditProcess -Enable
4 years ago
# Disable events auditing generated when a process is created or starts (default value)
# Выключить аудит событий, возникающих при создании или запуске процесса (значение по умолчанию)
# AuditProcess -Disable
<#
Include command line in process creation events
In order this feature to work events auditing will be enabled ("AuditProcess -Enable" function)
Включать командную строку в событиях создания процесса
Для того, чтобы работал данный функционал, будет включен аудит событий (функция "AuditProcess -Enable")
#>
4 years ago
AuditCommandLineProcess -Enable
4 years ago
# Do not include command line in process creation events (default value)
# Не включать командную строку в событиях создания процесса (значение по умолчанию)
# AuditCommandLineProcess -Disable
<#
Create "Process Creation" Event Viewer Custom View
In order this feature to work events auditing ("AuditProcess -Enable" function) and command line in process creation events will be enabled
Создать настаиваемое представление "Создание процесса" в Просмотре событий
Для того, чтобы работал данный функционал, буден включен аудит событий (функция "AuditProcess -Enable") и командной строки в событиях создания процесса
#>
4 years ago
EventViewerCustomView -Enable
4 years ago
# Remove "Process Creation" Event Viewer Custom View (default value)
# Удалить настаиваемое представление "Создание процесса" в Просмотре событий (значение по умолчанию)
# EventViewerCustomView -Disable
4 years ago
# Enable logging for all Windows PowerShell modules
# Включить ведение журнала для всех модулей Windows PowerShell
PowerShellModulesLogging -Enable
4 years ago
# Disable logging for all Windows PowerShell modules (default value)
# Выключить ведение журнала для всех модулей Windows PowerShell (значение по умолчанию)
# PowerShellModulesLogging -Disable
4 years ago
# Enable logging for all PowerShell scripts input to the Windows PowerShell event log
# Включить ведение журнала для всех вводимых сценариев PowerShell в журнале событий Windows PowerShell
PowerShellScriptsLogging -Enable
4 years ago
# Disable logging for all PowerShell scripts input to the Windows PowerShell event log (default value)
# Выключить ведение журнала для всех вводимых сценариев PowerShell в журнале событий Windows PowerShell (значение по умолчанию)
# PowerShellScriptsLogging -Disable
4 years ago
# Disable apps and files checking within Microsofot Defender SmartScreen
# Выключить проверку приложений и файлов фильтром SmartScreen в Microsoft Defender
AppsSmartScreen -Disable
4 years ago
# Enable apps and files checking within Microsofot Defender SmartScree (default value)
# Включить проверку приложений и файлов фильтром SmartScreen в Microsoft Defender (значение по умолчанию)
# AppsSmartScreen -Enable
3 years ago
# Disable the Attachment Manager marking files that have been downloaded from the Internet as unsafe
# Выключить проверку Диспетчером вложений файлов, скачанных из интернета, как небезопасные
4 years ago
SaveZoneInformation -Disable
3 years ago
# Enable the Attachment Manager marking files that have been downloaded from the Internet as unsafe (default value)
# Включить проверку Диспетчера вложений файлов, скачанных из интернета как небезопасные (значение по умолчанию)
4 years ago
# SaveZoneInformation -Enable
4 years ago
<#
3 years ago
Disable Windows Script Host
4 years ago
Blocks WSH from executing .js and .vbs files
4 years ago
3 years ago
Отключить Windows Script Host
4 years ago
Блокирует запуск файлов .js и .vbs
4 years ago
#>
# WindowsScriptHost -Disable
4 years ago
3 years ago
# Enable Windows Script Host (default value)
# Включить Windows Script Host (значение по умолчанию)
4 years ago
# WindowsScriptHost -Enable
# Enable Windows Sandbox
# Включить Windows Sandbox
3 years ago
# WindowsSandbox -Enable
4 years ago
# Disable Windows Sandbox (default value)
# Выключить Windows Sandbox (значение по умолчанию)
# WindowsSandbox -Disable
#endregion Microsoft Defender & Security
#region Context menu
# Add the "Extract all" item to Windows Installer (.msi) context menu
# Добавить пункт "Извлечь все" в контекстное меню Windows Installer (.msi)
4 years ago
MSIExtractContext -Add
4 years ago
# Remove the "Extract all" item from Windows Installer (.msi) context menu (default value)
# Удалить пункт "Извлечь все" из контекстного меню Windows Installer (.msi) (значение по умолчанию)
# MSIExtractContext -Remove
# Add the "Install" item to the .cab archives context menu
# Добавить пункт "Установить" в контекстное меню .cab архивов
4 years ago
CABInstallContext -Add
4 years ago
# Remove the "Install" item from the .cab archives context menu (default value)
# Удалить пункт "Установить" из контекстного меню .cab архивов (значение по умолчанию)
# CABInstallContext -Remove
# Add the "Run as different user" item to the .exe files types context menu
# Добавить пункт "Запуск от имени другого пользователя" в контекстного меню .exe файлов
4 years ago
RunAsDifferentUserContext -Add
4 years ago
# Remove the "Run as different user" item from the .exe files types context menu (default value)
# Удалить пункт "Запуск от имени другого пользователя" из контекстное меню .exe файлов (значение по умолчанию)
# RunAsDifferentUserContext -Remove
# Hide the "Cast to Device" item from the context menu
# Скрыть пункт "Передать на устройство" из контекстного меню
4 years ago
CastToDeviceContext -Hide
4 years ago
# Show the "Cast to Device" item in the context menu (default value)
# Показывать пункт "Передать на устройство" в контекстном меню (значение по умолчанию)
# CastToDeviceContext -Show
# Hide the "Share" item from the context menu
# Скрыть пункт "Отправить" (поделиться) из контекстного меню
4 years ago
ShareContext -Hide
4 years ago
# Show the "Share" item in the context menu (default value)
# Показывать пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию)
# ShareContext -Show
# Hide the "Edit with Paint 3D" item from the context menu
# Скрыть пункт "Изменить с помощью Paint 3D" из контекстного меню
EditWithPaint3DContext -Hide
4 years ago
# Show the "Edit with Paint 3D" item in the context menu (default value)
# Показывать пункт "Изменить с помощью Paint 3D" в контекстном меню (значение по умолчанию)
# EditWithPaint3DContext -Show
# Hide the "Edit with Photos" item from the context menu
# Скрыть пункт "Изменить с помощью приложения "Фотографии"" из контекстного меню
4 years ago
EditWithPhotosContext -Hide
4 years ago
# Show the "Edit with Photos" item in the context menu (default value)
# Показывать пункт "Изменить с помощью приложения "Фотографии"" в контекстном меню (значение по умолчанию)
# EditWithPhotosContext -Show
# Hide the "Create a new video" item from the context menu
# Скрыть пункт "Создать новое видео" из контекстного меню
4 years ago
CreateANewVideoContext -Hide
4 years ago
# Show the "Create a new video" item in the context menu (default value)
# Показывать пункт "Создать новое видео" в контекстном меню (значение по умолчанию)
# CreateANewVideoContext -Show
# Hide the "Edit" item from the images context menu
# Скрыть пункт "Изменить" из контекстного меню изображений
4 years ago
ImagesEditContext -Hide
4 years ago
# Show the "Edit" item from in images context menu (default value)
# Показывать пункт "Изменить" в контекстном меню изображений (значение по умолчанию)
# ImagesEditContext -Show
# Hide the "Print" item from the .bat and .cmd context menu
# Скрыть пункт "Печать" из контекстного меню .bat и .cmd файлов
4 years ago
PrintCMDContext -Hide
4 years ago
# Show the "Print" item in the .bat and .cmd context menu (default value)
# Показывать пункт "Печать" в контекстном меню .bat и .cmd файлов (значение по умолчанию)
# PrintCMDContext -Show
# Hide the "Include in Library" item from the context menu
# Скрыть пункт "Добавить в библиотеку" из контекстного меню
4 years ago
IncludeInLibraryContext -Hide
4 years ago
# Show the "Include in Library" item in the context menu (default value)
# Показывать пункт "Добавить в библиотеку" в контекстном меню (значение по умолчанию)
# IncludeInLibraryContext -Show
# Hide the "Send to" item from the folders context menu
# Скрыть пункт "Отправить" из контекстного меню папок
4 years ago
SendToContext -Hide
4 years ago
# Show the "Send to" item in the folders context menu (default value)
# Показывать пункт "Отправить" в контекстном меню папок (значение по умолчанию)
# SendToContext -Show
# Hide the "Turn on BitLocker" item from the context menu
# Скрыть пункт "Включить BitLocker" из контекстного меню
4 years ago
BitLockerContext -Hide
4 years ago
# Show the "Turn on BitLocker" item in the context menu (default value)
# Показывать пункт "Включить BitLocker" в контекстном меню (значение по умолчанию)
# BitLockerContext -Show
# Remove the "Bitmap image" item from the "New" context menu
# Удалить пункт "Точечный рисунок" из контекстного меню "Создать"
4 years ago
BitmapImageNewContext -Remove
3 years ago
# Add the "Bitmap image" item to the "New" context menu (default value)
4 years ago
# Восстановить пункт "Точечный рисунок" в контекстного меню "Создать" (значение по умолчанию)
# BitmapImageNewContext -Add
# Remove the "Rich Text Document" item from the "New" context menu
# Удалить пункт "Документ в формате RTF" из контекстного меню "Создать"
4 years ago
RichTextDocumentNewContext -Remove
3 years ago
# Add the "Rich Text Document" item to the "New" context menu (default value)
4 years ago
# Восстановить пункт "Документ в формате RTF" в контекстного меню "Создать" (значение по умолчанию)
# RichTextDocumentNewContext -Add
# Remove the "Compressed (zipped) Folder" item from the "New" context menu
# Удалить пункт "Сжатая ZIP-папка" из контекстного меню "Создать"
4 years ago
CompressedFolderNewContext -Remove
3 years ago
# Add the "Compressed (zipped) Folder" item to the "New" context menu (default value)
4 years ago
# Восстановить пункт "Сжатая ZIP-папка" в контекстном меню "Создать" (значение по умолчанию)
# CompressedFolderNewContext -Add
4 years ago
# Enable the "Open", "Print", and "Edit" context menu items for more than 15 items selected
# Включить элементы контекстного меню "Открыть", "Изменить" и "Печать" при выделении более 15 элементов
MultipleInvokeContext -Enable
4 years ago
# Disable the "Open", "Print", and "Edit" context menu items for more than 15 items selected (default value)
# Отключить элементы контекстного меню "Открыть", "Изменить" и "Печать" при выделении более 15 элементов (значение по умолчанию)
# MultipleInvokeContext -Disable
# Hide the "Look for an app in the Microsoft Store" item in the "Open with" dialog
# Скрыть пункт "Поиск приложения в Microsoft Store" в диалоге "Открыть с помощью"
4 years ago
UseStoreOpenWith -Hide
4 years ago
# Show the "Look for an app in the Microsoft Store" item in the "Open with" dialog (default value)
# Отображать пункт "Поиск приложения в Microsoft Store" в диалоге "Открыть с помощью" (значение по умолчанию)
# UseStoreOpenWith -Show
3 years ago
# Hide the "Previous Versions" tab from the files and folders context menu and the "Restore previous versions" context menu item
# Скрыть вкладку "Предыдущие версии" в свойствах файлов и папок, а также пункт контекстного меню "Восстановить прежнюю версию"
4 years ago
PreviousVersionsPage -Hide
4 years ago
# Show the "Previous Versions" tab from files and folders context menu and also the "Restore previous versions" context menu item (default value)
# Отображать вкладку "Предыдущие версии" в свойствах файлов и папок, а также пункт контекстного меню "Восстановить прежнюю версию" (значение по умолчанию)
# PreviousVersionsPage -Show
#endregion Context menu
<#
Simulate pressing F5 to refresh the desktop
Refresh desktop icons, environment variables, taskbar
Restart the Start menu
Please, do not comment out this function
Симулировать нажатие F5 для обновления рабочего стола
Обновить иконки рабочего стола, переменные среды, панель задач
Перезапустить меню "Пуск"
3 years ago
Пожалуйста, не комментируйте данную функцию
#>
Refresh
3 years ago
<#
Errors output
Please, do not comment out this function
3 years ago
Вывод ошибок
Пожалуйста, не комментируйте данную функцию
#>
Errors