My Windows10 Pro Post Fresh Installation Script

This is a script that I use to install all the software I need after a fresh installation of Windows 10 Pro. The purpose of this script is to automate the installation of software and to make it easier to setup your desired environment. This script is not intended to be used by anyone else but me. However, if you find it useful, feel free to fork it and make it your own. I have included a list of software that I use on a daily basis.

What this script does

  • Renames the computer
  • Removes Search, News and Interests and Cortana from the taskbar
  • Sets the background to a solid colour [rgb(56, 56, 56)] / Dark Grey
  • Installs the following PowerSHell modules:
    • PSWindowsUpdate
    • HttpListener
    • PnP.PowerShell
    • Az
    • Microsoft.PowerShell.SecretManagement
    • ImportExcel
  • Start SSH-Agent Service and set it to automatic (Nice to have if you use SSH keys with Passphrase)
  • Install Winget Packages from json file in this repo
  • Enables Hyper-V

Prerequisites

  • Windows 10 Pro (tested on 21H2), it may work on other versions but I have not tested it
  • WinGet installed
  • PowerShell 5.1 or higher (tested on 7.1.3)
  • PowerShell Execution Policy set to RemoteSigned

Instructions

  1. Install Winget (App Installer) from the Microsoft Store, if

  2. Open PowerShell as Administrator

  3. Run the following command to set the Execution Policy to RemoteSigned

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
  4. Install Git if you don't have it already via Winget

    Install Git and PowerShell via Winget and open new PowerShell session in order to load git into the path

    winget install git;PowerShell
  5. Clone this repo

    cd $env:USERPROFILE;git clone https://github.com/kosmolito/Win10ProEnvironmentBuilder.git
  6. Change directory to the repo

    cd .\Win10ProEnvironmentBuilder\
  7. Run the script

    .\Win10ProEnvironmentBuilder.ps1