Useful PowerShell script whenever you need to reinstall Windows 10 on your laptop
- Nguyen Van Cuong
- Sep 6, 2021
- 1 min read
Updated: Nov 7, 2021
A PowerShell script to clean and configure Windows 10 and Windows Server. The script is tested to be compatible with Windows 10 version 1803, 1809, 1903, 1909, 2004, 20H2, and 21H1, and with Windows Server 2016 and 2019. Best used on a fresh install of Windows 10 or Windows Server.

I originally created the script to make it easier for me to deploy computers at my office after I reinstalled Windows 10 on them. I expanded upon it to do things I've done on my personal computer so that if I needed to, I could reprovision it in an hour or so, instead of a day.
Thank you arex388 about cleaner10 script. I also add some feature script for my own usage. If you like anything else and want to include into the script, just let me know and I'll do it.
What it can do:
+ All the function that cleaner10 have
+ Install more software: Spotify, Zoom, Notepad++, Cloudflare, IDM, Visual Studio Code, VMWare 16, Foxit Reader, Additional software from a selected folder (silent install required)
+ Add, auto arrange, and change the size of default desktop icon
+ Change DNS to Cloudflare DNS server
+ Stop and disable any services you don't need
+ Add exclusion virus folder
+ Other function: Import your own power plan, set quick launch to This PC, uncheck Hide Extension File, change background color to solid, turn off System Protection, turn off 30s display set up.
Credit: Cleaner10 and others.
Code:
댓글