Scripts for automating developer enviroment setup. Refer to this repository for updates.
-
Check the
chocoPackages.configfile to ensure all desired Chocolatey packages are thereNOTE: You can search for Chocolatey packages to add at the Community Package Repository
Be certain to confirm that a package has been marked as a trusted package and any checks have passed before adding it to your config file.
To add an entry to the
chocoPackages.configyou will need to know the id of the package. For example if you know you want to install Python you may see that the command for CLI would bechoco install pythonso the entry to make in the config file would be<package id="python" />
Optionall, you can also specify a version if you need to install a specific version of a package, for example:
<package id="python" version="3.9.10" />
Additional details about what can go into the
chocoPackages.configcan be found at Packages.config -
Optional, If installing any PowerShell modules, check the
poshModules.configfileThis file is expecting the id of a module from the PowerShell Gallery
Specify name of module id
<module id="Az" />
-
Run
setup.cmdas Administrator -
Follow any prompts any the command window, these can vary depending upon what is being installed
-
Check for any errors
-
Reboot machine
- Chocolatey (latest version) plus any patches
- All dependencies specified in your
chocoPackages.config - All modules specified in
poshModules.config
If you try to run the setup.cmd and get the following error
The remote server returned an error: (407) Proxy Authentication Required.
Then try adding these lines to the setup.ps1 file just beneath the Params ()
[System.Net.WebRequest]::DefaultWebProxy = [System.Net.WebRequest]::GetSystemWebProxy()
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials If you want to remove Chocolatey and ALL of the packages it has installed, follow the steps at How to Uninstall