Windows 10 setup script

I have long wanted to share my script for automating the setup of Windows 10 (currently version 18362), but I never got around to it. It may be useful to someone in full or just its parts.

Of course, it will be challenging to describe all the setup points, but I will try to highlight the most important ones.

If anyone is interested, feel free to join.

Introduction

I have long wanted to share my script for automating the setup of Windows 10, but I never got around to it. It may be useful to someone in full or just its parts.

Of course, it will be challenging to describe all the setup points, but I will try to focus on the most important:

Main features

  • Disable diagnostic tracking services
  • A multitude of tweaks for File Explorer
  • Choose the default Windows mode
  • Choose the default application mode
  • Change the environment variable path for temporary files to $env:SystemDriveTemp
  • Enable additional information when displaying BSoD
  • Disable Windows Defender SmartScreen in Microsoft Edge
  • Prevent disabling the Ethernet adapter for power saving on a desktop PC
  • Remove all UWP applications from all accounts except
  • Remove all UWP applications from the system account except
  • Disable components
  • Remove OneDrive
  • Create a task in Task Scheduler to run disk cleanup
  • Create a task in Task Scheduler to clean the folder "$env:SystemRootSoftwareDistributionDownload"
  • Create a cleanup task in Task Scheduler for the $env:TEMP folder
  • Prevent standard applications from running in the background, except for
  • Enable controlled folder access and add protected folders
  • Disable custom services
  • Create a legacy shortcut for "Devices and Printers"
  • Override the location of the "Desktop", "Documents", "Downloads", "Music", "Pictures", "Videos" folders
  • Refresh desktop icons, environment variables, and the taskbar without restarting "Explorer"

Script

Github

Using

  • If you save to a .ps1 file, you should change the encoding to "UTF-8 with BOM"

or

  • Copy the code in its entirety and paste it into PowerShell ISE

NB

  • PowerShell and PowerShell ISE must run with elevated privileges
  • Set the appropriate execution policy for PowerShell scripts

Set-ExecutionPolicy Unrestricted -Force

Source: habr.com

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster