update scripts
This commit is contained in:
parent
566cebdc96
commit
a5a3637b5c
14 changed files with 6289 additions and 5805 deletions
13
Scripts/Start-PingRSJob.psm1
Normal file
13
Scripts/Start-PingRSJob.psm1
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function Start-PingRSJob ($Network) {
|
||||
$RNetwork = $Network -replace "\.\d{1,3}$","."
|
||||
foreach ($4 in 1..254) {
|
||||
$ip = $RNetwork+$4
|
||||
(Start-RSJob {"$using:ip : "+(ping -n 1 -w 50 $using:ip)[2]}) | Out-Null
|
||||
}
|
||||
$ping_out = Get-RSJob | Receive-RSJob
|
||||
$ping_out
|
||||
Get-RSJob | Remove-RSJob
|
||||
}
|
||||
|
||||
# Start-PingRSJob -Network 192.168.3.0
|
||||
# (Measure-Command {Start-PingRSJob -Network 192.168.3.0}).TotalSeconds # 10 Seconds
|
||||
Loading…
Add table
Add a link
Reference in a new issue