https://github.com/veerendra2/prepare-my-windows
IaC setup to install necessary packages and configure my Windows.
https://github.com/veerendra2/prepare-my-windows
batch-script chocolatey windows
Last synced: over 1 year ago
JSON representation
IaC setup to install necessary packages and configure my Windows.
- Host: GitHub
- URL: https://github.com/veerendra2/prepare-my-windows
- Owner: veerendra2
- Created: 2023-03-17T19:05:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-21T12:59:51.000Z (almost 3 years ago)
- Last Synced: 2025-01-22T05:17:47.741Z (over 1 year ago)
- Topics: batch-script, chocolatey, windows
- Language: Batchfile
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prepare My Windows
[IaC](https://en.wikipedia.org/wiki/Infrastructure_as_code) setup to install necessary packages and configure my Windows.

## Prerequisite
Install [`chocolatey`](https://chocolatey.org/) package manager for Windows.
* Goto https://chocolatey.org/install
* Select `Individual`
* Check policy in Powershell(Run as administrator)
> Run `Get-ExecutionPolicy`. If it returns `Restricted`, then run `Set-ExecutionPolicy AllSigned` or `Set-ExecutionPolicy Bypass -Scope` Process.
* Install `chocolatey`
```Powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
```
## Run
* Download this Github repo [zip file](https://github.com/veerendra2/prepare-my-windows/archive/refs/heads/main.zip) or download [packages.config](https://github.com/veerendra2/prepare-my-windows/blob/main/packages.config)
* Once `chocolatey` is installed, open powershell(with run as administrator)
```Powershell
# Download and extract Github repo
PS C:\Users\veere\Downloads> cd prepare-my-windows-main
PS C:\Users\veere\Downloads\prepare-my-windows-main> choco install packages.config -y
```
## How to create custom script
* Use script builder https://docs.chocolatey.org/en-us/community-repository/script-builde
* Or check package exists in https://community.chocolatey.org/packages and add in [packages.config](./packages.config)
## For MacOS and Ubuntu
* https://github.com/veerendra2/prepare-my-machine.git