{"id":13554315,"url":"https://github.com/sketch7/machine-setup","last_synced_at":"2025-08-03T18:32:01.620Z","repository":{"id":78056519,"uuid":"103865993","full_name":"sketch7/machine-setup","owner":"sketch7","description":"Powershell script which simplifies PC installation which primarily target devs but everyone can use it. Installs apps via chocolatey, nodejs and executes other specific commands.","archived":false,"fork":false,"pushed_at":"2019-10-29T12:25:43.000Z","size":10,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-04T02:32:49.907Z","etag":null,"topics":["dev-setup","developer-tools","development-environment","pc-installation","pc-setup","quick-install","setup","setup-script","setup-tool"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sketch7.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-17T22:19:03.000Z","updated_at":"2024-02-20T13:59:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab97cd16-3a31-4662-bb03-bcf947393236","html_url":"https://github.com/sketch7/machine-setup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sketch7%2Fmachine-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sketch7%2Fmachine-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sketch7%2Fmachine-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sketch7%2Fmachine-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sketch7","download_url":"https://codeload.github.com/sketch7/machine-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228557175,"owners_count":17936452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dev-setup","developer-tools","development-environment","pc-installation","pc-setup","quick-install","setup","setup-script","setup-tool"],"created_at":"2024-08-01T12:02:44.778Z","updated_at":"2024-12-07T04:12:07.098Z","avatar_url":"https://github.com/sketch7.png","language":"PowerShell","readme":"# Machine Setup\n**Version: 1.1**\n\nPowershell script which simplifies PC installation which primarily target devs but everyone can use it. Installs apps via chocolatey, nodejs and executes other specific commands.\n\nIt has a base configuration file `config.base.json` which can be extended/overwritten by a profile configuration `config.home.json`.\n\n## Getting Started\n\n#### Cloning Repo\nGenerally you should clone repo before formatting or you can [download as zip file](https://github.com/sketch7/machine-setup/archive/master.zip).\n\n- Run `git clone https://github.com/sketch7/machine-setup.git`\n\n### Prerequisites\n\n1. Powershell 5.0+ \n2. Run `pre-requisites.ps1`\n    * If you have powershell issues run this command in PS as Administrator: `Set-ExecutionPolicy RemoteSigned`.\n3. Update `config.base.json`\n4. Create/Update any profile configuration. example: `config.home.json`.\n    * At least one profile is required!\n    * I've provided my configurations which I've used for my home/work pc installations.\n\n## Start Installation\n\n1. Make Sure you are running powershell as `Administrator`.\n2. Right click on `machine-setup.ps1` and select `Run With Powershell`.\n\n***Enjoy :)***\n\n## Installation process guidelines\nThe below process is assuming that you have set `ignore: false` and `install: true` in your `config.json` files.\n1. Set PS Gallery as Trusted\n2. Chocolatey install\n3. NodeJs install\n    * Set GlobalSettings\n4. otherCommands - PreCommands executions\n\n*** Restart PC (first time) ***\n\n5. Chocolatey install packages\n\n*** Restart PC (second time) ***\n\n6. NodeJs install packages\n7. otherCommands - PreCommands executions\n\n## Global Configuration\n| Name                  | Type    | Default | Description                                                                                    |\n|-----------------------|---------|---------|------------------------------------------------------------------------------------------------|\n| setPSGalleryAsTrusted | boolean | false   | Set Powershell Gallery as 'Trusted'.                                                           |\n| restartRequired       | boolean | false   | Restart your computer (first time).                                                            |\n| chocolatey            | object  | -       | Chocolatey section ([refer to: chocolatey configuration](#chocolatey-configuration)).          |\n| NodeJs                | object  | -       | Node section ([refer to: nodejs configuration](#nodejs-configuration)).                        |\n| otherCommands         | object  | -       | otherCommands section ([refer to: otherCommands configuration](#othercommands-configuration)). |\n\n### Chocolatey Configuration\n| Name            | Type     | Default | Description                          | Example                    |\n|-----------------|----------|---------|--------------------------------------|----------------------------|\n| ignore          | boolean  | false   | This will skip the whole section.    | -                          |\n| install         | boolean  | false   | Install chocolatey on your machine.  | -                          |\n| commandName     | string   | -       | Execution command name.              | `\"choco\"`                  |\n| prefix          | string   | -       | Execution command prefixes.          | `\"install -y\"`             |\n| restartRequired | boolean  | false   | Restart your computer (second time). | -                          |\n| packages        | string[] | []      | Package names to be installed.       | `[\"googlechrome\", \"yarn\"]` |\n| skipPackages    | string[] | []      | Skip any packages that match.        | `[\"yarn\"]`                 |\n\n### NodeJs Configuration\n| Name              | Type     | Default | Description                       | Example                  |\n|-------------------|----------|---------|-----------------------------------|--------------------------|\n| ignore            | boolean  | false   | This will skip the whole section. | -                        |\n| install           | boolean  | false   | Install NodeJs on your machine.   | -                        |\n| commandName       | string   | -       | Execution command name.           | `\"npm\"`                  |\n| prefix            | string   | -       | Execution command prefixes.       | `\"install -g\"`           |\n| setGlobalSettings | boolean  | false   | Set Global Settings.              | -                        |\n| packages          | string[] | []      | Package names to be installed.    | `[\"typescript\", \"gulp\"]` |\n| skipPackages      | string[] | []      | Skip any packages that match.     | `[\"gulp\"]`               |\n\n### otherCommands Configuration\n| Name             | Type     | Default | Description                       | Example                                                          |\n|------------------|----------|---------|-----------------------------------|------------------------------------------------------------------|\n| ignore           | boolean  | false   | This will skip the whole section. | -                                                                |\n| install          | boolean  | false   | Allow preCommands to execute.     | -                                                                |\n| preCommands      | object[] | []      | Commands to be executed.          | `[{ \"dotnet-install\": \"choco install dotnet4.6 -y\" }]`           |\n| skipPreCommands  | string[] | []      | PreCommands Names to be skipped.  | `[\"dotnet-install\"]`                                             |\n| postCommands     | object[] | []      | Commands to be executed.          | `[{ \"npm-pull\": \"npm pull\" }, { \"npm-install\": \"npm install\" }]` |\n| skipPostCommands | string[] | []      | PostCommands Names to be skipped. | `[\"npm-install\"]`                                                |\n","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsketch7%2Fmachine-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsketch7%2Fmachine-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsketch7%2Fmachine-setup/lists"}