Skip to content

Instantly share code, notes, and snippets.

View TrimarcJake's full-sized avatar
💭
❤️💜💙

Jake Hildreth TrimarcJake

💭
❤️💜💙
View GitHub Profile
@TrimarcJake
TrimarcJake / Add-DevToMyWinServer.ps1
Created January 24, 2024 13:40 — forked from bentman/Add-DevToMyWinServer.ps1
Script to install Dev Tools on Windows Server 2022
<#
.SYNOPSIS
Script to install Dev Tools on Windows Server (tested on 2022)
.DESCRIPTION
Installs the following from multiple resources:
Microsoft.VCLibs v14.00 (github)
Microsoft.UI v2.7.3 (github)
winget-cli v1.6.2771 (github)
Microsoft pwsh.exe vCurrent (winget)
Microsoft.WindowsTerminal v1.18.2822.0 (github)
param(
)
#requires -Modules ActiveDirectory
$VerbosePreference = "Continue"
# Ensure the script is running with elevated privileges
$IsElevated = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
if (-not $IsElevated) {