-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInitializeDevMachine.ps1
37 lines (30 loc) · 1.22 KB
/
InitializeDevMachine.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
try
{
# download winget
# #Requires -RunAsAdministrator
# #Download Winget
Add-AppxPackage -Path "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx"
$releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases"
#$releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases/latest" #causing issue related to manifest was higher than supported
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$releases = Invoke-RestMethod -uri "$($releases_url)"
$latestRelease = $releases.assets | Where-Object { $_.browser_download_url.EndsWith("appxbundle") } | Select-Object -First 1
Add-AppxPackage -Path $latestRelease.browser_download_url
winget install Microsoft.dotnet
winget install Microsoft.Powertoys
winget install Microsoft.PowerShell
winget install Microsoft.WindowsTerminal
winget install git
winget install 'Visual Studio Professional'
winget install 'Visual Studio Enterprise'
winget install Microsoft.SQLServerManagementStudio
winget install Postman.Postman
winget install Microsoft.VisualStudioCode.System-x64
winget install Microsoft.Teams
#chrome
#firefox
}
catch
{
$_
}