mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 18:38:19 +02:00
UPdated some scripts
This commit is contained in:
parent
210b878771
commit
f9821a542b
@ -18,7 +18,7 @@ param([string]$hosts = "bing.com,cnn.com,dropbox.com,github.com,google.com,ibm.c
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$hostsArray = $hosts.Split(",")
|
$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]$min = 9999999
|
||||||
[int]$max = [int]$avg = [int]$success = 0
|
[int]$max = [int]$avg = [int]$success = 0
|
||||||
[int]$total = $hostsArray.Count
|
[int]$total = $hostsArray.Count
|
||||||
|
@ -11,26 +11,35 @@
|
|||||||
Author: Markus Fleschutz | License: CC0
|
Author: Markus Fleschutz | License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
function Line ([string]$line) {
|
||||||
|
Write-Host $line -foregroundColor white -backgroundColor black
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
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 " 🔷 PowerShell Documentation: " -noNewline
|
||||||
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 "https://docs.microsoft.com/en-us/powershell" -foregroundColor blue
|
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 "https://www.guru99.com/powershell-tutorial.html" -foregroundColor blue
|
||||||
|
|
||||||
Write-Host " 🔷 PowerShell FAQ's: " -noNewline
|
Write-Host " 🔷 PowerShell FAQ's: " -noNewline
|
||||||
|
Loading…
Reference in New Issue
Block a user