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.

3522 lines
148 KiB

<#
.SYNOPSIS
"Windows 10 Setup Script" is a set of tweaks for OS fine-tuning and automating the routine tasks
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
4 years ago
Version: v4.5
Date: 18.09.2020
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
Copyright (c) 2020 farag & oZ-Zo
Thanks to all http://forum.ru-board.com members involved
.DESCRIPTION
Supported Windows 10 version: 2004 (20H1), 19041 build, x64
Most of functions can be run also on LTSB/LTSC
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Tested on Home/Pro/Enterprise editions
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
Due to the fact that the script includes about 150 functions,
you must read the entire script and comment out those sections that you do not want to be executed,
otherwise likely you will enable features that you do not want to be enabled
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
Running the script is best done on a fresh install because running it on tweaked system may result in errors occurring
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
Some third-party antiviruses flag this script or its' part as malicious one. This is a false positive due to $EncodedScript variable
4 years ago
You can read more about in "Create a task to clean up unused files and Windows updates in the Task Scheduler" section
You might need to disable tamper protection from your antivirus settings,re-enable it after running the script, and reboot
Check whether the .ps1 file is encoded in UTF-8 with BOM
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/4.2...4.2.1 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section; - Fixed bug in &#34;Include command line in process creation events&#34; section - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/4.2...4.2.1 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Исправлена ошибка в разделе &#34;Включать командную строку в событиях создания процесса&#34; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
The script can not be executed via PowerShell ISE
PowerShell must be run with elevated privileges
Set execution policy to be able to run scripts only in the current PowerShell session:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
.EXAMPLE
4 years ago
PS C:\> & '.\1903-1909.ps1'
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
.NOTES
Ask a question on
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
http://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
https://habr.com/en/post/465365/
4 years ago
https://4pda.ru/forum/index.php?s=&showtopic=523489&view=findpost&p=95909388
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
https://forums.mydigitallife.net/threads/powershell-script-setup-windows-10.81675/
https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/
.LINK
https://github.com/farag2/Windows-10-Setup-Script
#>
#Requires -RunAsAdministrator
#Requires -Version 5.1
#region Check
Clear-Host
# Get information about the current culture settings
# Получить сведения о параметрах текущей культуры
4 years ago
$RU = $PSUICulture -eq "ru-RU"
# Detect the OS bitness
# Определить разрядность ОС
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
switch ([Environment]::Is64BitOperatingSystem)
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$false
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
if ($RU)
{
Write-Warning -Message "Скрипт поддерживает только Windows 10 x64"
}
else
{
Write-Warning -Message "The script supports Windows 10 x64 only"
}
break
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
Default {}
}
# Detect the PowerShell bitness
# Определить разрядность PowerShell
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
switch ([IntPtr]::Size -eq 8)
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$false
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
if ($RU)
{
Write-Warning -Message "Скрипт поддерживает только PowerShell x64"
}
else
{
Write-Warning -Message "The script supports PowerShell x64 only"
}
break
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
Default {}
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Detect whether the script is running via PowerShell ISE
# Определить, запущен ли скрипт в PowerShell ISE
if ($psISE)
{
if ($RU)
{
Write-Warning -Message "Скрипт не может быть запущен в PowerShell ISE"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
else
{
4 years ago
Write-Warning -Message "The script cannot be run via PowerShell ISE"
}
break
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
#endregion Check
#region Begin
Set-StrictMode -Version Latest
# Сlear $Error variable
# Очистка переменной $Error
$Error.Clear()
# Create a restore point
# Создать точку восстановления
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Title = "Точка восстановления"
4 years ago
$Message = "Хотите включить защиту системы и создать точку восстановления?"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Создать", "&Не создавать", "&Пропустить"
}
else
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Title = "Restore point"
4 years ago
$Message = "Would you like to enable System Restore and create a restore point?"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Create", "&Do not create", "&Skip"
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$DefaultChoice = 2
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"0"
{
4 years ago
# Enable System Restore
# Включить функцию восстановления системы
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if (-not (Get-ComputerRestorePoint))
{
Enable-ComputerRestore -Drive $env:SystemDrive
}
4 years ago
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Set system restore point creation frequency to 5 minutes
# Установить частоту создания точек восстановления на 5 минут
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name SystemRestorePointCreationFrequency -PropertyType DWord -Value 5 -Force
4 years ago
Checkpoint-Computer -Description "Windows 10 Setup Script.ps1" -RestorePointType MODIFY_SETTINGS
# Revert the System Restore checkpoint creation frequency to 1440 minutes
# Вернуть частоту создания точек восстановления на 1440 минут
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name SystemRestorePointCreationFrequency -PropertyType DWord -Value 1440 -Force
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"1"
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Title = "Точки восстановления"
4 years ago
$Message = "Удалить все точки восстановления?"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Удалить", "&Пропустить"
}
else
{
$Title = "Restore point"
4 years ago
$Message = "Would you like to delete all System restore checkpoints?"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Delete", "&Skip"
}
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Delete all restore points
# Удалить все точки восстановения
Get-CimInstance -ClassName Win32_ShadowCopy | Remove-CimInstance
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"1"
{
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Write-Verbose -Message "Skipped" -Verbose
}
}
}
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"2"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
#endregion Begin
#region Privacy & Telemetry
4 years ago
# Disable the "Connected User Experiences and Telemetry" service (DiagTrack)
# Отключить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack)
Get-Service -Name DiagTrack | Stop-Service -Force
Get-Service -Name DiagTrack | Set-Service -StartupType Disabled
4 years ago
# Set the OS level of diagnostic data gathering to minimum
# Установить уровень сбора диагностических сведений ОС на минимальный
if (Get-WindowsEdition -Online | Where-Object -FilterScript {$_.Edition -like "Enterprise*" -or $_.Edition -eq "Education"})
{
# "Security"
# "Безопасность"
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection -Name AllowTelemetry -PropertyType DWord -Value 0 -Force
}
else
{
# "Basic"
4 years ago
# "Базовая настройка"
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection -Name AllowTelemetry -PropertyType DWord -Value 1 -Force
}
4 years ago
# Turn off Windows Error Reporting for the current user
# Отключить отчеты об ошибках Windows для текущего пользователя
if ((Get-WindowsEdition -Online).Edition -notmatch "Core*")
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name Disabled -PropertyType DWord -Value 1 -Force
}
4 years ago
# Change Windows feedback frequency to "Never" for the current user
# Изменить частоту формирования отзывов на "Никогда" для текущего пользователя
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Siuf\Rules))
{
4 years ago
New-Item -Path HKCU:\SOFTWARE\Microsoft\Siuf\Rules -Force
}
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Siuf\Rules -Name NumberOfSIUFInPeriod -PropertyType DWord -Value 0 -Force
# Turn off diagnostics tracking scheduled tasks
# Отключить задачи диагностического отслеживания
4 years ago
$ScheduledTaskList = @(
# Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program.
# Собирает телеметрические данные программы при участии в Программе улучшения качества программного обеспечения Майкрософт
4 years ago
"Microsoft Compatibility Appraiser",
# Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program
# Сбор телеметрических данных программы при участии в программе улучшения качества ПО
4 years ago
"ProgramDataUpdater",
# This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program
# Эта задача собирает и загружает данные SQM при участии в программе улучшения качества программного обеспечения
4 years ago
"Proxy",
# If the user has consented to participate in the Windows Customer Experience Improvement Program, this job collects and sends usage data to Microsoft
# Если пользователь изъявил желание участвовать в программе по улучшению качества программного обеспечения Windows, эта задача будет собирать и отправлять сведения о работе программного обеспечения в Майкрософт
4 years ago
"Consolidator",
# The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft
# При выполнении задачи программы улучшения качества ПО шины USB (USB CEIP) осуществляется сбор статистических данных об использовании универсальной последовательной шины USB и с ведений о компьютере, которые направляются инженерной группе Майкрософт по вопросам подключения устройств в Windows
"UsbCeip",
# The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program
# Для пользователей, участвующих в программе контроля качества программного обеспечения, служба диагностики дисков Windows предоставляет общие сведения о дисках и системе в корпорацию Майкрософт
4 years ago
"Microsoft-Windows-DiskDiagnosticDataCollector",
# Protects user files from accidental loss by copying them to a backup location when the system is unattended
# Защищает файлы пользователя от случайной потери за счет их копирования в резервное расположение, когда система находится в автоматическом режиме
4 years ago
"File History (maintenance mode)",
# Measures a system's performance and capabilities
# Измеряет быстродействие и возможности системы
4 years ago
"WinSAT",
# This task shows various Map related toasts
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
# Эта задача показывает различные тосты (всплывающие уведомления) приложения "Карты"
4 years ago
"MapsToastTask",
# This task checks for updates to maps which you have downloaded for offline use
# Эта задача проверяет наличие обновлений для карт, загруженных для автономного использования
4 years ago
"MapsUpdateTask",
# Initializes Family Safety monitoring and enforcement
# Инициализация контроля и применения правил семейной безопасности
4 years ago
"FamilySafetyMonitor",
# Synchronizes the latest settings with the Microsoft family features service
# Синхронизирует последние параметры со службой функций семьи учетных записей Майкрософт
4 years ago
"FamilySafetyRefreshTask",
# Windows Error Reporting task to process queued reports
# Задача отчетов об ошибках обрабатывает очередь отчетов
4 years ago
"QueueReporting",
# XblGameSave Standby Task
"XblGameSaveTask"
)
4 years ago
# If device is not a laptop disable FODCleanupTask too
# Если устройство не является ноутбуком, отключить также и FODCleanupTask
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
if ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -ne 2)
{
4 years ago
# Windows Hello
$ScheduledTaskList += "FODCleanupTask"
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
}
4 years ago
Get-ScheduledTask -TaskName $ScheduledTaskList | Disable-ScheduledTask
# Do not use sign-in info to automatically finish setting up device and reopen apps after an update or restart (current user only)
# Не использовать данные для входа для автоматического завершения настройки устройства и открытия приложений после перезапуска или обновления (только для текущего пользователя)
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
$SID = (Get-CimInstance -ClassName Win32_UserAccount | Where-Object -FilterScript {$_.Name -eq $env:USERNAME}).SID
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserARSO\$SID"))
{
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserARSO\$SID" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserARSO\$SID" -Name OptOut -PropertyType DWord -Value 1 -Force
4 years ago
# Do not let websites provide locally relevant content by accessing language list (current user only)
# Не позволять веб-сайтам предоставлять местную информацию за счет доступа к списку языков (только для текущего пользователя)
New-ItemProperty -Path "HKCU:\Control Panel\International\User Profile" -Name HttpAcceptLanguageOptOut -PropertyType DWord -Value 1 -Force
4 years ago
# Do not allow apps to use advertising ID (current user only)
# Не разрешать приложениям использовать идентификатор рекламы (только для текущего пользователя)
if (-not (Test-Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo))
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
{
4 years ago
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Force
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
}
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -PropertyType DWord -Value 0 -Force
4 years ago
# Do not let apps on other devices open and message apps on this device, and vice versa (current user only)
# Не разрешать приложениям на других устройствах запускать приложения и отправлять сообщения на этом устройстве и наоборот (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CDP -Name RomeSdkChannelUserAuthzPolicy -PropertyType DWord -Value 0 -Force
4 years ago
# Do not show the Windows welcome experiences after updates and occasionally when I sign in to highlight what's new and suggested (current user only)
# Не показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-310093Enabled -PropertyType DWord -Value 0 -Force
4 years ago
# Get tip, trick, and suggestions as you use Windows (current user only)
# Получать советы, подсказки и рекомендации при использованию Windows (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
4 years ago
# Do not show suggested content in the Settings app (current user only)
# Не показывать рекомендуемое содержимое в приложении "Параметры" (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338393Enabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-353694Enabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-353696Enabled -PropertyType DWord -Value 0 -Force
4 years ago
# Turn off automatic installing suggested apps (current user only)
# Отключить автоматическую установку рекомендованных приложений (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SilentInstalledAppsEnabled -PropertyType DWord -Value 0 -Force
4 years ago
# Do not suggest ways I can finish setting up my device to get the most out of Windows (current user only)
# Не предлагать способы завершения настройки устройства для максимально эффективного использования Windows (только для текущего пользователя)
if (-not (Test-Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\UserProfileEngagement))
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
{
4 years ago
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\UserProfileEngagement -Force
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
}
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\UserProfileEngagement -Name ScoobeSystemSettingEnabled -PropertyType DWord -Value 0 -Force
4 years ago
# Do not offer tailored experiences based on the diagnostic data setting (current user only)
# Не предлагать персонализированные возможности, основанные на выбранном параметре диагностических данных (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy -Name TailoredExperiencesWithDiagnosticDataEnabled -PropertyType DWord -Value 0 -Force
#endregion Privacy & Telemetry
#region UI & Personalization
4 years ago
# Show "This PC" on Desktop (current user only)
# Отобразить "Этот компьютер" на рабочем столе (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel -Name "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" -PropertyType DWord -Value 0 -Force
4 years ago
# Do not use check boxes to select items (current user only)
# Не использовать флажки для выбора элементов (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name AutoCheckSelect -PropertyType DWord -Value 0 -Force
4 years ago
# Show hidden files, folders, and drives (current user only)
# Показывать скрытые файлы, папки и диски (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Hidden -PropertyType DWord -Value 1 -Force
4 years ago
# Show file name extensions (current user only)
# Показывать расширения имён файлов (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideFileExt -PropertyType DWord -Value 0 -Force
4 years ago
# Do not hide folder merge conflicts (current user only)
# Не скрывать конфликт слияния папок (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideMergeConflicts -PropertyType DWord -Value 0 -Force
4 years ago
# Open File Explorer to: "This PC" (current user only)
# Открывать проводник для: "Этот компьютер" (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -PropertyType DWord -Value 1 -Force
4 years ago
# Do not show all folders in the navigation pane (current user only)
# Не отображать все папки в области навигации (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -PropertyType DWord -Value 0 -Force
4 years ago
# Do not show Cortana button on the taskbar (current user only)
# Не показывать кнопку Кортаны на панели задач (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowCortanaButton -PropertyType DWord -Value 0 -Force
4 years ago
# Do not show sync provider notification within File Explorer (current user only)
# Не показывать уведомления поставщика синхронизации в проводнике (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowSyncProviderNotifications -PropertyType DWord -Value 0 -Force
4 years ago
# Do not show Task View button on the taskbar (current user only)
# Не показывать кнопку Просмотра задач (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowTaskViewButton -PropertyType DWord -Value 0 -Force
4 years ago
# Do not show People button on the taskbar (current user only)
# Не показывать панель "Люди" на панели задач (только для текущего пользователя)
if (-not (Test-Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People))
{
4 years ago
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People -Force
}
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People -Name PeopleBand -PropertyType DWord -Value 0 -Force
4 years ago
# Show seconds on the taskbar clock (current user only)
# Отображать секунды в системных часах на панели задач (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowSecondsInSystemClock -PropertyType DWord -Value 1 -Force
4 years ago
# Do not show when snapping a window, what can be attached next to it (current user only)
# Не показывать при прикреплении окна, что можно прикрепить рядом с ним (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name SnapAssist -PropertyType DWord -Value 0 -Force
4 years ago
# Always open the file transfer dialog box in the detailed mode (current user only)
# Всегда открывать диалоговое окно передачи файлов в развернутом виде (только для текущего пользователя)
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager))
{
4 years ago
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager -Force
}
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager -Name EnthusiastMode -PropertyType DWord -Value 1 -Force
4 years ago
# Show the ribbon expanded in File Explorer (current user only)
# Отображать ленту проводника в развернутом виде (только для текущего пользователя)
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon))
{
4 years ago
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon -Force
}
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon -Name MinimizedStateTabletModeOff -PropertyType DWord -Value 0 -Force
<#
Display recycle bin files delete confirmation
Function [WinAPI.UpdateExplorer]::PostMessage() call required at the end
Запрашивать подтверждение на удаление файлов в корзину
В конце необходим вызов функции [WinAPI.UpdateExplorer]::PostMessage()
#>
4 years ago
$ShellState = Get-ItemPropertyValue -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShellState
v4.0.24 11.03.2020 ## Updated - Turn on recycle bin files delete confirmation - Now configuring without using policy. To delete unnecessary key execute ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Turn off Delivery Optimization - Now using cmdlets. To delete unnecessary key execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Rearranged &#34;Set power management scheme for desktop and laptop&#34; section - Renamed sections - &#34;Turn off hibernate&#34; to &#34;Turn off hibernate for devices, except laptops&#34; - &#34;Turn off location for this device&#34; to &#34;Turn off location access for this device&#34; - Minor changes. ## Обновлено - Запрашивать подтверждение на удаление файлов в корзину - Теперь настройка производится без использования политики. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Отключить оптимизацию доставки - Теперь используются командлеты. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Перестроен раздел &#34;Установить схему управления питания для стационарного ПК и ноутбука&#34; - Переименованы разделы - &#34;Отключить гибридный спящий режим&#34; в &#34;Отключить местоположение для этого устройства&#34; - &#34;Отключить режим гибернации для устройств, кроме ноутбуков&#34; в &#34;Отключить доступ к сведениям о расположении для этого устройства&#34; - Незначительные изменения.
5 years ago
$ShellState[4] = 51
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShellState -PropertyType Binary -Value $ShellState -Force
4 years ago
# Hide the "3D Objects" folder from "This PC" and "Quick access" (current user only)
# Скрыть папку "Объемные объекты" из "Этот компьютер" и из панели быстрого доступа (только для текущего пользователя)
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" -Name ThisPCPolicy -PropertyType String -Value Hide -Force
4 years ago
# Do not show frequently used folders in "Quick access" (current user only)
# Не показывать недавно используемые папки на панели быстрого доступа (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -PropertyType DWord -Value 0 -Force
4 years ago
# Do not show recently used files in Quick access (current user only)
# Не показывать недавно использовавшиеся файлы на панели быстрого доступа (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -PropertyType DWord -Value 0 -Force
4 years ago
# Hide the search box or the search icon from the taskbar (current user only)
# Скрыть поле или значок поиска на панели задач (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 0 -Force
4 years ago
# Do not show the "Windows Ink Workspace" button on the taskbar (current user only)
# Не показывать кнопку Windows Ink Workspace на панели задач (current user only)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace -Name PenWorkspaceButtonDesiredVisibility -PropertyType DWord -Value 0 -Force
4 years ago
# Always show all icons in the notification area (current user only)
# Всегда отображать все значки в области уведомлений (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name EnableAutoTray -PropertyType DWord -Value 0 -Force
4 years ago
# Unpin "Microsoft Edge" and "Microsoft Store" from the taskbar (current user only)
# Открепить Microsoft Edge и Microsoft Store от панели задач (только для текущего пользователя)
$Signature = @{
Namespace = "WinAPI"
Name = "GetStr"
Language = "CSharp"
MemberDefinition = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
// https://github.com/Disassembler0/Win10-Initial-Setup-Script/issues/8#issue-227159084
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr GetModuleHandle(string lpModuleName);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
internal static extern int LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax);
public static string GetString(uint strId)
4 years ago
{
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
IntPtr intPtr = GetModuleHandle("shell32.dll");
StringBuilder sb = new StringBuilder(255);
LoadString(intPtr, strId, sb, sb.Capacity);
return sb.ToString();
}
"@
}
if (-not ("WinAPI.GetStr" -as [type]))
{
Add-Type @Signature -Using System.Text
}
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
# Extract the "Unpin from taskbar" string from shell32.dll
# Извлечь строку "Открепить от панели задач" из shell32.dll
4 years ago
$LocalizedString = [WinAPI.GetStr]::GetString(5387)
$Apps = (New-Object -ComObject Shell.Application).NameSpace("shell:::{4234d49b-0245-4df3-b780-3893943456e1}").Items()
$Apps | Where-Object -FilterScript {$_.Path -like "Microsoft.MicrosoftEdge*"} | ForEach-Object -Process {$_.Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}}
$Apps | Where-Object -FilterScript {$_.Path -like "Microsoft.WindowsStore*"} | ForEach-Object -Process {$_.Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}}
4 years ago
# View the Control Panel icons by: large icons (current user only)
# Просмотр иконок Панели управления как: крупные значки (только для текущего пользователя)
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel))
{
4 years ago
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel -Force
}
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel -Name AllItemsIconView -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel -Name StartupPage -PropertyType DWord -Value 1 -Force
4 years ago
# The color scheme for Windows shell (current user only)
# Режим цвета для Windows (только для текущего пользователя)
if ($RU)
{
4 years ago
$Title = "Режим Windows"
$Message = "Установить цветовую схему Windows на светлую или темную"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Светлый", "&Темный", "&Пропустить"
}
else
{
4 years ago
$Title = "Windows mode"
$Message = "Set the Windows color scheme to either Light or Dark"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Light", "&Dark", "&Skip"
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"0"
{
4 years ago
# Light color scheme
# Светлая цветовая схема
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -PropertyType DWord -Value 1 -Force
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"1"
{
4 years ago
# Dark color scheme
# Темная цветовая схема
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -PropertyType DWord -Value 0 -Force
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
"2"
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
4 years ago
# The color scheme for apps (current user only)
# Режим цвета для приложений (только для текущего пользователя)
if ($RU)
{
4 years ago
$Title = "Режим приложений"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Message = "Чтобы выбрать режим приложения по умолчанию, введите необходимую букву"
$Options = "&Светлый", "&Темный", "&Пропустить"
}
else
{
4 years ago
$Title = "Apps mode"
$Message = "Set apps color scheme to either Light or Dark"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Light", "&Dark", "&Skip"
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"0"
{
4 years ago
# Light color scheme
# Светлый цветовая схема
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -PropertyType DWord -Value 1 -Force
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"1"
{
4 years ago
# Dark color scheme
# Темная цветовая схема
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -PropertyType DWord -Value 0 -Force
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
"2"
{
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
4 years ago
# Do not show the "New App Installed" indicator
# Не показывать уведомление "Установлено новое приложение"
if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer))
{
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name NoNewAppAlert -PropertyType DWord -Value 1 -Force
4 years ago
# Do not show user first sign-in animation after the upgrade
# Не показывать анимацию при первом входе в систему после обновления
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableFirstLogonAnimation -PropertyType DWord -Value 0 -Force
4 years ago
# Set the quality factor of the JPEG desktop wallpapers to maximum (current user only)
# Установить коэффициент качества обоев рабочего стола в формате JPEG на максимальный (только для текущего пользователя)
New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name JPEGImportQuality -PropertyType DWord -Value 100 -Force
4 years ago
# Start Task Manager in expanded mode (current user only)
# Запускать Диспетчера задач в развернутом виде (только для текущего пользователя)
$Taskmgr = Get-Process -Name Taskmgr -ErrorAction Ignore
if ($Taskmgr)
{
4 years ago
$Taskmgr.CloseMainWindow()
}
4 years ago
Start-Process -FilePath Taskmgr.exe -WindowStyle Hidden -PassThru
do
{
Start-Sleep -Milliseconds 100
4 years ago
$Preferences = Get-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\TaskManager -Name Preferences -ErrorAction Ignore
}
4 years ago
until ($Preferences)
Stop-Process -Name Taskmgr
4 years ago
$Preferences.Preferences[28] = 0
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\TaskManager -Name Preferences -PropertyType Binary -Value $Preferences.Preferences -Force
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Show a notification when your PC requires a restart to finish updating
# Показывать уведомление, когда компьютеру требуется перезагрузка для завершения обновления
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name RestartNotificationsAllowed2 -PropertyType DWord -Value 1 -Force
4 years ago
# Do not add the "- Shortcut" suffix to the file name of created shortcuts (current user only)
# Нe дoбaвлять "- яpлык" к имени coздaвaeмых яpлыков (только для текущего пользователя)
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates))
{
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates -Name ShortcutNameTemplate -PropertyType String -Value "%s.lnk" -Force
4 years ago
# Use the PrtScn button to open screen snipping (current user only)
# Использовать кнопку PRINT SCREEN, чтобы запустить функцию создания фрагмента экрана (только для текущего пользователя)
New-ItemProperty -Path "HKCU:\Control Panel\Keyboard" -Name PrintScreenKeyForSnippingEnabled -PropertyType DWord -Value 1 -Force
#endregion UI & Personalization
#region OneDrive
# Uninstall OneDrive
# Удалить OneDrive
4 years ago
[string]$UninstallString = Get-Package -Name "Microsoft OneDrive" -ProviderName Programs -ErrorAction Ignore | ForEach-Object -Process {$_.Meta.Attributes["UninstallString"]}
if ($UninstallString)
{
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
if ($RU)
{
Write-Verbose -Message "Удаление OneDrive" -Verbose
}
else
{
Write-Verbose -Message "Uninstalling OneDrive" -Verbose
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
Stop-Process -Name OneDrive -Force -ErrorAction Ignore
Stop-Process -Name FileCoAuth -Force -ErrorAction Ignore
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
# Save all opened folders in order to restore them after File Explorer restarting
# Сохранить все открытые папки, чтобы восстановить их после перезапуска проводника
Clear-Variable -Name OpenedFolders -Force -ErrorAction Ignore
$OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Getting link to the OneDriveSetup.exe and its' argument(s)
# Получаем ссылку на OneDriveSetup.exe и его аргумент(ы)
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
[string[]]$OneDriveSetup = ($UninstallString -Replace("\s*/",",/")).Split(",").Trim()
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
if ($OneDriveSetup.Count -eq 2)
{
Start-Process -FilePath $OneDriveSetup[0] -ArgumentList $OneDriveSetup[1..1] -Wait
}
else
{
Start-Process -FilePath $OneDriveSetup[0] -ArgumentList $OneDriveSetup[1..2] -Wait
}
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
Stop-Process -Name explorer -Force
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Restoring closed folders
# Восстановляем закрытые папки
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
foreach ($OpenedFolder in $OpenedFolders)
{
if (Test-Path -Path $OpenedFolder)
{
Invoke-Item -Path $OpenedFolder
}
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Getting the OneDrive user folder path
# Получаем путь до папки пользователя OneDrive
$OneDriveUserFolder = Get-ItemPropertyValue -Path HKCU:\Environment -Name OneDrive
if ((Get-ChildItem -Path $OneDriveUserFolder | Measure-Object).Count -eq 0)
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
{
Remove-Item -Path $OneDriveUserFolder -Recurse -Force
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
}
else
{
if ($RU)
{
Write-Error -Message "Папка $OneDriveUserFolder не пуста. Удалите ее вручную" -ErrorAction SilentlyContinue
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
}
else
{
Write-Error -Message "The $OneDriveUserFolder folder is not empty. Delete it manually" -ErrorAction SilentlyContinue
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
}
Invoke-Item -Path $OneDriveUserFolder
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
Remove-ItemProperty -Path HKCU:\Environment -Name OneDrive, OneDriveConsumer -Force -ErrorAction Ignore
4 years ago
Remove-Item -Path HKCU:\SOFTWARE\Microsoft\OneDrive -Recurse -Force -ErrorAction Ignore
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
Remove-Item -Path HKLM:\SOFTWARE\WOW6432Node\Microsoft\OneDrive -Recurse -Force -ErrorAction Ignore
Remove-Item -Path "$env:ProgramData\Microsoft OneDrive" -Recurse -Force -ErrorAction Ignore
Remove-Item -Path $env:SystemDrive\OneDriveTemp -Recurse -Force -ErrorAction Ignore
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
Unregister-ScheduledTask -TaskName *OneDrive* -Confirm:$false
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Getting the OneDrive folder path
# Получаем путь до папки OneDrive
$OneDriveFolder = Split-Path -Path (Split-Path -Path $OneDriveSetup[0] -Parent)
# Waiting for the FileSyncShell64.dll to be unloaded, using System.IO.File class
# Ожидаем, пока FileSyncShell64.dll выгрузится, используя класс System.IO.File
$FileSyncShell64dllFolder = Get-ChildItem -Path "$OneDriveFolder\*\amd64\FileSyncShell64.dll" -Force
foreach ($FileSyncShell64dll in $FileSyncShell64dllFolder)
{
do
{
try
{
$FileStream = [System.IO.File]::Open($FileSyncShell64dll.FullName,"Open","Write")
$FileStream.Close()
$FileStream.Dispose()
$Locked = $false
}
catch [System.UnauthorizedAccessException]
{
$Locked = $true
}
catch [Exception]
{
Start-Sleep -Milliseconds 500
if ($RU)
{
Write-Verbose -Message "Ожидаем, пока $FileSyncShell64dll будет разблокирована" -Verbose
}
else
{
Write-Verbose -Message "Waiting for the $FileSyncShell64dll to be unlocked" -Verbose
}
}
}
while ($Locked)
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
Remove-Item -Path $OneDriveFolder -Recurse -Force -ErrorAction Ignore
Remove-Item -Path $env:LOCALAPPDATA\OneDrive -Recurse -Force -ErrorAction Ignore
Remove-Item -Path $env:LOCALAPPDATA\Microsoft\OneDrive -Recurse -Force -ErrorAction Ignore
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
Remove-Item -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" -Force -ErrorAction Ignore
v4.0.27 18.03.2020 ## Updated - &#34;Uninstall OneDrive&#34; section - Now even after restarting File Explorer your opened folders will be restored - &#34;Uninstall all UWP apps from all accounts, except the followings...&#34; section - &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Now displays progress bar while uninstalling - Deleted &#34;Checking whether the script was saved in UTF-8 with BOM encoding if it runs locally&#34; section - There is [no way](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/docs-conceptual/components/vscode/understanding-file-encoding.md#common-causes-of-encoding-issues) for PowerShell to automatically determine the file encoding - Anyway this code checks the encoding ```powershell if ($PSCommandPath) { $bytes = Get-Content -Path $PSCommandPath -Encoding Byte -Raw # https://tools.ietf.org/html/rfc3629#section-6 if ($bytes[0] -ne 239 -and $bytes[1] -ne 187 -and $bytes[2] -ne 191) { Write-Warning -Message &#34;The script wasn&#39;t saved in `&#34;UTF-8 with BOM`&#34; encoding&#34; break } } ``` - Comments - Minor changes. ## Обновлено - Раздел &#34;Удалить OneDrive&#34; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Удалить все UWP-приложения из всех учетных записей, кроме следующих...&#34; - Раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Теперь отображается индикатор выполнения во время удаления - Удален раздел &#34;Проверка: был ли скрипт сохранен в кодировке UTF-8 c BOM, если он запускается локально&#34; - В PowerShell [нет](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/docs-conceptual/components/vscode/understanding-file-encoding.md#common-causes-of-encoding-issues) способа автоматически определить кодировку файла - В любом случае этот код проверяет кодировку ```powershell if ($PSCommandPath) { $bytes = Get-Content -Path $PSCommandPath -Encoding Byte -Raw # https://tools.ietf.org/html/rfc3629#section-6 if ($bytes[0] -ne 239 -and $bytes[1] -ne 187 -and $bytes[2] -ne 191) { Write-Warning -Message &#34;Скрипт не был сохранен в кодировке `&#34;UTF-8 с BOM`&#34;&#34; break } } ``` - Комментарии - Незначительные изменения.
5 years ago
}
#endregion OneDrive
#region System
4 years ago
# Turn on Storage Sense (current user only)
# Включить Контроль памяти (только для текущего пользователя)
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy))
{
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy -ItemType Directory -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy -Name 01 -PropertyType DWord -Value 1 -Force
if ((Get-ItemPropertyValue -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy -Name 01) -eq "1")
{
# Run Storage Sense every month (current user only)
# Запускать Контроль памяти каждый месяц (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy -Name 2048 -PropertyType DWord -Value 30 -Force
# Delete temporary files that apps aren't using (current user only)
# Удалять временные файлы, не используемые в приложениях (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy -Name 04 -PropertyType DWord -Value 1 -Force
# Delete files in recycle bin if they have been there for over 30 days (current user only)
# Удалять файлы из корзины, если они находятся в корзине более 30 дней (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy -Name 08 -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy -Name 256 -PropertyType DWord -Value 30 -Force
}
# Disable hibernation if the device is not a laptop
# Отключить режим гибернации, если устройство не является ноутбуком
v4.0.24 11.03.2020 ## Updated - Turn on recycle bin files delete confirmation - Now configuring without using policy. To delete unnecessary key execute ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Turn off Delivery Optimization - Now using cmdlets. To delete unnecessary key execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Rearranged &#34;Set power management scheme for desktop and laptop&#34; section - Renamed sections - &#34;Turn off hibernate&#34; to &#34;Turn off hibernate for devices, except laptops&#34; - &#34;Turn off location for this device&#34; to &#34;Turn off location access for this device&#34; - Minor changes. ## Обновлено - Запрашивать подтверждение на удаление файлов в корзину - Теперь настройка производится без использования политики. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Отключить оптимизацию доставки - Теперь используются командлеты. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Перестроен раздел &#34;Установить схему управления питания для стационарного ПК и ноутбука&#34; - Переименованы разделы - &#34;Отключить гибридный спящий режим&#34; в &#34;Отключить местоположение для этого устройства&#34; - &#34;Отключить режим гибернации для устройств, кроме ноутбуков&#34; в &#34;Отключить доступ к сведениям о расположении для этого устройства&#34; - Незначительные изменения.
5 years ago
if ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -ne 2)
{
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
POWERCFG /HIBERNATE OFF
v4.0.24 11.03.2020 ## Updated - Turn on recycle bin files delete confirmation - Now configuring without using policy. To delete unnecessary key execute ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Turn off Delivery Optimization - Now using cmdlets. To delete unnecessary key execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Rearranged &#34;Set power management scheme for desktop and laptop&#34; section - Renamed sections - &#34;Turn off hibernate&#34; to &#34;Turn off hibernate for devices, except laptops&#34; - &#34;Turn off location for this device&#34; to &#34;Turn off location access for this device&#34; - Minor changes. ## Обновлено - Запрашивать подтверждение на удаление файлов в корзину - Теперь настройка производится без использования политики. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Отключить оптимизацию доставки - Теперь используются командлеты. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Перестроен раздел &#34;Установить схему управления питания для стационарного ПК и ноутбука&#34; - Переименованы разделы - &#34;Отключить гибридный спящий режим&#34; в &#34;Отключить местоположение для этого устройства&#34; - &#34;Отключить режим гибернации для устройств, кроме ноутбуков&#34; в &#34;Отключить доступ к сведениям о расположении для этого устройства&#34; - Незначительные изменения.
5 years ago
}
4 years ago
# Change the %TEMP% environment variable path to the %SystemDrive%\Temp (both machine-wide, and for the current user)
# Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp (для всех пользователей)
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
$Title = ""
if ($RU)
{
4 years ago
$Message = "Изменить путь переменной среды для $env:TEMP на `"$env:SystemDrive\Temp`"?"
Write-Warning -Message "`nПеред выполнением закройте все работающие программы!"
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
$Options = "&Изменить", "&Пропустить"
}
else
{
4 years ago
$Message = "Would you like to change the target of the $env:TEMP environment variable to the `"$env:SystemDrive\Temp`"?"
Write-Warning -Message "`nClose all running programs before proceeding!"
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
$Options = "&Change", "&Skip"
}
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
if (-not (Test-Path -Path $env:SystemDrive\Temp))
{
New-Item -Path $env:SystemDrive\Temp -ItemType Directory -Force
}
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "User")
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "Machine")
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "Process")
New-ItemProperty -Path HKCU:\Environment -Name TMP -PropertyType ExpandString -Value %SystemDrive%\Temp -Force
[Environment]::SetEnvironmentVariable("TEMP", "$env:SystemDrive\Temp", "User")
[Environment]::SetEnvironmentVariable("TEMP", "$env:SystemDrive\Temp", "Machine")
[Environment]::SetEnvironmentVariable("TEMP", "$env:SystemDrive\Temp", "Process")
New-ItemProperty -Path HKCU:\Environment -Name TEMP -PropertyType ExpandString -Value %SystemDrive%\Temp -Force
19.06.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Removed sections due to Network troubleshooter is unable to start DPS service - Stop event trace sessions - Turn off the data collectors at the next computer restart - To restore Network troubleshooter download attached DiagLog_EN.xml and execute in CMD ```cmd :: Restart needed logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_EN.xml&#34; ``` - Updated &#34;Turn on logging for all Windows PowerShell modules&#34; section - Fixed typo in registry path key creation - To restore execute ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ``` ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Удалены разделы в связи с тем, что средство устранения сетевых неполадок не могло запустить службу DPS - Остановить сеансы отслеживания событий - Отключить сборщики данных при следующем запуске ПК - Чтобы восстановить работу средства устранения сетевых неполадок, скачайте прикрепленный файл DiagLog_RU.xml и выполните в CMD ```cmd :: Необходима перезагрузка logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_RU.xml&#34; ``` - Обновлен раздел &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34; - Исправлена ошибка в пути создания ключа - Чтобы восстановить, выполните ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ```
4 years ago
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" -Name TMP -PropertyType ExpandString -Value %SystemDrive%\Temp -Force
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" -Name TEMP -PropertyType ExpandString -Value %SystemDrive%\Temp -Force
19.06.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Removed sections due to Network troubleshooter is unable to start DPS service - Stop event trace sessions - Turn off the data collectors at the next computer restart - To restore Network troubleshooter download attached DiagLog_EN.xml and execute in CMD ```cmd :: Restart needed logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_EN.xml&#34; ``` - Updated &#34;Turn on logging for all Windows PowerShell modules&#34; section - Fixed typo in registry path key creation - To restore execute ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ``` ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Удалены разделы в связи с тем, что средство устранения сетевых неполадок не могло запустить службу DPS - Остановить сеансы отслеживания событий - Отключить сборщики данных при следующем запуске ПК - Чтобы восстановить работу средства устранения сетевых неполадок, скачайте прикрепленный файл DiagLog_RU.xml и выполните в CMD ```cmd :: Необходима перезагрузка logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_RU.xml&#34; ``` - Обновлен раздел &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34; - Исправлена ошибка в пути создания ключа - Чтобы восстановить, выполните ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ```
4 years ago
4 years ago
# Restart the Printer Spooler service (Spooler)
# Перезапустить службу "Диспетчер печати" (Spooler)
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
Restart-Service -Name Spooler -Force
19.06.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Removed sections due to Network troubleshooter is unable to start DPS service - Stop event trace sessions - Turn off the data collectors at the next computer restart - To restore Network troubleshooter download attached DiagLog_EN.xml and execute in CMD ```cmd :: Restart needed logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_EN.xml&#34; ``` - Updated &#34;Turn on logging for all Windows PowerShell modules&#34; section - Fixed typo in registry path key creation - To restore execute ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ``` ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Удалены разделы в связи с тем, что средство устранения сетевых неполадок не могло запустить службу DPS - Остановить сеансы отслеживания событий - Отключить сборщики данных при следующем запуске ПК - Чтобы восстановить работу средства устранения сетевых неполадок, скачайте прикрепленный файл DiagLog_RU.xml и выполните в CMD ```cmd :: Необходима перезагрузка logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_RU.xml&#34; ``` - Обновлен раздел &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34; - Исправлена ошибка в пути создания ключа - Чтобы восстановить, выполните ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ```
4 years ago
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
Stop-Process -Name OneDrive -Force -ErrorAction Ignore
Stop-Process -Name FileCoAuth -Force -ErrorAction Ignore
Remove-Item -Path $env:SystemRoot\Temp -Recurse -Force -ErrorAction Ignore
Remove-Item -Path $env:LOCALAPPDATA\Temp -Recurse -Force -ErrorAction Ignore
# Create a symbolic link to the %SystemDrive%\Temp folder
# Создать символическую ссылку к папке %SystemDrive%\Temp
4 years ago
try
{
New-Item -Path $env:LOCALAPPDATA\Temp -ItemType SymbolicLink -Value $env:SystemDrive\Temp -Force
}
catch
{
if ($RU)
{
Write-Error -Message "Папка $env:LOCALAPPDATA\Temp не пуста. Очистите ее вручную" -ErrorAction SilentlyContinue
}
else
{
Write-Error -Message "The $env:LOCALAPPDATA\Temp folder is not empty. Clear it manually" -ErrorAction SilentlyContinue
}
Invoke-Item -Path $env:LOCALAPPDATA\Temp
}
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
4 years ago
# Disable Windows 260 character path limit
# Отключить ограничение Windows на 260 символов в пути
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled -PropertyType DWord -Value 1 -Force
# Display the Stop error information on the BSoD
# Отображать Stop-ошибку при появлении BSoD
4 years ago
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl -Name DisplayParameters -PropertyType DWord -Value 1 -Force
4 years ago
# Change "Behavior of the elevation prompt for administrators in Admin Approval Mode" to "Elevate without prompting"
# Изменить "Поведение запроса на повышение прав для администраторов в режиме одобрения администратором" на "Повышение прав без запроса"
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -PropertyType DWord -Value 0 -Force
# Turn on access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled
# Включить доступ к сетевым дискам при включенном режиме одобрения администратором при доступе из программ, запущенных с повышенными правами
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLinkedConnections -PropertyType DWord -Value 1 -Force
4 years ago
# Opt out of the Delivery Optimization-assisted updates downloading
# Отказаться от загрузки обновлений с помощью оптимизации доставки
New-ItemProperty -Path Registry::HKEY_USERS\S-1-5-20\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings -Name DownloadMode -PropertyType DWord -Value 0 -Force
v4.0.24 11.03.2020 ## Updated - Turn on recycle bin files delete confirmation - Now configuring without using policy. To delete unnecessary key execute ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Turn off Delivery Optimization - Now using cmdlets. To delete unnecessary key execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Rearranged &#34;Set power management scheme for desktop and laptop&#34; section - Renamed sections - &#34;Turn off hibernate&#34; to &#34;Turn off hibernate for devices, except laptops&#34; - &#34;Turn off location for this device&#34; to &#34;Turn off location access for this device&#34; - Minor changes. ## Обновлено - Запрашивать подтверждение на удаление файлов в корзину - Теперь настройка производится без использования политики. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Отключить оптимизацию доставки - Теперь используются командлеты. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Перестроен раздел &#34;Установить схему управления питания для стационарного ПК и ноутбука&#34; - Переименованы разделы - &#34;Отключить гибридный спящий режим&#34; в &#34;Отключить местоположение для этого устройства&#34; - &#34;Отключить режим гибернации для устройств, кроме ноутбуков&#34; в &#34;Отключить доступ к сведениям о расположении для этого устройства&#34; - Незначительные изменения.
5 years ago
Delete-DeliveryOptimizationCache -Force
4 years ago
# Always wait for the network at computer startup and logon for workgroup networks
# Всегда ждать сеть при запуске и входе в систему для рабочих групп
if ((Get-CimInstance -ClassName CIM_ComputerSystem).PartOfDomain -eq $true)
{
4 years ago
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Winlogon"))
{
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Winlogon" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name SyncForegroundPolicy -PropertyType DWord -Value 1 -Force
}
4 years ago
# Do not let Windows decide which printer should be the default one (current user only)
# Не разрешать Windows решать, какой принтер должен использоваться по умолчанию (только для текущего пользователя)
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" -Name LegacyDefaultPrinterMode -PropertyType DWord -Value 1 -Force
4 years ago
# Disable the following Windows features
# Отключить следующие компоненты Windows
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
$WindowsOptionalFeatures = @(
# Windows Fax and Scan
# Факсы и сканирование
4 years ago
"FaxServicesClientPackage",
# Legacy Components
# Компоненты прежних версий
4 years ago
"LegacyComponents",
# Media Features
# Компоненты работы с мультимедиа
4 years ago
"MediaPlayback",
# PowerShell 2.0
4 years ago
"MicrosoftWindowsPowerShellV2",
"MicrosoftWindowsPowershellV2Root",
# Microsoft XPS Document Writer
# Средство записи XPS-документов (Microsoft)
4 years ago
"Printing-XPSServices-Features",
# Work Folders Client
# Клиент рабочих папок
"WorkFolders-Client"
)
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
Disable-WindowsOptionalFeature -Online -FeatureName $WindowsOptionalFeatures -NoRestart
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
4 years ago
# Install the Windows Subsystem for Linux (WSL)
# Установить подсистему Windows для Linux (WSL)
# https://github.com/farag2/Windows-10-Setup-Script/issues/43
if ($RU)
{
$Title = "Windows Subsystem for Linux"
$Message = "Установить Windows Subsystem для Linux (WSL)?"
$Options = "&Установить", "&Пропустить"
}
else
{
$Title = "Windows Subsystem for Linux"
$Message = "Would you like to install Windows Subsystem for Linux (WSL)?"
$Options = "&Install", "&Skip"
}
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
$WSLFeatures = @(
# Enable the Windows Subsystem for Linux
# Включить подсистему Windows для Linux
"Microsoft-Windows-Subsystem-Linux",
# Enable Virtual Machine Platform
# Включить поддержку платформы для виртуальных машин
"VirtualMachinePlatform"
)
Enable-WindowsOptionalFeature -Online -FeatureName $WSLFeatures -NoRestart
# Downloading the Linux kernel update package
# Скачиваем пакет обновления ядра Linux
try
{
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
if ((Invoke-WebRequest -Uri https://www.google.com -UseBasicParsing -DisableKeepAlive -Method Head).StatusDescription)
{
$Parameters = @{
Uri = "https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi"
OutFile = "$PSScriptRoot\wsl_update_x64.msi"
Verbose = [switch]::Present
}
Invoke-WebRequest @Parameters
Start-Process -FilePath $PSScriptRoot\wsl_update_x64.msi -ArgumentList "/passive" -Wait
Remove-Item -Path $PSScriptRoot\wsl_update_x64.msi -Force
}
}
catch
{
if ($Error.Exception.Status -eq "NameResolutionFailure")
{
if ($RU)
{
Write-Warning -Message "Отсутствует интернет-соединение" -ErrorAction SilentlyContinue
}
else
{
Write-Warning -Message "No Internet connection" -ErrorAction SilentlyContinue
}
}
}
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
# Setup WSL
# Настроить WSL
# https://github.com/microsoft/WSL/issues/5437
try
{
# Set WSL 2 as a default version. Run the command only after restart
# Установить WSL 2 как версию по умолчанию. Выполните команду только после перезагрузки
wsl --set-default-version 2
# Configuring .wslconfig
# Настраиваем .wslconfig
if (-not (Test-Path -Path "$env:HOMEPATH\.wslconfig"))
{
$wslconfig = @"
[wsl2]
swap=0
"@
# Saving .wslconfig in UTF-8 encoding
# Сохраняем .wslconfig в кодировке UTF-8
Set-Content -Path "$env:HOMEPATH\.wslconfig" -Value (New-Object System.Text.UTF8Encoding).GetBytes($wslconfig) -Encoding Byte -Force
}
else
{
$String = Get-Content -Path "$env:HOMEPATH\.wslconfig" | Select-String -Pattern "swap=" -SimpleMatch
if ($String)
{
(Get-Content -Path "$env:HOMEPATH\.wslconfig").Replace("swap=1", "swap=0") | Set-Content -Path "$env:HOMEPATH\.wslconfig" -Force
}
else
{
Add-Content -Path "$env:HOMEPATH\.wslconfig" -Value "`r`nswap=0" -Force
}
}
}
catch
{
if ($RU)
{
Write-Warning -Message "Перезагрузите ПК и выполните`nwsl --set-default-version 2" -ErrorAction SilentlyContinue
Write-Error -Message "Перезагрузите ПК и выполните`nwsl --set-default-version 2" -ErrorAction SilentlyContinue
}
else
{
Write-Warning -Message "Restart PC and run`nwsl --set-default-version 2" -ErrorAction SilentlyContinue
Write-Error -Message "Restart PC and run`nwsl --set-default-version 2" -ErrorAction SilentlyContinue
}
}
# Disable certain Feature On Demand v2 (FODv2) capabilities
# Отключить определенные компоненты "Функции по требованию" (FODv2)
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Add-Type -AssemblyName PresentationCore, PresentationFramework
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
#region Variables
4 years ago
# Initialize an array list to store the FODv2 items to remove
# Создать массив имен дополнительных компонентов для удаления
$Capabilities = New-Object -TypeName System.Collections.ArrayList($null)
4 years ago
# The following FODv2 items will have their checkboxes checked, recommending the user to remove them
# Следующие дополнительные компоненты будут иметь чекбоксы отмеченными. Рекомендуются к удалению
$CheckedCapabilities = @(
# Microsoft Quick Assist
# Быстрая поддержка (Майкрософт)
4 years ago
"App.Support.QuickAssist*",
# Windows Media Player
# Проигрыватель Windows Media
"Media.WindowsMediaPlayer*"
)
4 years ago
# If device is not a laptop disable "Hello.Face*" too
# Если устройство не является ноутбуком, отключить также и "Hello.Face"
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
if ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -ne 2)
{
4 years ago
# Windows Hello
$CheckedCapabilities += "Hello.Face*"
}
4 years ago
# The following FODv2 items will be shown, but their checkboxes would be clear
# Следующие дополнительные компоненты будут видны, но их чекбоксы не будут отмечены
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$ExcludedCapabilities = @(
# The DirectX Database to configure and optimize apps when multiple Graphics Adapters are present
# База данных DirectX для настройки и оптимизации приложений при наличии нескольких графических адаптеров
4 years ago
"DirectX\.Configuration\.Database",
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Language components
# Языковые компоненты
4 years ago
"Language\.",
# Notepad
# Блокнот
"Microsoft.Windows.Notepad*",
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Mail, contacts, and calendar sync component
# Компонент синхронизации почты, контактов и календаря
4 years ago
"OneCoreUAP\.OneSync",
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Management of printers, printer drivers, and printer servers
# Управление принтерами, драйверами принтеров и принт-серверами
4 years ago
"Print\.Management\.Console",
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Features critical to Windows functionality
# Компоненты, критичные для работоспособности Windows
"Windows\.Client\.ShellComponents"
)
#endregion Variables
#region XAML Markup
4 years ago
# The section defines the design of the upcoming dialog box
# Раздел, определяющий форму диалогового окна
[xml]$XAML = '
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
Name="Window"
MinHeight="450" MinWidth="400"
SizeToContent="Width" WindowStartupLocation="CenterScreen"
TextOptions.TextFormattingMode="Display" SnapsToDevicePixels="True"
FontFamily="Segoe UI" FontSize="12" ShowInTaskbar="False">
<Window.Resources>
<Style TargetType="StackPanel">
<Setter Property="Orientation" Value="Horizontal"/>
</Style>
<Style TargetType="CheckBox">
<Setter Property="Margin" Value="10, 10, 5, 10"/>
<Setter Property="IsChecked" Value="True"/>
</Style>
<Style TargetType="TextBlock">
<Setter Property="Margin" Value="5, 10, 10, 10"/>
</Style>
<Style TargetType="Button">
<Setter Property="Margin" Value="20"/>
<Setter Property="Padding" Value="10"/>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ScrollViewer Name="Scroll" Grid.Row="0"
HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto">
<StackPanel Name="PanelContainer" Orientation="Vertical"/>
</ScrollViewer>
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
<Button Name="Button" Grid.Row="1"/>
</Grid>
</Window>
'
#endregion XAML Markup
$Reader = (New-Object -TypeName System.Xml.XmlNodeReader -ArgumentList $XAML)
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Form = [Windows.Markup.XamlReader]::Load($Reader)
$XAML.SelectNodes("//*[@*[contains(translate(name(.),'n','N'),'Name')]]") | ForEach-Object -Process {
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Set-Variable -Name ($_.Name) -Value $Form.FindName($_.Name) -Scope Global
}
#region Functions
function Get-CheckboxClicked
{
[CmdletBinding()]
param
(
[Parameter(
Mandatory = $true,
ValueFromPipeline = $true
)]
[ValidateNotNull()]
$CheckBox
)
$Capability = $CheckBox.Parent.Children[1].Text
if ($CheckBox.IsChecked)
{
[void]$Capabilities.Add($Capability)
}
else
{
[void]$Capabilities.Remove($Capability)
}
if ($Capabilities.Count -gt 0)
{
$Button.IsEnabled = $true
}
else
{
$Button.IsEnabled = $false
}
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
}
function DeleteButton
{
[void]$Window.Close()
$OFS = "|"
Get-WindowsCapability -Online | Where-Object -FilterScript {$_.Name -cmatch $Capabilities} | Remove-WindowsCapability -Online
$OFS = " "
}
function Add-CapabilityControl
{
[CmdletBinding()]
param
(
[Parameter(
Mandatory = $true,
ValueFromPipeline = $true
)]
[ValidateNotNull()]
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
[string]
$Capability
)
$CheckBox = New-Object -TypeName System.Windows.Controls.CheckBox
$CheckBox.Add_Click({Get-CheckboxClicked -CheckBox $_.Source})
$TextBlock = New-Object -TypeName System.Windows.Controls.TextBlock
$TextBlock.Text = $Capability
$StackPanel = New-Object -TypeName System.Windows.Controls.StackPanel
[void]$StackPanel.Children.Add($CheckBox)
[void]$StackPanel.Children.Add($TextBlock)
[void]$PanelContainer.Children.Add($StackPanel)
$CheckBox.IsChecked = $false
if ($CheckedCapabilities | Where-Object -FilterScript {$Capability -like $_})
{
$CheckBox.IsChecked = $true
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# If capability checked, add to the array list to remove
# Если пакет выделен, то добавить в массив для удаления
[void]$Capabilities.Add($Capability)
}
}
#endregion Functions
#region Events Handlers
# Window Loaded Event
$Window.Add_Loaded({
$OFS = "|"
(Get-WindowsCapability -Online | Where-Object -FilterScript {($_.State -eq "Installed") -and ($_.Name -cnotmatch $ExcludedCapabilities)}).Name | ForEach-Object -Process {
Add-CapabilityControl -Capability $_
}
$OFS = " "
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
if ($RU)
{
$Window.Title = "Удалить дополнительные компоненты"
$Button.Content = "Удалить"
}
else
{
4 years ago
$Window.Title = "Optional features (FODv2) to remove"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Button.Content = "Uninstall"
}
})
# Button Click Event
$Button.Add_Click({DeleteButton})
#endregion Events Handlers
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if (Get-WindowsCapability -Online | Where-Object -FilterScript {($_.State -eq "Installed") -and ($_.Name -cnotmatch ($ExcludedCapabilities -join "|"))})
{
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
4 years ago
Write-Verbose -Message "Диалоговое окно открывается..." -Verbose
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
else
{
4 years ago
Write-Verbose -Message "Displaying the dialog box..." -Verbose
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
4 years ago
# Display the dialog box
# Отобразить диалоговое окно
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Form.ShowDialog() | Out-Null
}
else
{
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
4 years ago
Write-Verbose -Message "Отсутствуют данные" -Verbose
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
else
{
4 years ago
Write-Verbose -Message "Nothing to display" -Verbose
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
}
4 years ago
# Opt-in to Microsoft Update service, so to receive updates for other Microsoft products
# Подключаться к службе Microsoft Update так, чтобы при обновлении Windows получать обновления для других продуктов Майкрософт
(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "")
4 years ago
# Do not let UWP apps run in the background, except the followings... (current user only)
# Не разрешать UWP-приложениям работать в фоновом режиме, кроме следующих... (только для текущего пользователя)
Get-ChildItem -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications | ForEach-Object -Process {
Remove-ItemProperty -Path $_.PsPath -Name * -Force
}
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
$ExcludedBackgroundApps = @(
4 years ago
# Lock screen app
# Экран блокировки
"Microsoft.LockApp*",
# Content Delivery Manager (delivers Windows Spotlight wallpapers to the lock screen)
# Content Delivery Manager (доставляет обои для Windows Spotlight на экран блокировки)
"Microsoft.Windows.ContentDeliveryManager*",
# Cortana
4 years ago
"Microsoft.Windows.Cortana*",
# Windows Search
"Microsoft.Windows.Search*",
# Windows Security
# Безопасность Windows
4 years ago
"Microsoft.Windows.SecHealthUI*",
# Windows Shell Experience (Action center, snipping support, toast notification, touch screen keyboard)
# Windows Shell Experience (Центр уведомлений, приложение "Ножницы", тостовые уведомления, сенсорная клавиатура)
"Microsoft.Windows.ShellExperienceHost*",
# The Start menu
# Меню "Пуск"
"Microsoft.Windows.StartMenuExperienceHost*",
# Microsoft Store
"Microsoft.WindowsStore*"
)
$OFS = "|"
4 years ago
Get-ChildItem -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications | Where-Object -FilterScript {$_.PSChildName -cnotmatch $ExcludedBackgroundApps} | ForEach-Object -Process {
New-ItemProperty -Path $_.PsPath -Name Disabled -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path $_.PsPath -Name DisabledByUser -PropertyType DWord -Value 1 -Force
}
$OFS = " "
4 years ago
# Open "Background apps" page
# Открыть раздел "Фоновые приложения"
Start-Process -FilePath ms-settings:privacy-backgroundapps
4 years ago
# Set the power management scheme based on a device category
# Установить схему управления питанием в зависимости от категории устройства
if ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -eq 2)
{
# Balanced for laptop
# Сбалансированная для ноутбука
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
POWERCFG /SETACTIVE SCHEME_BALANCED
}
v4.0.24 11.03.2020 ## Updated - Turn on recycle bin files delete confirmation - Now configuring without using policy. To delete unnecessary key execute ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Turn off Delivery Optimization - Now using cmdlets. To delete unnecessary key execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Rearranged &#34;Set power management scheme for desktop and laptop&#34; section - Renamed sections - &#34;Turn off hibernate&#34; to &#34;Turn off hibernate for devices, except laptops&#34; - &#34;Turn off location for this device&#34; to &#34;Turn off location access for this device&#34; - Minor changes. ## Обновлено - Запрашивать подтверждение на удаление файлов в корзину - Теперь настройка производится без использования политики. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Отключить оптимизацию доставки - Теперь используются командлеты. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Перестроен раздел &#34;Установить схему управления питания для стационарного ПК и ноутбука&#34; - Переименованы разделы - &#34;Отключить гибридный спящий режим&#34; в &#34;Отключить местоположение для этого устройства&#34; - &#34;Отключить режим гибернации для устройств, кроме ноутбуков&#34; в &#34;Отключить доступ к сведениям о расположении для этого устройства&#34; - Незначительные изменения.
5 years ago
else
{
# High performance for desktop
# Высокая производительность для стационарного ПК
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
POWERCFG /SETACTIVE SCHEME_MIN
v4.0.24 11.03.2020 ## Updated - Turn on recycle bin files delete confirmation - Now configuring without using policy. To delete unnecessary key execute ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Turn off Delivery Optimization - Now using cmdlets. To delete unnecessary key execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Rearranged &#34;Set power management scheme for desktop and laptop&#34; section - Renamed sections - &#34;Turn off hibernate&#34; to &#34;Turn off hibernate for devices, except laptops&#34; - &#34;Turn off location for this device&#34; to &#34;Turn off location access for this device&#34; - Minor changes. ## Обновлено - Запрашивать подтверждение на удаление файлов в корзину - Теперь настройка производится без использования политики. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Отключить оптимизацию доставки - Теперь используются командлеты. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Перестроен раздел &#34;Установить схему управления питания для стационарного ПК и ноутбука&#34; - Переименованы разделы - &#34;Отключить гибридный спящий режим&#34; в &#34;Отключить местоположение для этого устройства&#34; - &#34;Отключить режим гибернации для устройств, кроме ноутбуков&#34; в &#34;Отключить доступ к сведениям о расположении для этого устройства&#34; - Незначительные изменения.
5 years ago
}
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Use latest installed .NET runtime for all apps
4 years ago
# Использовать последнюю установленную среду выполнения .NET для всех приложений
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\.NETFramework -Name OnlyUseLatestCLR -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NETFramework -Name OnlyUseLatestCLR -PropertyType DWord -Value 1 -Force
4 years ago
# Do not allow the computer (if device is not a laptop) to turn off all the network adapters to save power
# Запретить отключение всех сетевых адаптеров для экономии энергии (если устройство не является ноутбуком)
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
if ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -ne 2)
{
4 years ago
$Adapters = Get-NetAdapter -Physical | Get-NetAdapterPowerManagement | Where-Object -FilterScript {$_.AllowComputerToTurnOffDevice -ne "Unsupported"}
foreach ($Adapter in $Adapters)
{
4 years ago
$Adapter.AllowComputerToTurnOffDevice = "Disabled"
$Adapter | Set-NetAdapterPowerManagement
}
}
# Set the default input method to the English language
# Установить метод ввода по умолчанию на английский язык
4 years ago
Set-WinDefaultInputMethodOverride -InputTip "0409:00000409"
4 years ago
# Enable Windows Sandbox
# Включить Windows Sandbox
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
if (Get-WindowsEdition -Online | Where-Object -FilterScript {$_.Edition -eq "Professional" -or $_.Edition -like "Enterprise*"})
{
4 years ago
# Checking whether x86 virtualization is enabled in the firmware
# Проверка: включена ли в настройках UEFI аппаратная виртуализация x86
if ((Get-CimInstance -ClassName CIM_Processor).VirtualizationFirmwareEnabled -eq $true)
{
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
Enable-WindowsOptionalFeature -FeatureName Containers-DisposableClientVM -All -Online -NoRestart
}
else
{
try
{
4 years ago
# Determining whether Hyper-V is enabled
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
# Проверка: включен ли Hyper-V
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
if ((Get-CimInstance -ClassName CIM_ComputerSystem).HypervisorPresent -eq $true)
{
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
Enable-WindowsOptionalFeature -FeatureName Containers-DisposableClientVM -All -Online -NoRestart
}
}
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
catch [Exception]
{
if ($RU)
{
Write-Error -Message "Включите в BIOS виртуализацию" -ErrorAction SilentlyContinue
}
else
{
Write-Error -Message "Enable Virtualization in BIOS" -ErrorAction SilentlyContinue
}
}
}
}
4 years ago
# Change the location of the user folders to %SystemDrive% (current user only)
# Изменить расположение пользовательских папок на %SystemDrive% (только для текущего пользователя)
function UserShellFolder
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
<#
.SYNOPSIS
4 years ago
Change the location of the each user folders using SHSetKnownFolderPath function
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
.EXAMPLE
4 years ago
UserShellFolder -UserFolder Desktop -FolderPath "$env:SystemDrive:\Desktop" -RemoveDesktopINI
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
.NOTES
User files or folders won't me moved to the new location
4 years ago
The RemoveDesktopINI argument removes desktop.ini in the old user shell folder
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
#>
[CmdletBinding()]
param
(
[Parameter(Mandatory = $true)]
[ValidateSet("Desktop", "Documents", "Downloads", "Music", "Pictures", "Videos")]
[string]
$UserFolder,
[Parameter(Mandatory = $true)]
[string]
4 years ago
$FolderPath,
[Parameter(Mandatory = $false)]
[switch]
$RemoveDesktopINI
)
function KnownFolderPath
{
<#
.SYNOPSIS
Redirect user folders to a new location
.EXAMPLE
4 years ago
KnownFolderPath -KnownFolder Desktop -Path "$env:SystemDrive:\Desktop"
.NOTES
User files or folders won't me moved to the new location
#>
[CmdletBinding()]
param
(
[Parameter(Mandatory = $true)]
[ValidateSet("Desktop", "Documents", "Downloads", "Music", "Pictures", "Videos")]
[string]
$KnownFolder,
[Parameter(Mandatory = $true)]
[string]
$Path
)
$KnownFolders = @{
"Desktop" = @("B4BFCC3A-DB2C-424C-B029-7FE99A87C641");
"Documents" = @("FDD39AD0-238F-46AF-ADB4-6C85480369C7", "f42ee2d3-909f-4907-8871-4c22fc0bf756");
"Downloads" = @("374DE290-123F-4565-9164-39C4925E467B", "7d83ee9b-2244-4e70-b1f5-5393042af1e4");
"Music" = @("4BD8D571-6D19-48D3-BE97-422220080E43", "a0c69a99-21c8-4671-8703-7934162fcf1d");
"Pictures" = @("33E28130-4E1E-4676-835A-98395C3BC3BB", "0ddd015d-b06c-45d5-8c4c-f59713854639");
"Videos" = @("18989B1D-99B5-455B-841C-AB7C74E4DDFC", "35286a68-3c57-41a1-bbb1-0eae73d76c95");
}
$Signature = @{
Namespace = "WinAPI"
Name = "KnownFolders"
Language = "CSharp"
MemberDefinition = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
[DllImport("shell32.dll")]
public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, IntPtr token, [MarshalAs(UnmanagedType.LPWStr)] string path);
"@
}
if (-not ("WinAPI.KnownFolders" -as [type]))
{
Add-Type @Signature
}
foreach ($guid in $KnownFolders[$KnownFolder])
{
[WinAPI.KnownFolders]::SHSetKnownFolderPath([ref]$guid, 0, 0, $Path)
}
(Get-Item -Path $Path -Force).Attributes = "ReadOnly"
}
$UserShellFoldersRegName = @{
"Desktop" = "Desktop"
"Documents" = "Personal"
"Downloads" = "{374DE290-123F-4565-9164-39C4925E467B}"
"Music" = "My Music"
"Pictures" = "My Pictures"
"Videos" = "My Video"
}
$UserShellFoldersGUID = @{
"Desktop" = "{754AC886-DF64-4CBA-86B5-F7FBF4FBCEF5}"
"Documents" = "{F42EE2D3-909F-4907-8871-4C22FC0BF756}"
"Downloads" = "{7D83EE9B-2244-4E70-B1F5-5393042AF1E4}"
"Music" = "{A0C69A99-21C8-4671-8703-7934162FCF1D}"
"Pictures" = "{0DDD015D-B06C-45D5-8C4C-F59713854639}"
"Videos" = "{35286A68-3C57-41A1-BBB1-0EAE73D76C95}"
}
4 years ago
# Contents of the hidden desktop.ini file for each type of user folders
# Содержимое скрытого файла desktop.ini для каждого типа пользовательских папок
$DesktopINI = @{
"Desktop" = "",
"[.ShellClassInfo]",
"LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21769",
"IconResource=%SystemRoot%\system32\imageres.dll,-183"
"Documents" = "",
"[.ShellClassInfo]",
"LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770",
"IconResource=%SystemRoot%\system32\imageres.dll,-112",
"IconFile=%SystemRoot%\system32\shell32.dll",
"IconIndex=-235"
"Downloads" = "",
"[.ShellClassInfo]","LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21798",
"IconResource=%SystemRoot%\system32\imageres.dll,-184"
"Music" = "",
"[.ShellClassInfo]","LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21790",
"InfoTip=@%SystemRoot%\system32\shell32.dll,-12689",
"IconResource=%SystemRoot%\system32\imageres.dll,-108",
"IconFile=%SystemRoot%\system32\shell32.dll","IconIndex=-237"
"Pictures" = "",
"[.ShellClassInfo]",
"LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21779",
"InfoTip=@%SystemRoot%\system32\shell32.dll,-12688",
"IconResource=%SystemRoot%\system32\imageres.dll,-113",
"IconFile=%SystemRoot%\system32\shell32.dll",
"IconIndex=-236"
"Videos" = "",
"[.ShellClassInfo]",
"LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21791",
"InfoTip=@%SystemRoot%\system32\shell32.dll,-12690",
"IconResource=%SystemRoot%\system32\imageres.dll,-189",
"IconFile=%SystemRoot%\system32\shell32.dll","IconIndex=-238"
}
# Determining the current user folder path
# Определяем текущее значение пути пользовательской папки
4 years ago
$UserShellFolderRegValue = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name $UserShellFoldersRegName[$UserFolder]
if ($UserShellFolderRegValue -ne $FolderPath)
{
if ((Get-ChildItem -Path $UserShellFolderRegValue | Measure-Object).Count -ne 0)
{
if ($RU)
{
Write-Error -Message "В папке $UserShellFolderRegValue осталась файлы. Переместите их вручную в новое расположение" -ErrorAction SilentlyContinue
}
else
{
Write-Error -Message "Some files left in the $UserShellFolderRegValue folder. Move them manually to a new location" -ErrorAction SilentlyContinue
}
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Creating a new folder if there is no one
# Создаем новую папку, если таковая отсутствует
if (-not (Test-Path -Path $FolderPath))
{
New-Item -Path $FolderPath -ItemType Directory -Force
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
4 years ago
# Removing old desktop.ini
# Удаляем старый desktop.ini
if ($RemoveDesktopINI.IsPresent)
{
Remove-Item -Path "$UserShellFolderRegValue\desktop.ini" -Force
}
KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath
4 years ago
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name $UserShellFoldersGUID[$UserFolder] -PropertyType ExpandString -Value $FolderPath -Force
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
Set-Content -Path "$FolderPath\desktop.ini" -Value $DesktopINI[$UserFolder] -Encoding Unicode -Force
(Get-Item -Path "$FolderPath\desktop.ini" -Force).Attributes = "Hidden", "System", "Archive"
(Get-Item -Path "$FolderPath\desktop.ini" -Force).Refresh()
}
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
<#
.SYNOPSIS
The "Show menu" function using PowerShell with the up/down arrow keys and enter key to make a selection
.EXAMPLE
ShowMenu -Menu $ListOfItems -Default $DefaultChoice
.NOTES
Doesn't work in PowerShell ISE
#>
function ShowMenu
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
[CmdletBinding()]
param
(
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
[Parameter()]
[string]
$Title,
[Parameter(Mandatory = $true)]
[array]
$Menu,
[Parameter(Mandatory = $true)]
[int]
$Default
)
Write-Information -MessageData $Title -InformationAction Continue
$minY = [Console]::CursorTop
$y = [Math]::Max([Math]::Min($Default, $Menu.Count), 0)
do
{
[Console]::CursorTop = $minY
[Console]::CursorLeft = 0
$i = 0
foreach ($item in $Menu)
{
if ($i -ne $y)
{
Write-Information -MessageData (' {0}. {1} ' -f ($i+1), $item) -InformationAction Continue
}
else
{
Write-Information -MessageData ('[ {0}. {1} ]' -f ($i+1), $item) -InformationAction Continue
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
}
$i++
}
$k = [Console]::ReadKey()
switch ($k.Key)
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
{
"UpArrow"
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
{
if ($y -gt 0)
{
$y--
}
}
"DownArrow"
{
if ($y -lt ($Menu.Count - 1))
{
$y++
}
}
"Enter"
{
return $Menu[$y]
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
}
}
}
while ($k.Key -notin ([ConsoleKey]::Escape, [ConsoleKey]::Enter))
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Store all drives letters to use them within ShowMenu function
# Сохранить все буквы диска, чтобы использовать их в функции ShowMenu
if ($RU)
{
Write-Verbose "Получение дисков..." -Verbose
}
else
{
Write-Verbose "Retrieving drives..." -Verbose
}
$DriveLetters = @((Get-Disk | Where-Object -FilterScript {$_.BusType -ne "USB"} | Get-Partition | Get-Volume | Where-Object -FilterScript {$null -ne $_.DriveLetter}).DriveLetter | Sort-Object)
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
4 years ago
# If the number of disks is more than one, set the second drive in the list as default drive
# Если количество дисков больше одного, сделать второй диск в списке диском по умолчанию
if ($DriveLetters.Count -gt 1)
{
$Default = 1
}
else
{
$Default = 0
}
# Desktop
# Рабочий стол
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Title = ""
if ($RU)
{
4 years ago
$Message = "Изменить местоположение папки `"Рабочий стол`"?"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nФайлы не будут перенесены"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Изменить", "&Пропустить"
}
else
{
4 years ago
$Message = "Would you like to change the location of the Desktop folder?"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nFiles will not be moved"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Change", "&Skip"
}
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
if ($RU)
{
$Title = "`nВыберите диск, в корне которого будет создана папка для `"Рабочий стол`""
}
else
{
$Title = "`nSelect the drive within the root of which the `"Desktop`" folder will be created"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
}
$SelectedDrive = ShowMenu -Title $Title -Menu $DriveLetters -Default $Default
4 years ago
UserShellFolder -UserFolder Desktop -FolderPath "${SelectedDrive}:\Desktop" -RemoveDesktopINI
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
# Documents
# Документы
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Title = ""
if ($RU)
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Message = "Чтобы изменить местоположение папки `"Документы`", введите необходимую букву"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nФайлы не будут перенесены"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Изменить", "&Пропустить"
}
else
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Message = "To change the location of the Documents folder enter the required letter"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nFiles will not be moved"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Change", "&Skip"
}
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
if ($RU)
{
$Title = "`nВыберите диск, в корне которого будет создана папка для `"Документы`""
}
else
{
$Title = "`nSelect the drive within the root of which the `"Documents`" folder will be created"
}
$SelectedDrive = ShowMenu -Title $Title -Menu $DriveLetters -Default $Default
4 years ago
UserShellFolder -UserFolder Documents -FolderPath "${SelectedDrive}:\Documents" -RemoveDesktopINI
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
# Downloads
# Загрузки
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Title = ""
if ($RU)
{
4 years ago
$Message = "Изменить местоположение папки `"Загрузки`"?"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nФайлы не будут перенесены"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Изменить", "&Пропустить"
}
else
{
4 years ago
$Message = "Would you like to change the location of the Downloads folder?"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nFiles will not be moved"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Change", "&Skip"
}
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
if ($RU)
{
$Title = "`nВыберите диск, в корне которого будет создана папка для `"Загрузки`""
}
else
{
$Title = "`nSelect the drive within the root of which the `"Downloads`" folder will be created"
}
$SelectedDrive = ShowMenu -Title $Title -Menu $DriveLetters -Default $Default
4 years ago
UserShellFolder -UserFolder Downloads -FolderPath "${SelectedDrive}:\Downloads" -RemoveDesktopINI
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
# Music
# Музыка
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Title = ""
if ($RU)
{
4 years ago
$Message = "Изменить местоположение папки `"Музыка`"?"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nФайлы не будут перенесены"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Изменить", "&Пропустить"
}
else
{
4 years ago
$Message = "Would you like to change the location of the Music folder?"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nFiles will not be moved"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Change", "&Skip"
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
if ($RU)
{
$Title = "`nВыберите диск, в корне которого будет создана папка для `"Музыка`""
}
else
{
$Title = "`nSelect the drive within the root of which the `"Music`" folder will be created"
}
$SelectedDrive = ShowMenu -Title $Title -Menu $DriveLetters -Default $Default
4 years ago
UserShellFolder -UserFolder Music -FolderPath "${SelectedDrive}:\Music" -RemoveDesktopINI
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
# Pictures
# Изображения
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Title = ""
if ($RU)
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Message = "Чтобы изменить местоположение папки `"Изображения`", введите необходимую букву"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nФайлы не будут перенесены"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Изменить", "&Пропустить"
}
else
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Message = "To change the location of the Pictures folder enter the required letter"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nFiles will not be moved"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Change", "&Skip"
}
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
if ($RU)
{
$Title = "`nВыберите диск, в корне которого будет создана папка для `"Изображения`""
}
else
{
$Title = "`nSelect the drive within the root of which the `"Pictures`" folder will be created"
}
$SelectedDrive = ShowMenu -Title $Title -Menu $DriveLetters -Default $Default
4 years ago
UserShellFolder -UserFolder Pictures -FolderPath "${SelectedDrive}:\Pictures" -RemoveDesktopINI
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
# Videos
# Видео
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Title = ""
if ($RU)
{
4 years ago
$Message = "Изменить местоположение папки `"Видео`"?"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nФайлы не будут перенесены"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Изменить", "&Пропустить"
}
else
{
4 years ago
$Message = "Would you like to change the location of the Videos folder?"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Write-Warning -Message "`nFiles will not be moved"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Options = "&Change", "&Skip"
}
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
if ($RU)
{
$Title = "`nВыберите диск, в корне которого будет создана папка для `"Видео`""
}
else
{
$Title = "`nSelect the drive within the root of which the `"Videos`" folder will be created"
}
$SelectedDrive = ShowMenu -Title $Title -Menu $DriveLetters -Default $Default
4 years ago
UserShellFolder -UserFolder Videos -FolderPath "${SelectedDrive}:\Videos" -RemoveDesktopINI
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
4 years ago
# Save screenshots by pressing Win+PrtScr to the Desktop folder (current user only)
# Сохранять скриншоты по нажатию Win+PrtScr в папку "рабочий стол" (только для текущего пользователя)
$DesktopFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Type ExpandString -Value $DesktopFolder -Force
# Save all opened folders in order to restore them after File Explorer restart
# Сохранить все открытые папки, чтобы восстановить их после перезапуска проводника
Clear-Variable -Name OpenedFolders -Force -ErrorAction Ignore
$OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
4 years ago
# In order for the changes to take effect the File Explorer process has to be restarted
# Чтобы изменения вступили в силу, необходимо перезапустить процесс проводника
Stop-Process -Name explorer -Force
4 years ago
# Restore closed folders
# Восстановить закрытые папки
foreach ($OpenedFolder in $OpenedFolders)
{
if (Test-Path -Path $OpenedFolder)
{
Invoke-Item -Path $OpenedFolder
}
}
# Turn on automatic recommended troubleshooting and tell when problems get fixed
# Автоматически запускать средства устранения неполадок, а затем сообщать об устранении проблем
if (-not (Test-Path -Path HKLM:\SOFTWARE\Microsoft\WindowsMitigation))
{
New-Item -Path HKLM:\SOFTWARE\Microsoft\WindowsMitigation -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsMitigation -Name UserPreference -PropertyType DWord -Value 3 -Force
4 years ago
# Set the OS level of diagnostic data gathering to full
# Установить уровень сбора диагностических сведений ОС на максимальный
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection -Name AllowTelemetry -PropertyType DWord -Value 3 -Force
4 years ago
# Launch folder windows in a separate process (current user only)
# Запускать окна с папками в отдельном процессе (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name SeparateProcess -PropertyType DWord -Value 1 -Force
4 years ago
# Disable and delete reserved storage after the next update installation
# Отключить и удалить зарезервированное хранилище после следующей установки обновлений
v4.0.24 11.03.2020 ## Updated - Turn on recycle bin files delete confirmation - Now configuring without using policy. To delete unnecessary key execute ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Turn off Delivery Optimization - Now using cmdlets. To delete unnecessary key execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Rearranged &#34;Set power management scheme for desktop and laptop&#34; section - Renamed sections - &#34;Turn off hibernate&#34; to &#34;Turn off hibernate for devices, except laptops&#34; - &#34;Turn off location for this device&#34; to &#34;Turn off location access for this device&#34; - Minor changes. ## Обновлено - Запрашивать подтверждение на удаление файлов в корзину - Теперь настройка производится без использования политики. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force ``` - Отключить оптимизацию доставки - Теперь используются командлеты. Чтобы удалить ненужный параметр, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force ``` - Перестроен раздел &#34;Установить схему управления питания для стационарного ПК и ноутбука&#34; - Переименованы разделы - &#34;Отключить гибридный спящий режим&#34; в &#34;Отключить местоположение для этого устройства&#34; - &#34;Отключить режим гибернации для устройств, кроме ноутбуков&#34; в &#34;Отключить доступ к сведениям о расположении для этого устройства&#34; - Незначительные изменения.
5 years ago
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager -Name PassedPolicy -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager -Name ShippedWithReserves -PropertyType DWord -Value 0 -Force
4 years ago
# Disable help lookup via F1 (current user only)
# Отключить открытие справки по нажатию F1 (только для текущего пользователя)
if (-not (Test-Path -Path "HKCU:\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64"))
{
4 years ago
New-Item -Path "HKCU:\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64" -Force
}
4 years ago
New-ItemProperty -Path "HKCU:\SOFTWARE\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64" -Name "(Default)" -PropertyType String -Value "" -Force
# Turn on Num Lock at startup
# Включить Num Lock при загрузке
New-ItemProperty -Path "Registry::HKEY_USERS\.DEFAULT\Control Panel\Keyboard" -Name InitialKeyboardIndicators -PropertyType String -Value 2147483650 -Force
4 years ago
# Do not activate StickyKey after tapping the Shift key 5 times (current user only)
# Не включать залипание клавиши Shift после 5 нажатий (только для текущего пользователя)
New-ItemProperty -Path "HKCU:\Control Panel\Accessibility\StickyKeys" -Name Flags -PropertyType String -Value 506 -Force
4 years ago
# Do not use AutoPlay for all media and devices (current user only)
# Не использовать автозапуск для всех носителей и устройств (только для текущего пользователя)
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers -Name DisableAutoplay -PropertyType DWord -Value 1 -Force
4 years ago
# Disable thumbnail cache removal
# Отключить удаление кэша миниатюр
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache" -Name Autorun -PropertyType DWord -Value 0 -Force
4 years ago
# Enable "Network Discovery" and "File and Printers Sharing" for workgroup networks
# Включить сетевое обнаружение и общий доступ к файлам и принтерам для рабочих групп
19.06.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Removed sections due to Network troubleshooter is unable to start DPS service - Stop event trace sessions - Turn off the data collectors at the next computer restart - To restore Network troubleshooter download attached DiagLog_EN.xml and execute in CMD ```cmd :: Restart needed logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_EN.xml&#34; ``` - Updated &#34;Turn on logging for all Windows PowerShell modules&#34; section - Fixed typo in registry path key creation - To restore execute ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ``` ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Удалены разделы в связи с тем, что средство устранения сетевых неполадок не могло запустить службу DPS - Остановить сеансы отслеживания событий - Отключить сборщики данных при следующем запуске ПК - Чтобы восстановить работу средства устранения сетевых неполадок, скачайте прикрепленный файл DiagLog_RU.xml и выполните в CMD ```cmd :: Необходима перезагрузка logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_RU.xml&#34; ``` - Обновлен раздел &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34; - Исправлена ошибка в пути создания ключа - Чтобы восстановить, выполните ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ```
4 years ago
if ((Get-CimInstance -ClassName CIM_ComputerSystem).PartOfDomain -eq $false)
{
4 years ago
$FirewallRules = @(
# File and printer sharing
# Общий доступ к файлам и принтерам
"@FirewallAPI.dll,-32752",
# Network discovery
# Сетевое обнаружение
"@FirewallAPI.dll,-28502"
)
Set-NetFirewallRule -Group $FirewallRules -Profile Private -Enabled True
}
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
# Automatically adjust active hours for me based on daily usage
# Автоматически изменять период активности для этого устройства на основе действий
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force
4 years ago
# Перезапускать это устройство как можно быстрее, если для установки обновления требуется перезагрузка
# Restart this device as soon as possible when a restart is required to install an update
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name IsExpedited -PropertyType DWord -Value 1 -Force
#endregion System
#region Start menu
4 years ago
# Do not show recently added apps in the Start menu
# Не показывать недавно добавленные приложения в меню "Пуск"
if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer))
{
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -PropertyType DWord -Value 1 -Force
4 years ago
# Do not show app suggestions in the Start menu
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
# Не показывать рекомендации в меню "Пуск"
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338388Enabled -PropertyType DWord -Value 0 -Force
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Run the Command Prompt shortcut from the Start menu as Administrator
# Запускать ярлык командной строки в меню "Пуск" от имени Администратора
[byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start menu\Programs\System Tools\Command Prompt.lnk" -Encoding Byte -Raw
$bytes[0x15] = $bytes[0x15] -bor 0x20
Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start menu\Programs\System Tools\Command Prompt.lnk" -Value $bytes -Encoding Byte -Force
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Unpin all the Start tiles
# Открепить все ярлыки от начального экрана
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Title = "Ярлыки начального экрана"
4 years ago
$Message = "Открепить все ярлыки от начального экрана?"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Открепить", "&Пропустить"
}
else
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Title = "Start menu tiles"
4 years ago
$Message = "Would you like to unpin all the Start menu tiles?"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Unpin", "&Skip"
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"0"
{
$StartMenuLayout = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6" />
</StartLayoutCollection>
</DefaultLayoutOverride>
</LayoutModificationTemplate>
"@
$StartMenuLayoutPath = "$env:TEMP\StartMenuLayout.xml"
# Saving StartMenuLayout.xml in UTF-8 encoding
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
# Сохраняем StartMenuLayout.xml в кодировке UTF-8
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Set-Content -Path $StartMenuLayoutPath -Value (New-Object System.Text.UTF8Encoding).GetBytes($StartMenuLayout) -Encoding Byte -Force
4 years ago
# Temporarily disable changing the Start menu layout
# Временно выключаем возможность редактировать начальный экран меню "Пуск"
if (-not (Test-Path -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer))
{
New-Item -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name LockedStartLayout -Value 1 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name StartLayoutFile -Value $StartMenuLayoutPath -Force
# Restart the Start menu
# Перезапустить меню "Пуск"
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
Stop-Process -Name StartMenuExperienceHost -Force -ErrorAction Ignore
Start-Sleep -Seconds 3
Remove-ItemProperty -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name LockedStartLayout -Force
Remove-ItemProperty -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name StartLayoutFile -Force
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
Stop-Process -Name StartMenuExperienceHost -Force -ErrorAction Ignore
4 years ago
Get-Item -Path $StartMenuLayoutPath | Remove-Item -Force
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"1"
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
# Pin the shortcuts to Start
# Закрепить ярлыки на начальном экране
if (Test-Path -Path $PSScriptRoot\syspin.exe)
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
{
$syspin = $true
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
}
else
{
try
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
{
# Downloading syspin.exe
# Скачиваем syspin.exe
# http://www.technosys.net/products/utils/pintotaskbar
# SHA256: 6967E7A3C2251812DD6B3FA0265FB7B61AADC568F562A98C50C345908C6E827
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
if ((Invoke-WebRequest -Uri https://www.google.com -UseBasicParsing -DisableKeepAlive -Method Head).StatusDescription)
{
$Parameters = @{
Uri = "https://github.com/farag2/Windows-10-Setup-Script/raw/master/Start%20menu%20pinning/syspin.exe"
OutFile = "$PSScriptRoot\syspin.exe"
Verbose = [switch]::Present
}
Invoke-WebRequest @Parameters
$syspin = $true
}
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
}
catch
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
{
if ($Error.Exception.Status -eq "NameResolutionFailure")
{
if ($RU)
{
Write-Warning -Message "Отсутствует интернет-соединение" -ErrorAction SilentlyContinue
}
else
{
Write-Warning -Message "No Internet connection" -ErrorAction SilentlyContinue
}
}
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
}
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
if ($syspin -eq $true)
{
$Items = (New-Object -ComObject Shell.Application).NameSpace("shell:::{4234d49b-0245-4df3-b780-3893943456e1}").Items()
$ControlPanelLocalizedName = ($Items | Where-Object -FilterScript {$_.Path -eq "Microsoft.Windows.ControlPanel"}).Name
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
if ($RU)
{
Write-Verbose -Message "Ярлык `"$ControlPanelLocalizedName`" закрепляется на начальном экране" -Verbose
}
else
{
Write-Verbose -Message "`"$ControlPanelLocalizedName`" shortcut is being pinned to Start" -Verbose
}
4 years ago
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
# Check whether the Control Panel shortcut was ever pinned
# Проверка: закреплялся ли когда-нибудь ярлык панели управления
if (Test-Path -Path "$env:APPDATA\Microsoft\Windows\Start menu\Programs\$ControlPanelLocalizedName.lnk")
{
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
$Arguments = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
"$env:APPDATA\Microsoft\Windows\Start menu\Programs\$ControlPanelLocalizedName.lnk" "51201"
"@
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
Start-Process -FilePath $PSScriptRoot\syspin.exe -WindowStyle Hidden -ArgumentList $Arguments -Wait
}
else
{
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
# The "Pin" verb is not available on the control.exe file so the shortcut has to be created
# Глагол "Закрепить на начальном экране" недоступен для control.exe, поэтому необходимо создать ярлык
$Shell = New-Object -ComObject Wscript.Shell
$Shortcut = $Shell.CreateShortcut("$env:SystemRoot\System32\$ControlPanelLocalizedName.lnk")
$Shortcut.TargetPath = "$env:SystemRoot\System32\control.exe"
$Shortcut.Save()
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
$Arguments = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
"$env:SystemRoot\System32\$ControlPanelLocalizedName.lnk" "51201"
"@
Start-Process -FilePath $PSScriptRoot\syspin.exe -WindowStyle Hidden -ArgumentList $Arguments -Wait
Remove-Item -Path "$env:SystemRoot\System32\$ControlPanelLocalizedName.lnk" -Force
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
4 years ago
# Pin the old-style "Devices and Printers" shortcut to Start
# Закрепить ярлык старого формата "Устройства и принтеры" на начальном экране
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
$DevicesAndPrintersLocalizedName = (Get-ControlPanelItem -CanonicalName "Microsoft.DevicesAndPrinters").Name
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
if ($RU)
{
Write-Verbose -Message "Ярлык `"$DevicesAndPrintersLocalizedName`" закрепляется на начальном экране" -Verbose
}
else
{
Write-Verbose -Message "`"$DevicesAndPrintersLocalizedName`" shortcut is being pinned to Start" -Verbose
}
$Shell = New-Object -ComObject Wscript.Shell
$Shortcut = $Shell.CreateShortcut("$env:APPDATA\Microsoft\Windows\Start menu\Programs\System Tools\$DevicesAndPrintersLocalizedName.lnk")
$Shortcut.TargetPath = "control"
$Shortcut.Arguments = "printers"
$Shortcut.IconLocation = "$env:SystemRoot\system32\DeviceCenter.dll"
$Shortcut.Save()
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
# Pause for 3 sec, unless the "Devices and Printers" shortcut won't displayed in the Start menu
# Пауза на 3 с, иначе ярлык "Устройства и принтеры" не будет отображаться в меню "Пуск"
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
Start-Sleep -Seconds 3
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
$Arguments = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
"$env:APPDATA\Microsoft\Windows\Start menu\Programs\System Tools\$DevicesAndPrintersLocalizedName.lnk" "51201"
"@
Start-Process -FilePath $PSScriptRoot\syspin.exe -WindowStyle Hidden -ArgumentList $Arguments -Wait
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
4 years ago
# Pin the "Command Prompt" shortcut to Start
# Закрепить ярлык "Командную строку" на начальном экране
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
if ($RU)
{
Write-Verbose -Message "Ярлык `"Командная строка`" закрепляется на начальном экране" -Verbose
}
else
{
Write-Verbose -Message "`"Command Prompt`" shortcut is being pinned to Start" -Verbose
}
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
$Arguments = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
"$env:APPDATA\Microsoft\Windows\Start menu\Programs\System Tools\Command Prompt.lnk" "51201"
"@
Start-Process -FilePath $PSScriptRoot\syspin.exe -WindowStyle Hidden -ArgumentList $Arguments -Wait
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Restart the Start menu
# Перезапустить меню "Пуск"
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
Stop-Process -Name StartMenuExperienceHost -Force -ErrorAction Ignore
}
#endregion Start menu
#region UWP apps
<#
Uninstall UWP apps
4 years ago
A dialog box that enables the user to select packages to remove
App packages will not be installed for new users if "Uninstall for All Users" is checked
Add UWP apps packages names to the $UncheckedAppXPackages array list by retrieving their packages names using the following command:
(Get-AppxPackage -PackageTypeFilter Bundle -AllUsers).Name
Удалить UWP-приложения
4 years ago
Диалоговое окно, позволяющее пользователю отметить пакеты на удаление
Приложения не будут установлены для новых пользователе, если отмечено "Удалять для всех пользователей"
Добавьте имена пакетов UWP-приложений в массив $UncheckedAppXPackages, получив названия их пакетов с помощью команды:
(Get-AppxPackage -PackageTypeFilter Bundle -AllUsers).Name
#>
Add-Type -AssemblyName PresentationCore, PresentationFramework
#region Variables
4 years ago
# ArrayList containing the UWP apps to remove
# Массив имен UWP-приложений для удаления
$AppxPackages = New-Object -TypeName System.Collections.ArrayList($null)
4 years ago
# List of UWP apps that won't be recommended for removal
# UWP-приложения, которые не будут отмечены на удаление по умолчанию
$UncheckedAppxPackages = @(
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
# AMD Radeon UWP panel
# UWP-панель AMD Radeon
4 years ago
"AdvancedMicroDevicesInc*",
# iTunes
4 years ago
"AppleInc.iTunes",
# Intel Graphics Control Center
# UWP-панель Intel
4 years ago
"AppUp.IntelGraphicsControlPanel",
"AppUp.IntelGraphicsExperience",
# Sticky Notes
# Записки
4 years ago
"Microsoft.MicrosoftStickyNotes",
# Screen Sketch
# Набросок на фрагменте экрана
4 years ago
"Microsoft.ScreenSketch",
# Photos (and Video Editor)
# Фотографии и Видеоредактор
4 years ago
"Microsoft.Windows.Photos",
"Microsoft.Photos.MediaEngineDLC",
# Calculator
# Калькулятор
4 years ago
"Microsoft.WindowsCalculator",
# Xbox Identity Provider
# Поставщик удостоверений Xbox
4 years ago
"Microsoft.XboxIdentityProvider",
# Xbox
# Компаньон консоли Xbox
4 years ago
"Microsoft.XboxApp",
# Xbox (beta version)
# Xbox (бета-версия)
"Microsoft.GamingApp",
"Microsoft.GamingServices",
# Xbox TCUI
4 years ago
"Microsoft.Xbox.TCUI",
# Xbox Speech To Text Overlay
4 years ago
"Microsoft.XboxSpeechToTextOverlay",
# Xbox Game Bar
4 years ago
"Microsoft.XboxGamingOverlay",
# Xbox Game Bar Plugin
4 years ago
"Microsoft.XboxGameOverlay",
# NVIDIA Control Panel
# Панель управления NVidia
4 years ago
"NVIDIACorp.NVIDIAControlPanel",
v4.0.29 20.03.2020 ## Updated - Totally rewritten &#34;Uninstall OneDrive&#34; section - &#34;Turn off diagnostics tracking scheduled tasks&#34; section - Now the &#34;FODCleanupTask&#34; task, related to Windows Hello, does not turn off if device is a laptop - &#34;Remove Windows capabilities&#34; section - Now the &#34;Hello.Face*&#34; сapabilities, related to Windows Hello, does not removed if device is a laptop - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section - &#34;Set &#34;High performance&#34; in graphics performance preference for apps&#34; section - &#34;Uninstall all UWP apps from all accounts&#34; section - Now using &#34;-Verbose&#34; instead of &#34;Write-Progress&#34;; - Added &#34;Realtek Audio Console&#34; app to the exclusion - Comments; - Minor changes; - Still cooking [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3 ## Обновлено - Переписан раздел &#34;Удалить OneDrive&#34; - Раздел &#34;Отключить задачи диагностического отслеживания&#34; - Теперь задача &#34;FODCleanupTask&#34;, относящаяся к Windows Hello, не выключается, если устройство является ноутбуком - Раздел &#34;Удалить компоненты&#34; - Теперь компоненты &#34;Hello.Face*&#34;, относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34; - Раздел &#34;Удалить все UWP-приложения из всех учетных записей&#34; - Теперь вместо &#34;Write-Progress&#34; используется &#34;-Verbose&#34;; - Добавлено приложение &#34;Realtek Audio Console&#34; в исключение - Комментарии; - Незначительные изменения; - Все еще колдуем над [GUI](https://github.com/farag2/Windows-10-Setup-Script/tree/GUI-dev). 2020H3
5 years ago
# Realtek Audio Console
"RealtekSemiconductorCorp.RealtekAudioControl"
)
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
4 years ago
# UWP apps that won't be shown in the form
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# UWP-приложения, которые не будут выводиться в форме
$ExcludedAppxPackages = @(
# Microsoft Desktop App Installer
4 years ago
"Microsoft.DesktopAppInstaller",
# Store Experience Host
# Узел покупок Microsoft Store
"Microsoft.StorePurchaseApp",
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Microsoft Store
4 years ago
"Microsoft.WindowsStore",
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Web Media Extensions
# Расширения для интернет-мультимедиа
"Microsoft.WebMediaExtensions"
)
#endregion Variables
#region XAML Markup
[xml]$XAML = '
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
Name="Window"
MinHeight="450" MinWidth="400"
SizeToContent="Width" WindowStartupLocation="CenterScreen"
TextOptions.TextFormattingMode="Display" SnapsToDevicePixels="True"
FontFamily="Segoe UI" FontSize="12" ShowInTaskbar="False">
<Window.Resources>
<Style TargetType="StackPanel">
<Setter Property="Orientation" Value="Horizontal"/>
</Style>
<Style TargetType="CheckBox">
<Setter Property="Margin" Value="10, 10, 5, 10"/>
<Setter Property="IsChecked" Value="True"/>
</Style>
<Style TargetType="TextBlock">
<Setter Property="Margin" Value="5, 10, 10, 10"/>
</Style>
<Style TargetType="Button">
<Setter Property="Margin" Value="20"/>
<Setter Property="Padding" Value="10"/>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="1" Orientation="Horizontal">
<CheckBox Name="CheckboxRemoveAll" IsChecked="False"/>
<TextBlock Name="TextblockRemoveAll"/>
</StackPanel>
</Grid>
<ScrollViewer Name="Scroll" Grid.Row="1"
HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto">
<StackPanel Name="PanelContainer" Orientation="Vertical"/>
</ScrollViewer>
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
<Button Name="Button" Grid.Row="2"/>
</Grid>
</Window>
'
#endregion XAML Markup
$Reader = (New-Object -TypeName System.Xml.XmlNodeReader -ArgumentList $XAML)
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Form = [Windows.Markup.XamlReader]::Load($Reader)
$XAML.SelectNodes("//*[@*[contains(translate(name(.),'n','N'),'Name')]]") | ForEach-Object -Process {
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Set-Variable -Name ($_.Name) -Value $Form.FindName($_.Name) -Scope Global
}
#region Functions
function Get-CheckboxClicked
{
[CmdletBinding()]
param
(
[Parameter(
Mandatory = $true,
ValueFromPipeline = $true
)]
[ValidateNotNull()]
$CheckBox
)
$AppxName = $CheckBox.Parent.Children[1].Text
if ($CheckBox.IsChecked)
{
[void]$AppxPackages.Add($AppxName)
}
else
{
[void]$AppxPackages.Remove($AppxName)
}
if ($AppxPackages.Count -gt 0)
{
$Button.IsEnabled = $true
}
else
{
$Button.IsEnabled = $false
}
}
function DeleteButton
{
[void]$Window.Close()
$OFS = "|"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
if ($CheckboxRemoveAll.IsChecked)
{
Get-AppxPackage -PackageTypeFilter Bundle -AllUsers | Where-Object -FilterScript {$_.Name -cmatch $AppxPackages} | Remove-AppxPackage -AllUsers -Verbose
}
else
{
Get-AppxPackage -PackageTypeFilter Bundle | Where-Object -FilterScript {$_.Name -cmatch $AppxPackages} | Remove-AppxPackage -Verbose
}
$OFS = " "
}
function Add-AppxControl
{
[CmdletBinding()]
param
(
[Parameter(
Mandatory = $true,
ValueFromPipeline = $true
)]
[ValidateNotNull()]
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
[string]
$AppxName
)
$CheckBox = New-Object -TypeName System.Windows.Controls.CheckBox
$CheckBox.Add_Click({Get-CheckboxClicked -CheckBox $_.Source})
$TextBlock = New-Object -TypeName System.Windows.Controls.TextBlock
$TextBlock.Text = $AppxName
$StackPanel = New-Object -TypeName System.Windows.Controls.StackPanel
[void]$StackPanel.Children.Add($CheckBox)
[void]$StackPanel.Children.Add($TextBlock)
[void]$PanelContainer.Children.Add($StackPanel)
if ($UncheckedAppxPackages.Contains($AppxName))
{
$CheckBox.IsChecked = $false
# Exit function, item is not checked
# Выход из функции, если элемент не выделен
return
}
# If package checked, add to the array list to uninstall
# Если пакет выделен, то добавить в массив для удаления
[void]$AppxPackages.Add($AppxName)
}
#endregion Functions
#region Events Handlers
# Window Loaded Event
$Window.Add_Loaded({
$OFS = "|"
(Get-AppxPackage -PackageTypeFilter Bundle -AllUsers | Where-Object -FilterScript {$_.Name -cnotmatch $ExcludedAppxPackages}).Name | ForEach-Object -Process {
Add-AppxControl -AppxName $_
}
$OFS = " "
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
if ($RU)
{
$TextblockRemoveAll.Text = "Удалять для всех пользователей"
$Window.Title = "Удалить UWP-приложения"
$Button.Content = "Удалить"
}
else
{
$TextblockRemoveAll.Text = "Uninstall for All Users"
$Window.Title = "UWP Packages to Uninstall"
$Button.Content = "Uninstall"
}
})
# Button Click Event
$Button.Add_Click({DeleteButton})
#endregion Events Handlers
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if (Get-AppxPackage -PackageTypeFilter Bundle -AllUsers | Where-Object -FilterScript {$_.Name -cnotmatch ($ExcludedAppxPackages -join "|")})
{
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
4 years ago
Write-Verbose -Message "Диалоговое окно открывается..." -Verbose
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
else
{
4 years ago
Write-Verbose -Message "Displaying the dialog box..." -Verbose
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
4 years ago
# Display the dialog box
# Отобразить диалоговое окно
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Form.ShowDialog() | Out-Null
}
else
{
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
4 years ago
Write-Verbose -Message "Отсутствуют данные" -Verbose
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
else
{
4 years ago
Write-Verbose -Message "Nothing to display" -Verbose
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
}
<#
Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page
4 years ago
The extension can be installed without Microsoft account for free instead of $0.99
"Movies & TV" app required
Открыть страницу "Расширения для видео HEVC от производителя устройства" в Microsoft Store
4 years ago
Расширение может быть установлено без учетной записи Microsoft бесплатно вместо 0,99 $
Для работы необходимо приложение "Кино и ТВ"
#>
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
if (Get-AppxPackage -Name Microsoft.ZuneVideo)
{
Start-Process -FilePath ms-windows-store://pdp/?ProductId=9n4wgh0z6vhq
}
v4.0.27 18.03.2020 ## Updated - &#34;Uninstall OneDrive&#34; section - Now even after restarting File Explorer your opened folders will be restored - &#34;Uninstall all UWP apps from all accounts, except the followings...&#34; section - &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Now displays progress bar while uninstalling - Deleted &#34;Checking whether the script was saved in UTF-8 with BOM encoding if it runs locally&#34; section - There is [no way](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/docs-conceptual/components/vscode/understanding-file-encoding.md#common-causes-of-encoding-issues) for PowerShell to automatically determine the file encoding - Anyway this code checks the encoding ```powershell if ($PSCommandPath) { $bytes = Get-Content -Path $PSCommandPath -Encoding Byte -Raw # https://tools.ietf.org/html/rfc3629#section-6 if ($bytes[0] -ne 239 -and $bytes[1] -ne 187 -and $bytes[2] -ne 191) { Write-Warning -Message &#34;The script wasn&#39;t saved in `&#34;UTF-8 with BOM`&#34; encoding&#34; break } } ``` - Comments - Minor changes. ## Обновлено - Раздел &#34;Удалить OneDrive&#34; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Удалить все UWP-приложения из всех учетных записей, кроме следующих...&#34; - Раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Теперь отображается индикатор выполнения во время удаления - Удален раздел &#34;Проверка: был ли скрипт сохранен в кодировке UTF-8 c BOM, если он запускается локально&#34; - В PowerShell [нет](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/docs-conceptual/components/vscode/understanding-file-encoding.md#common-causes-of-encoding-issues) способа автоматически определить кодировку файла - В любом случае этот код проверяет кодировку ```powershell if ($PSCommandPath) { $bytes = Get-Content -Path $PSCommandPath -Encoding Byte -Raw # https://tools.ietf.org/html/rfc3629#section-6 if ($bytes[0] -ne 239 -and $bytes[1] -ne 187 -and $bytes[2] -ne 191) { Write-Warning -Message &#34;Скрипт не был сохранен в кодировке `&#34;UTF-8 с BOM`&#34;&#34; break } } ``` - Комментарии - Незначительные изменения.
5 years ago
# Check for UWP apps updates
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
# Проверить обновления UWP-приложений
Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod
#endregion UWP apps
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
#region Gaming
4 years ago
# Turn off Xbox Game Bar
# Отключить Xbox Game Bar
if ((Get-AppxPackage -Name Microsoft.XboxGamingOverlay) -or (Get-AppxPackage -Name Microsoft.GamingApp))
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 0 -Force
}
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
# Turn off Xbox Game Bar tips
# Отключить советы Xbox Game Bar
4 years ago
if ((Get-AppxPackage -Name Microsoft.XboxGamingOverlay) -or (Get-AppxPackage -Name Microsoft.GamingApp))
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\GameBar -Name ShowStartupPanel -PropertyType DWord -Value 0 -Force
}
# Set "High performance" in graphics performance preference for apps
# Установить параметры производительности графики для отдельных приложений на "Высокая производительность"
if (Get-CimInstance -ClassName Win32_VideoController | Where-Object -FilterScript {$_.AdapterDACType -ne "Internal" -and $null -ne $_.AdapterDACType})
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Title = "Настройка производительности графики"
4 years ago
$Message = "Установить для любого приложения по вашему выбору настройки производительности графики на `"Высокая производительность`"?"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Создать", "&Пропустить"
}
else
{
$Title = "Graphics performance preference"
4 years ago
$Message = "Would you like to set the graphics performance setting of an app of your choice to `"High performance`"?"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Options = "&Add", "&Skip"
}
$DefaultChoice = 1
do
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
Add-Type -AssemblyName System.Windows.Forms
$OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog
if ($RU)
{
$OpenFileDialog.Filter = "*.exe|*.exe|Все файлы (*.*)|*.*"
}
else
{
$OpenFileDialog.Filter = "*.exe|*.exe|All Files (*.*)|*.*"
}
$OpenFileDialog.InitialDirectory = "${env:ProgramFiles(x86)}"
$OpenFileDialog.Multiselect = $false
# Focus on open file dialog
# Перевести фокус на диалог открытия файла
$tmp = New-Object -TypeName System.Windows.Forms.Form -Property @{TopMost = $true}
$OpenFileDialog.ShowDialog($tmp)
if ($OpenFileDialog.FileName)
{
4 years ago
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\DirectX\UserGpuPreferences))
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
{
4 years ago
New-Item -Path HKCU:\SOFTWARE\Microsoft\DirectX\UserGpuPreferences -Force
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
}
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\DirectX\UserGpuPreferences -Name $OpenFileDialog.FileName -PropertyType String -Value "GpuPreference=2;" -Force
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
"1"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
}
until ($Result -eq 1)
}
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
#endregion Gaming
#region Scheduled tasks
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
<#
4 years ago
Create a task to clean up unused files and Windows updates in the Task Scheduler
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
The task runs every 90 days
4 years ago
Создать задачу в Планировщике задач по очистке неиспользуемых файлов и обновлений Windows
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Задача выполняется каждые 90 дней
#>
Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches | ForEach-Object -Process {
Remove-ItemProperty -Path $_.PsPath -Name StateFlags1337 -Force -ErrorAction Ignore
}
$VolumeCaches = @(
# Delivery Optimization Files
# Файлы оптимизации доставки
"Delivery Optimization Files",
4 years ago
# Device driver packages
# Пакеты драйверов устройств
"Device Driver Packages",
4 years ago
# Previous Windows Installation(s)
# Предыдущие установки Windows
"Previous Installations",
4 years ago
# Setup log files
# Файлы журнала установки
"Setup Log Files",
4 years ago
# Temporary Setup Files
4 years ago
# Временные файлы установки
"Temporary Setup Files",
4 years ago
# Microsoft Defender
"Windows Defender",
4 years ago
# Windows upgrade log files
# Файлы журнала обновления Windows
"Windows Upgrade Log Files"
)
foreach ($VolumeCache in $VolumeCaches)
{
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Name StateFlags1337 -PropertyType DWord -Value 2 -Force
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$PS1Script = '
$app = "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\cleanmgr.exe"
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]
$Template = [Windows.UI.Notifications.ToastTemplateType]::ToastImageAndText01
[xml]$ToastTemplate = ([Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent($Template).GetXml())
if ($PSUICulture -eq "ru-RU")
{
[xml]$ToastTemplate = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
<toast launch="app-defined-string">
<visual>
<binding template="ToastGeneric">
<text>Очистка неиспользуемых файлов и обновлений Windows начнется через минуту</text>
</binding>
</visual>
<actions>
<action activationType="background" content="Хорошо" arguments="later"/>
</actions>
</toast>
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"@
}
else
{
[xml]$ToastTemplate = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
<toast launch="app-defined-string">
<visual>
<binding template="ToastGeneric">
4 years ago
<text>Cleaning up unused Windows files and updates starts in a minute</text>
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
</binding>
</visual>
<actions>
<action activationType="background" content="OK" arguments="later"/>
</actions>
</toast>
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"@
}
$ToastXml = New-Object -TypeName Windows.Data.Xml.Dom.XmlDocument
$ToastXml.LoadXml($ToastTemplate.OuterXml)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($app).Show($ToastXml)
Start-Sleep -Seconds 60
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Process startup info
# Параметры запуска процесса
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$ProcessInfo = New-Object -TypeName System.Diagnostics.ProcessStartInfo
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$ProcessInfo.FileName = "$env:SystemRoot\system32\cleanmgr.exe"
$ProcessInfo.Arguments = "/sagerun:1337"
$ProcessInfo.UseShellExecute = $true
$ProcessInfo.WindowStyle = [System.Diagnostics.ProcessWindowStyle]::Minimized
# Process object using the startup info
# Объект процесса, используя заданные параметры
$Process = New-Object System.Diagnostics.Process
$Process.StartInfo = $ProcessInfo
# Start the process
# Запуск процесса
$Process.Start() | Out-Null
Start-Sleep -Seconds 3
$SourceMainWindowHandle = (Get-Process -Name cleanmgr).MainWindowHandle
function MinimizeWindow
{
[CmdletBinding()]
param
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
(
[Parameter(Mandatory = $true)]
$Process
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
)
$ShowWindowAsync = @{
Namespace = "WinAPI"
Name = "Win32ShowWindowAsync"
Language = "CSharp"
MemberDefinition = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
[DllImport("user32.dll")]
public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"@
}
if (-not ("WinAPI.Win32ShowWindowAsync" -as [type]))
{
Add-Type @ShowWindowAsync
}
$MainWindowHandle = (Get-Process -Name $Process).MainWindowHandle
[WinAPI.Win32ShowWindowAsync]::ShowWindowAsync($MainWindowHandle, 2)
}
while ($true)
{
$CurrentMainWindowHandle = (Get-Process -Name cleanmgr).MainWindowHandle
if ([int]$SourceMainWindowHandle -ne [int]$CurrentMainWindowHandle)
{
MinimizeWindow -Process cleanmgr
break
}
Start-Sleep -Milliseconds 5
}
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$ProcessInfo = New-Object -TypeName System.Diagnostics.ProcessStartInfo
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Cleaning up unused updates
# Очистка неиспользованных обновлений
$ProcessInfo.FileName = "$env:SystemRoot\system32\dism.exe"
$ProcessInfo.Arguments = "/Online /English /Cleanup-Image /StartComponentCleanup /NoRestart"
$ProcessInfo.UseShellExecute = $true
$ProcessInfo.WindowStyle = [System.Diagnostics.ProcessWindowStyle]::Minimized
# Process object using the startup info
# Объект процесса, используя заданные параметры
$Process = New-Object System.Diagnostics.Process
$Process.StartInfo = $ProcessInfo
# Start the process
# Запуск процесса
$Process.Start() | Out-Null
'
$EncodedScript = [Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($PS1Script))
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -EncodedCommand $EncodedScript"
$Trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 90 -At 9am
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -RunLevel Highest
if ($RU)
{
$Description =
"Очистка неиспользуемых файлов и обновлений Windows, используя встроенную программу Очистка диска. Чтобы расшифровать закодированную строку используйте [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(`"строка`"))"
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
else
{
$Description =
"Cleaning up unused Windows files and updates using built-in Disk cleanup app. To decode encoded command use [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(`"string`"))"
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
$Parameters = @{
"TaskName" = "Windows Cleanup"
"TaskPath" = "Setup Script"
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"Principal" = $Principal
"Action" = $Action
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"Description" = $Description
"Settings" = $Settings
"Trigger" = $Trigger
}
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Register-ScheduledTask @Parameters -Force
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
<#
4 years ago
Create a task to clear the %SystemRoot%\SoftwareDistribution\Download folder in the Task Scheduler
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
The task runs on Thursdays every 4 weeks
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Создать задачу в Планировщике задач по очистке папки %SystemRoot%\SoftwareDistribution\Download
Задача выполняется по четвергам каждую 4 неделю
#>
$Argument = "
(Get-Service -Name wuauserv).WaitForStatus('Stopped', '01:00:00')
Get-ChildItem -Path $env:SystemRoot\SoftwareDistribution\Download -Recurse -Force | Remove-Item -Recurse -Force
"
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument $Argument
$Trigger = New-JobTrigger -Weekly -WeeksInterval 4 -DaysOfWeek Thursday -At 9am
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Principal = New-ScheduledTaskPrincipal -UserId "NT AUTHORITY\SYSTEM" -RunLevel Highest
if ($RU)
{
$Description = "Очистка папки %SystemRoot%\SoftwareDistribution\Download"
}
else
{
$Description = "The %SystemRoot%\SoftwareDistribution\Download folder cleaning"
}
$Parameters = @{
"TaskName" = "SoftwareDistribution"
"TaskPath" = "Setup Script"
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"Principal" = $Principal
"Action" = $Action
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"Description" = $Description
"Settings" = $Settings
"Trigger" = $Trigger
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
Register-ScheduledTask @Parameters -Force
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
<#
4 years ago
Create a task to clear the %TEMP% folder in the Task Scheduler
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
The task runs every 62 days
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
Создать задачу в Планировщике задач по очистке папки %TEMP%
Задача выполняется каждые 62 дня
#>
$Argument = "Get-ChildItem -Path $env:TEMP -Force -Recurse | Remove-Item -Force -Recurse"
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument $Argument
$Trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 62 -At 9am
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Principal = New-ScheduledTaskPrincipal -UserId "NT AUTHORITY\SYSTEM" -RunLevel Highest
if ($RU)
{
$Description = "Очистка папки %TEMP%"
}
else
{
$Description = "The %TEMP% folder cleaning"
}
$Parameters = @{
"TaskName" = "Temp"
"TaskPath" = "Setup Script"
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
"Principal" = $Principal
"Action" = $Action
4 years ago
"Description" = $Description
"Settings" = $Settings
"Trigger" = $Trigger
v4.2.1 16.05.2020 Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/v4.2.1...v4.2 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Added for the all tasks in the Task Scheduler a description displayed in the &#34;Description&#34; section. - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе &#34;Описание&#34;; - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&amp;member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
Register-ScheduledTask @Parameters -Force
#endregion Scheduled tasks
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
#region Windows Defender & Security
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Turn on Controlled folder access and add protected folders
# Включить контролируемый доступ к папкам и добавить защищенные папки
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
$Title = "Контролируемый доступ к папкам"
4 years ago
$Message = "Хотите, чтобы Защитник Windows ограничивал доступ к указанным вами папкам с конфиденциальной информацией?"
$Options = "&Добавить", "&Пропустить"
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
else
{
$Title = "Controlled folder access"
4 years ago
$Message = "Would you like Windows Defender to restrict access to sensitive folders that you specify?"
$Options = "&Add", "&Skip"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
$DefaultChoice = 1
do
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
{
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
"0"
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
{
Add-Type -AssemblyName System.Windows.Forms
$FolderBrowserDialog = New-Object -TypeName System.Windows.Forms.FolderBrowserDialog
if ($RU)
{
$FolderBrowserDialog.Description = "Выберите папку"
}
else
{
$FolderBrowserDialog.Description = "Select a folder"
}
$FolderBrowserDialog.RootFolder = "MyComputer"
# Focus on open file dialog
# Перевести фокус на диалог открытия файла
$tmp = New-Object -TypeName System.Windows.Forms.Form -Property @{TopMost = $true}
4 years ago
$FolderBrowserDialog.ShowDialog($tmp)
if ($FolderBrowserDialog.SelectedPath)
{
Set-MpPreference -EnableControlledFolderAccess Enabled
Add-MpPreference -ControlledFolderAccessProtectedFolders $FolderBrowserDialog.SelectedPath -Force
}
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
}
"1"
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
}
until ($Result -eq 1)
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
# Allow an app through Controlled folder access
# Разрешить работу приложения через контролируемый доступ к папкам
4 years ago
if ($RU)
{
4 years ago
$Title = "Контролируемый доступ к папкам"
$Message = "Указать приложение, которому разрешена работа через контролируемый доступ к папкам"
$Options = "&Добавить", "&Пропустить"
}
else
{
$Title = "Controlled folder access"
$Message = "Would you like to specify an app that is allowed through Controlled Folder access?"
$Options = "&Add", "&Skip"
}
$DefaultChoice = 1
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
4 years ago
do
{
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
4 years ago
"0"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
4 years ago
Add-Type -AssemblyName System.Windows.Forms
$OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog
if ($RU)
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
4 years ago
$OpenFileDialog.Filter = "*.exe|*.exe|Все файлы (*.*)|*.*"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
4 years ago
else
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
4 years ago
$OpenFileDialog.Filter = "*.exe|*.exe|All Files (*.*)|*.*"
}
$OpenFileDialog.InitialDirectory = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
$OpenFileDialog.Multiselect = $false
# Focus on open file dialog
# Перевести фокус на диалог открытия файла
$tmp = New-Object -TypeName System.Windows.Forms.Form -Property @{TopMost = $true}
$OpenFileDialog.ShowDialog($tmp)
if ($OpenFileDialog.FileName)
{
Add-MpPreference -ControlledFolderAccessAllowedApplications $OpenFileDialog.FileName -Force
}
}
"1"
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
}
}
}
}
4 years ago
until ($Result -eq 1)
4 years ago
# Add a folder to the exclusion from Windows Defender scanning
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
# Добавить папку в список исключений сканирования Windows Defender
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
$Title = "Windows Defender"
4 years ago
$Message = "Указать папку, чтобы исключить ее из списка сканирования Microsoft Defender?"
$Options = "&Исключить", "&Пропустить"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
else
{
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
$Title = "Windows Defender"
4 years ago
$Message = "Would you like to specify a folder to be excluded from Microsoft Defender malware scans?"
$Options = "&Exclude", "&Skip"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
$DefaultChoice = 1
do
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
Add-Type -AssemblyName System.Windows.Forms
$FolderBrowserDialog = New-Object -TypeName System.Windows.Forms.FolderBrowserDialog
if ($RU)
{
$FolderBrowserDialog.Description = "Выберите папку"
}
else
{
$FolderBrowserDialog.Description = "Select a folder"
}
$FolderBrowserDialog.RootFolder = "MyComputer"
# Focus on open file dialog
# Перевести фокус на диалог открытия файла
$tmp = New-Object -TypeName System.Windows.Forms.Form -Property @{TopMost = $true}
4 years ago
$FolderBrowserDialog.ShowDialog($tmp)
if ($FolderBrowserDialog.SelectedPath)
{
Add-MpPreference -ExclusionPath $FolderBrowserDialog.SelectedPath -Force
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
"1"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
until ($Result -eq 1)
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
4 years ago
# Add a file to the exclusion from Windows Defender scanning
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
# Добавить файл в список исключений сканирования Windows Defender
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
if ($RU)
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Title = "Windows Defender"
4 years ago
$Message = "Указать файл, чтобы исключить его из списка сканирования Microsoft Defender?"
$Options = "&Исключить", "&Пропустить"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
else
{
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
$Title = "Windows Defender"
4 years ago
$Message = "Would you like to specify a file to be excluded from Microsoft Defender malware scans?"
$Options = "&Exclude", "&Skip"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
$DefaultChoice = 1
do
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
Add-Type -AssemblyName System.Windows.Forms
$OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog
if ($RU)
{
$OpenFileDialog.Filter = "Все файлы (*.*)|*.*"
}
else
{
$OpenFileDialog.Filter = "All Files (*.*)|*.*"
}
$OpenFileDialog.InitialDirectory = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
$OpenFileDialog.Multiselect = $false
# Focus on open file dialog
# Перевести фокус на диалог открытия файла
$tmp = New-Object -TypeName System.Windows.Forms.Form -Property @{TopMost = $true}
4 years ago
$OpenFileDialog.ShowDialog($tmp)
if ($OpenFileDialog.FileName)
{
Add-MpPreference -ExclusionPath $OpenFileDialog.FileName -Force
}
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
}
"1"
v4.2 12.05.2020 ## Updated - Moved from the &#34;Read-Host&#34; cmdlet to $Host.UI.PromptForChoice(). - Updated &#34;Create a task in the Task Scheduler to start Windows cleaning up&#34;; - A [toast notification](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts) will be activated before starting cleaning up; - Now cleanmgr.exe window starts minimized; - Now using DISM to clean up unused Windows updates instead of cleanmgr.exe ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Minor changes; - Thanks [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) for the tips; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). ## Обновлено - Вместо командлета &#34;Read-Host&#34; используется $Host.UI.PromptForChoice(); - Обновлен раздел &#34;Создать задачу в Планировщике задач по очистке обновлений Windows&#34;; - Перед запуском очистки активируется [всплывающее уведомление](https://docs.microsoft.com/ru-ru/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts); - Теперь окно cleanmgr.exe запускается вернутым; - Очистка ненужных обновлений теперь происходит с помощью DISM ```cmd DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart ``` - Незначительные изменения; - Спасибо [westlife](http://forum.ru-board.com/profile.cgi?action=show&amp;member=westlife) за подсказки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765).
4 years ago
{
if ($RU)
{
Write-Verbose -Message "Пропущено" -Verbose
}
else
{
Write-Verbose -Message "Skipped" -Verbose
}
}
}
}
until ($Result -eq 1)
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
# Turn on Windows Defender Exploit Guard network protection
4 years ago
# Включить защиту сети в Windows Defender Exploit Guard
Set-MpPreference -EnableNetworkProtection Enabled
4 years ago
# Turn on detection for potentially unwanted applications and block them
# Включить обнаружение потенциально нежелательных приложений и блокировать их
Set-MpPreference -PUAProtection Enabled
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Run Windows Defender within a sandbox
4 years ago
# Запускать Защитника Windows в песочнице
setx /M MP_FORCE_USE_SANDBOX 1
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Dismiss Windows Defender offer in the Windows Security about signing in Microsoft account
4 years ago
# Отклонить предложение Защитника Windows в "Безопасность Windows" о входе в аккаунт Microsoft
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows Security Health\State" -Name AccountProtection_MicrosoftAccount_Disconnected -PropertyType DWord -Value 1 -Force
4 years ago
# Dismiss Windows Defender offer in the Windows Security about turning on the SmartScreen filter for Microsoft Edge
# Отклонить предложение Защитника Windows в "Безопасность Windows" включить фильтр SmartScreen для Microsoft Edge
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows Security Health\State" -Name AppAndBrowser_EdgeSmartScreenOff -PropertyType DWord -Value 0 -Force
# Turn on events auditing generated when a process is created or starts
# Включить аудит событий, возникающих при создании или запуске процесса
auditpol /set /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /success:enable /failure:enable
<#
Include command line in process creation events
In order this feature to work events auditing must be enabled
Включать командную строку в событиях создания процесса
Необходимо включить аудит событий, чтобы работала данная опция
#>
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -PropertyType DWord -Value 1 -Force
<#
Create "Process Creation" Event Viewer Custom View
In order this feature to work events auditing and command line in process creation events must be enabled
Создать настаиваемое представление "Создание процесса" в Просмотре событий
4 years ago
Необходимо включить аудит событий и командной строки в событиях создания процесса, чтобы работала данная опция
#>
$XML = @"
<ViewerConfig>
<QueryConfig>
<QueryParams>
<UserQuery />
</QueryParams>
<QueryNode>
<Name>Process Creation</Name>
<Description>Process Creation and Command-line Auditing Events</Description>
<QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">*[System[(EventID=4688)]]</Select>
</Query>
</QueryList>
</QueryNode>
</QueryConfig>
</ViewerConfig>
"@
if (-not (Test-Path -Path "$env:ProgramData\Microsoft\Event Viewer\Views"))
{
New-Item -Path "$env:ProgramData\Microsoft\Event Viewer\Views" -ItemType Directory -Force
}
$ProcessCreationFilePath = "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml"
# Saving ProcessCreation.xml in UTF-8 encoding
# Сохраняем ProcessCreation.xml в кодировке UTF-8
4 years ago
Set-Content -Path $ProcessCreationFilePath -Value (New-Object System.Text.UTF8Encoding).GetBytes($XML) -Encoding Byte -Force
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
if ($RU)
{
[xml]$XML = Get-Content -Path $ProcessCreationFilePath
$XML.ViewerConfig.QueryConfig.QueryNode.Name = "Создание процесса"
$XML.ViewerConfig.QueryConfig.QueryNode.Description = "События содания нового процесса и аудит командной строки"
$xml.Save("$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml")
23.06.2020 # Windows 10 2004 | 1903/1909 Version ## Updated - Updated help section - Updated &#34;Turn off Cortana autostarting&#34; section - Added &#34;Create &#34;Process Creation&#34; Event Viewer Custom View&#34; section - For this custom view to function, it is necessary to enable the following sections - Turn on events auditing generated when a process is created or starts - Include command line in process creation events - This feature allows to conveniently track the creation of suspicious processes along with the process command line argument - Go to Event Viewer - Custom View - Process Creation - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел справки - Обновлен раздел &#34;Удалить Кортана из автозагрузки&#34; - Добавлен раздел &#34;Создать настаиваемое представление &#34;Создание процесса&#34; в Просмотре событий&#34; - Чтобы функционировало данное настраиваемое представление, необходимо включить следующие разделы - Включить аудит событий, возникающих при создании или запуске процесса - Включать командную строку в событиях создания процесса - Данная опция позволяет в удобной форме отслеживать создание подозрительных процессов вместе с аргументом командной строки процесса - Перейдите в Просмотр событий — Настраиваемое представление — Создание процесса - Незначительные изменения
4 years ago
}
4 years ago
# Log for all Windows PowerShell modules
# Вести журнал для всех модулей Windows PowerShell
if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames))
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
{
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Force
}
19.06.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Removed sections due to Network troubleshooter is unable to start DPS service - Stop event trace sessions - Turn off the data collectors at the next computer restart - To restore Network troubleshooter download attached DiagLog_EN.xml and execute in CMD ```cmd :: Restart needed logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_EN.xml&#34; ``` - Updated &#34;Turn on logging for all Windows PowerShell modules&#34; section - Fixed typo in registry path key creation - To restore execute ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ``` ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Удалены разделы в связи с тем, что средство устранения сетевых неполадок не могло запустить службу DPS - Остановить сеансы отслеживания событий - Отключить сборщики данных при следующем запуске ПК - Чтобы восстановить работу средства устранения сетевых неполадок, скачайте прикрепленный файл DiagLog_RU.xml и выполните в CMD ```cmd :: Необходима перезагрузка logman import -name &#34;DiagLog&#34; -xml &#34;PathTo\DiagLog_RU.xml&#34; ``` - Обновлен раздел &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34; - Исправлена ошибка в пути создания ключа - Чтобы восстановить, выполните ```powershell Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name EnableModuleLogging -Force New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force ```
4 years ago
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging -Name EnableModuleLogging -PropertyType DWord -Value 1 -Force
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames -Name * -PropertyType String -Value * -Force
4 years ago
# Log all PowerShell scripts input to the Windows PowerShell event log
# Вести регистрацию всех вводимых сценариев PowerShell в журнале событий Windows PowerShell
if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging))
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
{
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging -Name EnableScriptBlockLogging -PropertyType DWord -Value 1 -Force
4 years ago
# Check apps and files within Microsofot Defender SmartScreen
# Проверять приложения и файлы фильтром SmartScreen в Microsoft Defender
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name SmartScreenEnabled -PropertyType String -Value Off -Force
4 years ago
# Prevent SmartScreen from marking files that have been downloaded from the Internet as unsafe (current user only)
# Не позволять SmartScreen отмечать файлы, скачанные из интернета, как небезопасные (только для текущего пользователя)
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments))
{
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments -Name SaveZoneInformation -PropertyType DWord -Value 1 -Force
# Turn off Windows Script Host (current user only)
# Отключить Windows Script Host (только для текущего пользователя)
if (-not (Test-Path -Path "HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings"))
{
New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings" -Force
}
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings" -Name Enabled -PropertyType DWord -Value 0 -Force
21.02.2020 ## Updated - Removed &#34;Let Windows track app launches to improve Start menu and search results&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Removed &#34;Turn off Windows Game Recording and Broadcasting&#34; section. To recover execute ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Removed &#34;Turn off Game Mode&#34; section. To recover execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Removed &#34;Remove &#34;Previous Versions&#34; from file context menu&#34; section. To recover execute ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Added - &#34;Use Unicode UTF-8 for worldwide language support (beta)&#34; section; - &#34;Turn on logging for all Windows PowerShell modules&#34; section; - &#34;Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log&#34; section; - &#34;Turn on events auditing generated when a process is created or starts&#34; section. - Comments - Minor changes. ## Обновлено - Удален раздел &#34;Разрешить Windows отслеживать запуски приложений для улучшения меню &#34;Пуск&#34; и результатов поиска&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force ``` - Удален раздел &#34;Отключить Запись и трансляции игр Windows&#34;. Чтобы восстановить их, выполните ```powershell Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force ``` - Удален раздел &#34;Отключить игровой режим&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force ``` - Удален раздел &#34;Удалить пункт &#34;Восстановить прежнюю версию&#34; из контекстного меню&#34;. Чтобы восстановить их, выполните ```powershell Remove-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked&#34; -Name &#34;{596AB062-B4D2-4215-9F74-E9109B0A8153}&#34; -Force ``` - Добавлен разделы - &#34;Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)&#34;; - &#34;Включить ведение журнала для всех модулей Windows PowerShell&#34;; - &#34;Включить регистрацию всех вводимых сценариев PowerShell в журнале событий Microsoft-Windows-PowerShell/Operational&#34;; - &#34;Включить аудит событий, возникающих при создании или запуске процесса&#34;. - Комментарии; - Незначительные изменения.
5 years ago
#endregion Windows Defender & Security
#region Context menu
4 years ago
# Add the "Extract all" item to Windows Installer (.msi) context menu
# Добавить пункт "Извлечь все" в контекстное меню Windows Installer (.msi)
if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract\Command))
{
New-Item -Path Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract\Command -Force
}
$Value = "{0}" -f 'msiexec.exe /a "%1" /qb TARGETDIR="%1 extracted"'
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract\Command -Name "(Default)" -PropertyType String -Value $Value -Force
4 years ago
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract -Name MUIVerb -PropertyType String -Value "@shell32.dll,-37514" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Msi.Package\shell\Extract -Name Icon -PropertyType String -Value "shell32.dll,-16817" -Force
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Add the "Install" item to the .cab archives context menu
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
# Добавить пункт "Установить" в контекстное меню .cab архивов
if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command))
{
New-Item -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command -Force
}
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
$Value = "{0}" -f "cmd /c DISM.exe /Online /Add-Package /PackagePath:`"%1`" /NoRestart & pause"
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command -Name "(Default)" -PropertyType String -Value $Value -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs -Name MUIVerb -PropertyType String -Value "@shell32.dll,-10210" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs -Name HasLUAShield -PropertyType String -Value "" -Force
# Add the "Run as different user" item to the .exe files types context menu
4 years ago
# Добавить пункт "Запуск от имени другого пользователя" в контекстное меню .exe файлов
Remove-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\exefile\shell\runasuser -Name Extended -Force -ErrorAction Ignore
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Hide the "Cast to Device" item from the context menu
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Скрыть пункт "Передать на устройство" из контекстного меню
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{7AD84985-87B4-4a16-BE58-8B72A5B390F7}" -PropertyType String -Value "Play to menu" -Force
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Hide the "Share" item from the context menu
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Скрыть пункт "Отправить" (поделиться) из контекстного меню
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{E2BF9676-5F8F-435C-97EB-11607A5BEDF7}" -PropertyType String -Value "" -Force
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Hide the "Edit with Paint 3D" item from the context menu
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Скрыть пункт "Изменить с помощью Paint 3D" из контекстного меню
$extensions = @(".bmp", ".gif", ".jpe", ".jpeg", ".jpg", ".png", ".tif", ".tiff")
foreach ($extension in $extensions)
{
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\SystemFileAssociations\$extension\Shell\3D Edit" -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
}
# Hide the "Edit with Photos" item from the context menu
# Скрыть пункт "Изменить с помощью приложения "Фотографии"" из контекстного меню
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\ShellEdit -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
4 years ago
# Hide the "Create a new video" item from the context menu
# Скрыть пункт "Создать новое видео" из контекстного меню
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\ShellCreateVideo -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
4 years ago
# Hide the "Edit" item from the images context menu
# Скрыть пункт "Изменить" из контекстного меню изображений
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
# Hide the "Print" item from the .bat and .cmd context menu
# Скрыть пункт "Печать" из контекстного меню .bat и .cmd файлов
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\batfile\shell\print -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\cmdfile\shell\print -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Hide the "Include in Library" item from the context menu
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Скрыть пункт "Добавить в библиотеку" из контекстного меню
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Library Location" -Name "(Default)" -PropertyType String -Value "-{3dad6c5d-2167-4cae-9914-f99e41c12cfa}" -Force
# Hide the "Send to" item from the folders context menu
# Скрыть пункт "Отправить" из контекстного меню папок
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\SendTo -Name "(Default)" -PropertyType String -Value "-{7BA4C740-9E81-11CF-99D3-00AA004AE837}" -Force
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Hide the "Turn on BitLocker" item from the context menu
# Скрыть пункт "Включить BitLocker" из контекстного меню
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
if (Get-WindowsEdition -Online | Where-Object -FilterScript {$_.Edition -eq "Professional" -or $_.Edition -like "Enterprise*"})
{
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Drive\shell\encrypt-bde -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Drive\shell\encrypt-bde-elev -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Drive\shell\manage-bde -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Drive\shell\resume-bde -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Drive\shell\resume-bde-elev -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Drive\shell\unlock-bde -Name ProgrammaticAccessOnly -PropertyType String -Value "" -Force
}
# Remove the "Bitmap image" item from the "New" context menu
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Удалить пункт "Точечный рисунок" из контекстного меню "Создать"
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\.bmp\ShellNew -Force -ErrorAction Ignore
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Remove the "Rich Text Document" item from the "New" context menu
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Удалить пункт "Документ в формате RTF" из контекстного меню "Создать"
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\.rtf\ShellNew -Force -ErrorAction Ignore
# Remove the "Compressed (zipped) Folder" item from the "New" context menu
# Удалить пункт "Сжатая ZIP-папка" из контекстного меню "Создать"
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\.zip\CompressedFolder\ShellNew -Force -ErrorAction Ignore
4 years ago
# Make the "Open", "Print", and "Edit" context menu items available, when more than 15 items selected
# Сделать доступными элементы контекстного меню "Открыть", "Изменить" и "Печать" при выделении более 15 элементов
4 years ago
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name MultipleInvokePromptMinimum -PropertyType DWord -Value 300 -Force
v4.4 02.06.2020 Diff from v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Updated - Updated links in the comment-based help section; - Updated &#34;Increase taskbar transparency&#34; section - Removed &#34;ForceEffectMode&#34; key, that blocked Windows 10 transparency effects - To remove unnecessary key, execute ```powershell # Restart needed Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Updated &#34;Change location of the user folders&#34; section - Added comment-based section; - Added the ability to skip (#25) - Updated &#34;Uninstall UWP apps&#34; section - Added &#34;Uninstall for All Users&#34; button to the form (unchecked by default) (@oz-zo) - Add the &#34;Run as different user&#34; item to the .exe files types context menu - Removed unnecessary keys - Comments; - Minor changes; - Also you can test [20H1 version.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) Отличия от v4.3.0.1 &lt;https://github.com/farag2/Windows-10-Setup-Script/compare/4.3.0.1...4.4&gt; ## Обновлено - Обновлены ссылки в разделе со справке; - Обновлен раздел &#34;Увеличить прозрачность панели задач&#34; - Удален ключ &#34;ForceEffectMode&#34;, который блокировал эффекты прозрачности Windows 10 - Чтобы удалить ненужный ключ, выполните ```powershell # Необходима перезагрузка Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\Dwm -Name ForceEffectMode -Force ``` - Обновлен раздел &#34;Изменить расположение пользовательских папок&#34; - У функции добавлена справка по использованию; - Добавлена возможность пропустить использование функции (#25) - Обновлен раздел &#34;Удалить UWP-приложения&#34; - В форму удаления добавлена кнопка &#34;Удалять для всех пользователей&#34; (по умолчанию снята) (@oz-zo) - Обновлен раздел &#34;Добавить &#34;Запуск от имени другого пользователя&#34; в контекстное меню .exe файлов&#34; - Удалены ненужные ключи - Комментарии; - Незначительные изменения; - Также можете протестировать [версию 20H1.](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
4 years ago
# Hide the "Look for an app in the Microsoft Store" item in "Open with" dialog
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
# Скрыть пункт "Поиск приложения в Microsoft Store" в диалоге "Открыть с помощью"
if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer))
{
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name NoUseStoreOpenWith -PropertyType DWord -Value 1 -Force
4 years ago
# Hide the "Previous Versions" tab from files and folders context menu and also the "Restore previous versions" context menu item
# Скрыть вкладку "Предыдущие версии" в свойствах файлов и папок, а также пункт контекстного меню "Восстановить прежнюю версию"
v4.0.32 20.04.2020 ## Updated - Comments; - Now using [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - Added Internet connection test in &#34;Pin the shortcuts to Start&#34; section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally; - The following sections transferred from CLI to GUI - Turn on Controlled folder access and add protected folders; - Allow an app through Controlled folder access; - Add exclusion folder from Microsoft Defender Antivirus scanning; - Add exclusion file from Windows Defender Antivirus scanning. - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Комментарии; - Теперь испольуется [StrictMode](https://devblogs.microsoft.com/scripting/enforce-better-script-practices-by-using-set-strictmode/) - В раздел &#34;Закрепить ярлыки на начальном экране&#34; добавлена проверка наличия доступа в интернет, чтобы гарантировать, что syspin.exe скачается с GitHub. В любом случае, его можно запустить локально; - Следующие разделы переведы с CLI на GUI - Включить контролируемый доступ к папкам и добавить защищенные папки; - Разрешить работу приложения через контролируемый доступ к папкам; - Добавить папку в список исключений сканирования Windows Defender; - Добавить файл в список исключений сканирования Microsoft Defender. - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765)
5 years ago
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name NoPreviousVersionsPage -PropertyType DWord -Value 1 -Force
#endregion Context menu
#region Refresh
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
$UpdateExplorer = @{
Namespace = "WinAPI"
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
Name = "UpdateExplorer"
Language = "CSharp"
MemberDefinition = @"
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
private static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
private const int WM_SETTINGCHANGE = 0x1a;
private const int SMTO_ABORTIFHUNG = 0x0002;
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
static extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, IntPtr wParam, string lParam);
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern IntPtr SendMessageTimeout(IntPtr hWnd, int Msg, IntPtr wParam, string lParam, int fuFlags, int uTimeout, IntPtr lpdwResult);
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
public static void Refresh()
{
// Update desktop icons
// Обновить иконки рабочего стола
SHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, IntPtr.Zero);
// Update environment variables
// Обновить переменные среды
SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, null, SMTO_ABORTIFHUNG, 100, IntPtr.Zero);
// Update taskbar
// Обновить панель задач
SendNotifyMessage(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, "TraySettings");
}
private static readonly IntPtr hWnd = new IntPtr(65535);
private const int Msg = 273;
// Virtual key ID of the F5 in File Explorer
// Виртуальный код клавиши F5 в проводнике
private static readonly UIntPtr UIntPtr = new UIntPtr(41504);
[DllImport("user32.dll", SetLastError=true)]
public static extern int PostMessageW(IntPtr hWnd, uint Msg, UIntPtr wParam, IntPtr lParam);
public static void PostMessage()
{
4 years ago
// Simulate pressing F5 to refresh the desktop
// Симулировать нажатие F5 для обновления рабочего стола
v4.5.6 03.08.2020 ## Windows 10 2004 | 1903/1909 Version ## Updated - Added &#34;Turn on Windows 10 20H2 new Start style&#34; section. The new Start style described [here](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Added &#34;Install the Windows Subsystem for Linux (WSL)&#34; section; - Added new package &#34;Microsoft.Photos.MediaEngineDLC&#34; to the $UncheckedAppxPackages variable in &#34;Uninstall UWP apps&#34; section; - region Edge removed (only for 1903/1909 Version); - Comments; - Minor changes. ## Windows 10 LTSC Enterprise 2019 Version ## Updated - Minor changes. ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Добавлен раздел &#34;Включить новый стиль Пуск от Windows 10 20H2&#34;. Новый стиль Пуск описан [здесь](https://www.windowslatest.com/2020/08/02/windows-10-2004-gets-20h2-features/); - Добавлен раздел &#34;Установить подсистему Windows для Linux (WSL); - Добавлен новый пакет &#34;Microsoft.Photos.MediaEngineDLC&#34; в переменную $UncheckedAppxPackages в разделе &#34;Удалить UWP-приложения&#34;; - region Edge удален (только для версии 1903/1909); - Комментарии; - Незначительные изменения. ## Версия для Windows 10 LTSC Enterprise 2019 ## Обновлено - Незначительные изменения.
4 years ago
PostMessageW(hWnd, Msg, UIntPtr, IntPtr.Zero);
}
"@
}
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
if (-not ("WinAPI.UpdateExplorer" -as [type]))
{
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
Add-Type @UpdateExplorer
}
4 years ago
# Simulate pressing F5 to refresh the desktop
# Симулировать нажатие F5 для обновления рабочего стола
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
[WinAPI.UpdateExplorer]::PostMessage()
# Refresh desktop icons, environment variables, taskbar
# Обновить иконки рабочего стола, переменные среды, панель задач
[WinAPI.UpdateExplorer]::Refresh()
v4.0.28 20.03.2020 ## Updated - Added &#34;Do not show sync provider notification&#34; section; - &#34;Save screenshots by pressing Win+PrtScr to the Desktop&#34; section. To return the original value execute ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Removed &#34;Uninstall all provisioned UWP apps from System account, except the followings...&#34; section - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей - Using the &#34;-AllUsers&#34; key, applications were already deleted from all accounts - Fixed all en dashes (0x2013). Thanks to [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Comments; - Minor changes. ## Обновлено - Добавлен раздел &#34;Не показывать уведомления поставщика синхронзации&#34;; - Теперь даже после перезапуска проводника ваши открытые папки будет восстановлены - Раздел &#34;Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе&#34;. Чтобы вернуть первоначальное значение, выполните ```powershell Set-ItemProperty -Path &#34;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}&#34; -Name RelativePath -PropertyType String -Value Screenshots -Force ``` - Удален раздел &#34;Удалить все UWP-приложения из системной учетной записи, кроме следующих...&#34; - Используя ключ &#34;-AllUsers&#34;, UWP-приложения итак удалялись из всех учетных записей. - Исправлены все средние тире (0x2013). Спасибо [YuS_2](http://forum.ru-board.com/profile.cgi?action=show&amp;member=YuS_2); - Комментарии; - Незначительные изменения.
5 years ago
# Restart the Start menu
v4.0.26 16.03.2020 ## Updated - Do not allow apps to use advertising ID. To delete unnecessary key execute ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Turn on acrylic taskbar transparency; - Added &#34;Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what&#39;s new and suggested&#34; section; - Added &#34;Check for updates for UWP apps&#34; section; - Added &#34;Do not suggest ways I can finish setting up my device to get the most out of Windows&#34; section; - Comments; - Minor changes. ## Обновлено - Не разрешать приложениям использовать идентификатор рекламы. Чтобы удалить ненужный параметр, выполните ```powershell Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force ``` - Включить прозрачную панель задач; - Добавлен раздел &#34;Показывать экран приветствия Windows после обновлений и иногда при входе, чтобы сообщить о новых функциях и предложениях&#34;; - Добавлен раздел &#34;Проверить обновления UWP-приложений&#34;; - Добавлен раздел &#34;Не предлагать способы, с помощью которых можно завершить настройку устройства на максимально эффективное использование Windows&#34;; - Комментарии; - Незначительные изменения.
5 years ago
# Перезапустить меню "Пуск"
v4.5.7 17.08.2020 # Before running the script read the [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## The next stop is 5.0 version or [SophiApp Community Edition](https://imgur.com/SpPok1E). All depends on what comes out earlier ## Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Updated - Removed &#34;Turn off per-user services&#34; section; - Closed #50 &amp; #52; - Updated &#34;Turn on Windows 10 20H2 new Start style&#34; section (for 2004 only); - Updated &#34;Change %TEMP% environment variable path to the %SystemDrive%\Temp&#34; section; - Added prompt for choice; - Added symbolic link creation; - Closed #51. - Minor changes. ## Updated - As I was asked many times, released the LTSC version; - Closed #40 &amp; #39; - Minor changes. # Перед запуском скрипта, прочтите раздел [FAQ](https://github.com/farag2/Windows-10-Setup-Script#faq) ## Следующая остановка — версия 5.0 или [SophiApp Community Edition](https://imgur.com/SpPok1E). Все зависит от того, что раньше выйдет ## Версия для Windows 10 2004 | 1903/1909 | LTSC Enterprise 2019 Versions ## Обновлено - Удален раздел &#34;Отключить cлужбы для отдельных пользователей&#34;; - Closed #50 &amp; #52; - Обновлен раздел &#34;Включить новый стиль Пуска как в Windows 10 20H2&#34; (только для 2004); - Обновлен раздел &#34;Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp&#34;; - Добавлена возможность выбора; - Добавлено создание символьной ссылки; - Закрыта #51. - Незначительные изменения.
4 years ago
Stop-Process -Name StartMenuExperienceHost -Force -ErrorAction Ignore
#endregion Refresh
# Errors output
# Вывод ошибок
if ($Error)
{
($Error | ForEach-Object -Process {
if ($RU)
{
[PSCustomObject] @{
Строка = $_.InvocationInfo.ScriptLineNumber
"Ошибки/предупреждения" = $_.Exception.Message
}
}
else
{
[PSCustomObject] @{
Line = $_.InvocationInfo.ScriptLineNumber
"Errors/Warnings" = $_.Exception.Message
}
}
} | Sort-Object -Property Line | Format-Table -AutoSize -Wrap | Out-String).Trim()
}