Skip to content

Instantly share code, notes, and snippets.

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

Jake Hildreth jakehildreth

💭
❤️💜💙
View GitHub Profile
@jakehildreth
jakehildreth / Out-HostColored.ps1
Created December 13, 2024 10:57 — forked from mklement0/Out-HostColored.ps1
PowerShell function that colors portions of the default host output that match given patterns.
<#
Prerequisites: PowerShell version 2 or above.
License: MIT
Author: Michael Klement <mklement0@gmail.com>
DOWNLOAD, from PowerShell version 3 or above:
irm https://gist.github.com/mklement0/243ea8297e7db0e1c03a67ce4b1e765d/raw/Out-HostColored.ps1 | iex
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) {
@jakehildreth
jakehildreth / 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)