Starting from My Ultimate PowerShell prompt with Oh My Posh and the Windows Terminal
Alternative Tutorial: Set up Powerline in Windows Terminal
winget install Microsoft.PowerShell
@echo off | |
@REM WinSCP PuTTY/Terminal client path: | |
@REM "<drive>:\<Path_to_file>\WindowsTerminal.bat" "!K" !U@!@ !# !/ "!N" | |
@REM setlocal | |
setlocal enabledelayedexpansion | |
SET "debugMode=n" | |
SET "Line=======================" |
Starting from My Ultimate PowerShell prompt with Oh My Posh and the Windows Terminal
Alternative Tutorial: Set up Powerline in Windows Terminal
winget install Microsoft.PowerShell
Invoke-ExecuteNotebook -InputNotebook .\SQL-on-Docker-with-PowerShell.ipynb -Parameters @{sa_password = 'Test9999'; SQLNumber = 97} |
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"final_space": false, | |
"osc99": true, | |
"console_title": true, | |
"console_title_style": "template", | |
"console_title_template": "{{ .Folder }}", | |
"transient_prompt": { | |
"background": "transparent", | |
"foreground": "#c4c4c4", |
# | |
# Decode a base64 and compressed Powershell script. | |
# | |
# | |
# | |
# | |
$input = Read-Host -Prompt 'Base64 Text' | |
$decoded = $(New-Object IO.StreamReader ($(New-Object IO.Compression.DeflateStream($(New-Object IO.MemoryStream(,$([Convert]::FromBase64String($input)))), [IO.Compression.CompressionMode]::Decompress)), [Text.Encoding]::ASCII)).ReadToEnd(); | |
Write-Host "----- Decoded -----" |
# FIX Net isues | |
## IPCONFIG - options | |
ipconfig /release | |
ipconfig /flushdns | |
ipconfig /renew | |
## NETSH - options | |
netsh int ip reset | |
netsh winsock reset |
Fast and Automatic Software Install and Configuration (on Windows)
Install my common apps on Windows as fast as possible and mostly automatically, after a reimaging or reset of my OS. Also change some settings on Windows, like disabling the bing search in the start menu.
This PowerShell script uses Microsoft Store and winget to download and install a list of application, configured at the top of the file.