- [Supported Windows version](#supported-windows-version)
- [Usage](#usage)
- [PS](#ps)
- [Supported Windows version](#supported-windows-version)
- [FAQ](#faq)
- [Links](#links)
- [PS](#ps)
## Description
## Overview
This PowerShell script is for initial setup after fresh installation of Windows 10 and partially Windows Server 2016/2019. The script is a set of tweaks for fine-tuning the OS and automating the routine tasks.
This PowerShell script is for initial setup after fresh installation of Windows 10 and partially Windows Server 2016/2019. The script is a set of tweaks for fine-tuning the OS and automating the routine tasks.
## Core features
- Turn off diagnostics tracking services;
- Turn off diagnostics tracking scheduled tasks;
- Interactive prompts
- [Screenshot](#screenshots)
- Uninstall all UWP apps from all accounts with exception apps list;
- Turn off Windows features;
- Create scheduled task with the disk cleanup tool in Task Scheduler;
- Create task to clean out the "$env:SystemRoot\SoftwareDistribution\Download" folder in Task Scheduler;
- Create scheduled task with the $env:TEMP folder cleanup in Task Scheduler;
- Add folder to exclude from Windows Defender Antivirus scan;
- Turn off per-user services;
- Create old style shortcut for "Devices and Printers";
- Import Start menu layout from pre-saved reg file;
- Download pre-saved Startmenu.reg
- [Screenshot](#screenshots)
- Unpin all Start menu tiles;
- Set location of the "Desktop", "Documents" "Downloads" "Music", "Pictures", and "Videos";
- Refresh desktop icons, environment variables and taskbar without restarting File Explorer;
- Many more File Explorer and context menu "deep" tweaks.
- PowerShell and PowerShell ISE must be run with elevated privileges;
- PowerShell and PowerShell ISE must be run with elevated privileges;
- Set PowerShell [execution](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies) policy to be able to run .ps1 file.
- Set PowerShell execution policy <code>Set-ExecutionPolicy Unrestricted -Force</code> to be able to run .ps1 files.
- Read more about [execution policy](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies)
## FAQ
Read the code you run carefully. Some functions are presented as an example only. You must be aware of the meaning of the functions in the code. **If you're not sure what the script does, do not run it.**
If you're not sure:
- Open new [issue](https://github.com/farag2/Setup-Windows-10/issues);
- Ask a question in [forum](https://forums.mydigitallife.net/threads/powershell-script-setup-windows-10.80139/);
The script was written for PowerShell 5.1 and for the current up-to-date version of Windows 10 Pro x64. Some of functions can be run also on LTSB/LTSC and on older versions of Windows and PowerShell (also on 32bit systems).
- [Поддерживаемая версия Windows](#поддерживаемая-версия-windows)
- [PS](#ps)
## Описание
PowerShell-скрипт предназначен для первоначальной настройки Windows 10 после чистой установки и частично Windows Server 2016/2019. Скрипт представляет из себя набор твиков (улучшений) для тонкой настройки ОС и автоматизации рутинных задач.
- Изменить кодировку на "UTF-8 с BOM" и запустить через powershell.exe.
или
- Скопировать весь текст кода и вставить его в [PowerShell ISE](https://docs.microsoft.com/ru-ru/powershell/scripting/components/ise/windows-powershell-integrated-scripting-environment--ise-).
**NB**
- PowerShell и PowerShell ISE необходимо запускать с правами Администратора;
- Установите [политику](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies) выполнения PowerShel-скриптов, чтобы иметь возможность запускать файлы .ps1.
## FAQ
## FAQ
Внимательно ознакомьтесь с кодом, который запускаете. Некоторые команды представлены лишь в качестве примера. Вы должны осознавать, какой смысл несут те или иные функции в коде. **Если вы не знаете, что делает код, не исполняете его.**
Read the code you run carefully. Some functions are presented as an example only. You must be aware of the meaning of the functions in the code. **If you're not sure what the script does, do not run it.**
Если вы не уверены:
- Создайте новую [issue](https://github.com/farag2/Setup-Windows-10/issues);
- Задайте вопрос на [форуме](http://forum.ru-board.com/topic.cgi?forum=62&topic=30617);
Скрипт писался под PowerShell 5.1 и актуальную версию Windows 10 Pro x64. Некоторые функции могут быть запущены как на LTSB/LTSC-версиях Windows и так на более старых версиях Windows и PowerShell (в том числе и на 32-разрядных).
## Поддерживаемая версия Windows
| Версия | Кодовое имя | Маркетинговое название | Билд |
The script was written for PowerShell 5.1 and for the current up-to-date version of Windows 10 Pro x64. Some of functions can be run also on LTSB/LTSC and on older versions of Windows and PowerShell (also on 32bit systems).