Skip to main content

Powershell Snippets

for-Loop

for ($i=0; $i -le 10; $i++) {
[console]::beep($i * 100 + 700, 500);
}

Beep Sound

# [console]::beep(frequency, ms)
[console]::beep(1200, 500);
[console]::beep(1000, 500);

Lolcat

👉 https://github.com/andot/lolcat

Install-Module lolcat -Scope CurrentUser

set-executionpolicy remotesigned -scope CurrentUser

dir | lolcat