diff --git a/scripts/ping-remote-hosts.ps1 b/scripts/ping-remote-hosts.ps1 index 6531bb85..698209a0 100755 --- a/scripts/ping-remote-hosts.ps1 +++ b/scripts/ping-remote-hosts.ps1 @@ -18,7 +18,7 @@ param([string]$hosts = "bing.com,cnn.com,dropbox.com,github.com,google.com,ibm.c try { $hostsArray = $hosts.Split(",") - $tasks = $hostsArray | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,1000) } + $tasks = $hostsArray | foreach { (New-Object Net.NetworkInformation.Ping).SendPingAsync($_,1000) } [int]$min = 9999999 [int]$max = [int]$avg = [int]$success = 0 [int]$total = $hostsArray.Count diff --git a/scripts/write-help.ps1 b/scripts/write-help.ps1 index 49eb7716..fa85c319 100755 --- a/scripts/write-help.ps1 +++ b/scripts/write-help.ps1 @@ -11,26 +11,35 @@ Author: Markus Fleschutz | License: CC0 #> +function Line ([string]$line) { + Write-Host $line -foregroundColor white -backgroundColor black +} + try { + Line "█████████████████████████████████████" + Line "█████████████████████████████████████" + Line "████ ▄▄▄▄▄ █▀ █▀▀█▀▀ ▄▄██ ▄▄▄▄▄ ████" + Line "████ █ █ █▀ ▄ █▀ ▀ ▀▄█ █ █ █ ████" + Line "████ █▄▄▄█ █▀█ █▄▀▄▀ ▀ ▄▄█ █▄▄▄█ ████" + Line "████▄▄▄▄▄▄▄█▄█▄█ █▄█ █▄▀ █▄▄▄▄▄▄▄████" + Line "████▄▄ ▄█▄▄ ▄█▄▄ █▀ ▀▀▀ ▀▄▀▄█▄▀████" + Line "████▀▄▄█▀█▄██ ▀ ▄▄▀ █▄█▀ ▀ ▄▀▀█▀█████" + Line "█████ ▄▄█▄▄▀▄ ▀▄▀ ▄▄ ▀ ▀▀▀ ▀▄▄█▀████" + Line "████▄ ▀ ▄ ▄▄█ █▀██▄ ██▀▄█▄▄▀▄▄▀█████" + Line "████ ████▄▄ ▄█▄▄▄██ ▀ ▀▀▀▀▄ █▀████" + Line "████ ███▄ ▄▀▀██ ▄█ ▄▄▄█▀ ▄▄ ██▄▀█████" + Line "████▄█▄███▄▄▀▄▄▄▀ ▄▄ ▄▀▄ ▄▄▄ ▀ ████" + Line "████ ▄▄▄▄▄ █▄▄▄█▀█▄ ██ █▄█ ▄▄█▀████" + Line "████ █ █ █ ▀▄█▄ ▄▄ ▀█ ▄▄▄▄▀ ████" + Line "████ █▄▄▄█ █ ██ ▄█▄ ▄▀▀▀ ▄▄ ▄ █████" + Line "████▄▄▄▄▄▄▄█▄▄█▄▄████▄▄▄██▄▄▄█▄██████" + Line "█████████████████████████████████████" + Line "█████████████████████████████████████" "" - Write-Host " " -foregroundColor black -backgroundColor white - Write-Host " ▄▄▄▄▄▄▄ ▄ ▄▄▄ ▄▄▄▄▄▄▄ " -foregroundColor black -backgroundColor white - Write-Host " █ ▄▄▄ █ ▄▄▀█ █ ▄▄▄ █ " -foregroundColor black -backgroundColor white - Write-Host " █ ███ █ █▀ ▄▀ █ ███ █ " -foregroundColor black -backgroundColor white - Write-Host " █▄▄▄▄▄█ ▄▀█▀█ █▄▄▄▄▄█ " -foregroundColor black -backgroundColor white - Write-Host " ▄▄▄▄ ▄ ▄▄▄██▄ ▄▄▄ ▄ " -foregroundColor black -backgroundColor white - Write-Host " ▀ █ ▀▄▄▀█▀▀█▀█▀█▀▀▀▄█ " -foregroundColor black -backgroundColor white - Write-Host " ▄▄██▀▀▄▄█ ▄▀▄▄▄▀ ▀ ▀▄ " -foregroundColor black -backgroundColor white - Write-Host " ▄▄▄▄▄▄▄ ▀▀██▄▄██▄ ▀ ▀ " -foregroundColor black -backgroundColor white - Write-Host " █ ▄▄▄ █ ▀▄ ▄▀ ▀ ██▀▀ " -foregroundColor black -backgroundColor white - Write-Host " █ ███ █ █▄ ▄ ▀▄ ▀█▀ " -foregroundColor black -backgroundColor white - Write-Host " █▄▄▄▄▄█ █▀▄█ ███▀ ▄ ▀ " -foregroundColor black -backgroundColor white - Write-Host " " -foregroundColor black -backgroundColor white - "" - Write-Host " 🔷 PowerShell documentation: " -noNewline + Write-Host " 🔷 PowerShell Documentation: " -noNewline Write-Host "https://docs.microsoft.com/en-us/powershell" -foregroundColor blue - Write-Host " 🔷 PowerShell tutorial: " -noNewline + Write-Host " 🔷 PowerShell Tutorial: " -noNewline Write-Host "https://www.guru99.com/powershell-tutorial.html" -foregroundColor blue Write-Host " 🔷 PowerShell FAQ's: " -noNewline