Coder Social home page Coder Social logo

ruxunderscore / windows-initialization Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 30.6 MB

Initialization script for Windows 10/11. More to be added.

Home Page: https://www.linkedin.com/in/jonathanerux/

License: MIT License

PowerShell 100.00%
winget powershell winget-cli

windows-initialization's Introduction

Windows Initialization and Software Installation Script

This PowerShell script initializes a Windows 10/11 x64 machine and installs initial software needed by employees at a company or for individual use. It uses the winget package manager to install applications listed in the apps.json file.

image

Requirements

  • Windows 10/11 (22H2) or later
  • PowerShell 5.1 or later
  • Internet connectivity

Usage

  1. Clone this repository to your local machine.
  2. Supply your own exported apps.json file from another computer, or use example-apps.json as a template.
  3. Open PowerShell as Administrator and navigate to the directory where the script is located.
  4. Set Execution Policy to Bypass: Set-ExecutionPolicy Bypass #Remember to never run scripts blindly.
  5. Run the script by entering the following command: .\initialize.ps1.

Functionality

The script consists of the following functions:

  • AAP: installs AppxPackage.
  • InstallPrereqs: installs winget prerequisites from the .\prereqs directory.
  • WingetCheck: checks for winget; if it doesn't exist, installs prerequisites and winget.
  • InstallApps: installs apps from JSON list. #You may comment out InstallApps in the "Call Functions" section if you would only like the script to install Winget.

The script checks whether the winget package manager is installed on the machine. If it is not installed, the script installs the prerequisites for winget and then downloads and installs winget. After installing W=winget, the script installs the applications listed in the .\apps.json file using winget import.

Notes

  • This script has been tested on Windows 10/11 22H2 x64.
  • The example-apps.json file contains a list of apps to be installed using winget.

Credits

This script was created by RuxUnderscore, aka. Rux, and is licensed under the MIT License. If you have any questions or issues with the script, please open an Issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.

windows-initialization's People

Contributors

ruxunderscore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lovey25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.