This repository contains a PowerShell script to automate the setup of a Windows development environment. The script installs common development tools, configures system settings, and sets up your workspace with a single execution.
- Installs essential development tools using Chocolatey:
- Visual Studio Code
- Git & GitHub Desktop
- Node.js LTS & Yarn
- Java JDK 21
- IntelliJ IDEA Community Edition
- OpenSSL
- Configures Git global settings
- Installs useful VS Code extensions
- Enables Windows Subsystem for Linux (WSL)
- Creates project directories
- Sets up PowerShell profile with useful aliases and functions
- Adds custom environment variables
- Creates a system restore point before making changes
- Windows 10 or 11
- Administrator privileges
-
Right-click on the
EnvironmentSetup.ps1file and select "Run with PowerShell as Administrator"OR
-
Open PowerShell as Administrator and run:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
cd "PATH_TO_SCRIPT_DIRECTORY"
.\EnvironmentSetup.ps1The easiest way to customize the script is by editing the config.ps1 file:
- Modify the
Softwarearray to add or remove software packages - Customize the
VSCodeExtensionsarray to add/remove extensions - Change the project directories in the
Directoriesarray - Add or modify environment variables in the
EnvironmentVariablesarray - Enable or disable Windows features in the
WindowsFeaturesarray
You can also directly modify the EnvironmentSetup.ps1 script for more advanced customization:
- Edit the PowerShell profile content to add your own aliases and functions
- Add custom commands or configuration steps to the script
The script creates a log file named setup_log.txt in the same directory as the script. This file contains detailed information about each step of the setup process.
- The script requires administrator privileges to run
- Some changes may require a system restart to take effect
- The script creates a system restore point before making changes for safety