Skip to content

Instantly share code, notes, and snippets.

View kramit's full-sized avatar

Michael Whitehouse kramit

View GitHub Profile
# Windows Server 2025 Bootstrap Script - v2 Unattended
# Fire-and-forget build script
# Run in an elevated PowerShell session
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
$script:RebootRequired = $false
$script:LogPath = "C:\Windows\Temp\WS2025-Bootstrap.log"
# =========================
# Hyper-v powershell examples
#vm switch
New-VMSwitch -Name "LabSwitch" -SwitchType Internal
New-VMSwitch -Name "ExternalSwitch" -NetAdapterName "Ethernet" -AllowManagementOS $true
# Changing boot order
# Add and attach ISO
@kramit
kramit / profile.json
Created April 28, 2020 11:00
minimal profile for win terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"profiles": [
{
"acrylicOpacity": 0.9,
"closeOnExit": true,
"colorScheme": "One Half Dark",
"commandline": "powershell.exe",
"cursorColor": "#FFFFFF",
@kramit
kramit / ssms_install.ps1
Created November 19, 2019 21:34 — forked from justinsoliz/ssms_install.ps1
Powershell - Install Sql Server Management Studio
# Set file and folder path for SSMS installer .exe
$folderpath="c:\windows\temp"
$filepath="$folderpath\SSMS-Setup-ENU.exe"
#If SSMS not present, download
if (!(Test-Path $filepath)){
write-host "Downloading SQL Server 2016 SSMS..."
$URL = "https://download.microsoft.com/download/3/1/D/31D734E0-BFE8-4C33-A9DE-2392808ADEE6/SSMS-Setup-ENU.exe"
$clnt = New-Object System.Net.WebClient
$clnt.DownloadFile($url,$filepath)
The world is square