This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" | |
| # ========================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The world is square |