Last active
January 25, 2023 21:08
-
-
Save kylefender/a80ef22675f35111124f6217bfab8f19 to your computer and use it in GitHub Desktop.
Setup my dev machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run the rest in the boxstarter shell | |
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
| Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm | |
| # From https://gist.github.com/flcdrg/87802af4c92527eb8a30 | |
| # This will install NuGet module if missing | |
| Get-PackageProvider -Name NuGet -ForceBootstrap | |
| # PowerShellGet. Do this early as reboots are required | |
| if (-not (Get-InstalledModule -Name PowerShellGet -ErrorAction SilentlyContinue)) { | |
| Write-Host "Install-Module PowerShellGet" | |
| Install-Module -Name "PowerShellGet" -AllowClobber -Force -Scope AllUsers | |
| # Exit equivalent | |
| Invoke-Reboot | |
| } | |
| # Write-Host "Set-PSRepository" | |
| Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
| # Windows features | |
| choco install TelnetClient -source windowsfeatures | |
| choco install NetFx3 -source windowsfeatures | |
| choco install Microsoft-Hyper-V-All -source windowsfeatures | |
| choco install IIS-WebServerRole IIS-NetFxExtensibility45 IIS-HttpCompressionDynamic IIS-WindowsAuthentication IIS-ASPNET45 IIS-IIS6ManagementCompatibility -source windowsfeatures | |
| choco install Containers -source windowsfeatures | |
| # Remove unwanted Store apps | |
| Get-AppxPackage Facebook.Facebook | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage TuneIn.TuneInRadio | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage Microsoft.MinecraftUWP | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage KeeperSecurityInc.Keeper | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage 2FE3CB00.PicsArt-PhotoStudio | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage 9E2F88E3.Twitter | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name *Twitter | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name *MarchofEmpires | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name king.com.* | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name Microsoft.3DBuilder | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name *Bing* | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name DellInc.PartnerPromo | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name Microsoft.SkypeApp | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name Microsoft.YourPhone | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name *XBox* | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name Microsoft.MixedReality.Portal | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Get-AppxPackage -AllUser -Name Microsoft.Microsoft3DViewer | Remove-AppxPackage -ErrorAction SilentlyContinue | |
| Write-Host "Temp: $($env:temp)" | |
| # Browsers | |
| choco install firefox -y | |
| choco pin add -n=firefox | |
| choco install GoogleChrome -y | |
| choco pin add -n=googlechrome | |
| # Other Tools | |
| choco install 7zip -y | |
| choco install azure-cli -y | |
| choco install docker-for-windows -y | |
| choco pin add -n=docker-for-windows | |
| choco install files -y | |
| choco install git -y | |
| choco install git-credential-manager-for-windows -y | |
| choco install linqpad4 -y | |
| choco pin add -n=linqpad4 | |
| choco install nerd-font-cascadiacode -y | |
| choco install notepadplusplus -y | |
| choco install nvm -y | |
| choco install oh-my-posh -y | |
| choco install paint.net -y | |
| choco pin add -n=paint.net | |
| choco install poshgit -y | |
| choco install powershell-core -y | |
| choco install screentogif -y | |
| choco pin add -n=screentogif | |
| choco install slack -y | |
| choco pin add -n=slack | |
| choco install sysinternals -y | |
| choco install terraform -y | |
| choco install windirstat -y | |
| # IDEs | |
| choco install visualstudio2022enterprise -y | |
| choco install visualstudio2022-workload-visualstudioextension -y | |
| choco install visualstudio2022-workload-manageddesktop -y | |
| choco install visualstudio2022-workload-netweb -y # ASP.NET and web development | |
| choco install visualstudio2022-workload-netcoretools -y # .NET Core cross-platform development | |
| choco install visualstudio2022-workload-node -y #Node.js development | |
| choco install visualstudio2022-workload-azure -y | |
| choco install visualstudiocode -y | |
| # Manufacturer | |
| if ((get-wmiobject Win32_ComputerSystem).manufacturer -like "*Dell*") { | |
| choco install dellcommandupdate-uwp | |
| } | |
| if ((get-wmiobject Win32_ComputerSystem).manufacturer -like "*Lenovo*") { | |
| choco install lenovo-thinkvantage-system-update | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment