Skip to content

Instantly share code, notes, and snippets.

@croblesm
Last active July 21, 2022 23:50
Show Gist options
  • Save croblesm/f61ed7dbba7a04e88c5830de07309e29 to your computer and use it in GitHub Desktop.
Save croblesm/f61ed7dbba7a04e88c5830de07309e29 to your computer and use it in GitHub Desktop.
CustomScript-v3
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco feature enable -n allowGlobalConfirmation
choco install vscode -y
choco install azure-data-studio -y
choco install sql-server-management-studio -y
choco install dbatools -y
choco install azure-cli -y
choco install az.powershell -y
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module -Name SqlServer -Force
Install-Module -Name Az.DataMigration -RequiredVersion 0.11.0 -Force
Install-Module -Name Az.Storage -RequiredVersion 3.7.0 -Force
#Install-Module -Name WingetTools
#Install-Module -Name WinGet
Import-Module Sqlserver
Import-Module Az.DataMigration
Start-Process "C:\Program Files\Azure Data Studio\bin\azuredatastudio" -ArgumentList @("--install-extension microsoft.sql-migration","--force") -Wait
choco install dotnet-5.0-runtime
choco install sql-server-2019
#Invoke-WebRequest -Uri https://download.microsoft.com/download/E/4/7/E4771905-1079-445B-8BF9-8A1A075D8A10/IntegrationRuntime_5.19.8205.130.msi -OutFile C:\users\vmadmin\Downloads\IntegrationRuntime_5.19.8205.130.msi
#Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value 3390
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment