Windows 10 setup script
For a long time I wanted to share my script on automating the configuration of Windows 10 (currently the current version is 18362), but all hands did not reach. Perhaps it will be useful to someone in whole or in part only.
Of course, it will be problematic to describe all the settings, but I will try to highlight the most important.
If anyone is interested, then welcome to cat.
Main functions
- Disable diagnostic tracking services
- Many Explorer tweaks
- Select default Windows mode
- Select default application mode
- Change the environment variable path for temporary files to $ env: SystemDrive \ Temp
- Include additional information when displaying BSoD
- Disable Windows Defender SmartScreen in Microsoft Edge
- Disable Ethernet adapter shutdown to save power for desktop PC
- Remove all UWP applications from all accounts except
- Delete all UWP applications from the system account, except
- Disable components
- Uninstall OneDrive
- Create a task in the Task Scheduler to start disk cleanup
- Create a task in the Task Scheduler to clean up the "$ env: SystemRoot \ SoftwareDistribution \ Download" folder
- Create in the Task Scheduler cleaning the $ env: TEMP folder
- Prevent standard applications from running in the background except
- Enable controlled access to folders and add protected folders
- Disable user services
- Create an old format shortcut for "Devices and Printers"
- Redefine the location of the folders “Desktop”, “Documents”, “Downloads”, “Music”, “Images”, “Video”
- Refresh desktop icons, environment variables and taskbar without restarting Explorer
Script
GithubUsing
- If you save to a .ps1 file, then you should change the encoding to “UTF-8 with BOM”
or
- Copy entire code and paste into PowerShell ISE
NB- PowerShell and PowerShell ISE must run with elevated privileges
- Set the appropriate PowerShell scripting policy
Set-ExecutionPolicy Unrestricted -Force
Source: https://habr.com/ru/post/465365/
All Articles