GithubHelp home page GithubHelp logo

micmaher / asyncfunctions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from proxb/asyncfunctions

1.0 2.0 0.0 12 KB

Various functions that make use of *Async .Net methods to perform operations in bulk faster.

License: MIT License

PowerShell 100.00%

asyncfunctions's Introduction

This is a branch off from Boe Prox's Test-ConnectionAsync. It is a wrapper that uses Boe's underlying ASync function to ping all hosts on a designated subnet.

Without a parameter the whole local subnet is pinged and results are returned. It is super quick . . .

PS C:\Windows\system32> Measure-Command {Ping-Subnet}

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 3
Milliseconds      : 679
Ticks             : 36795428
TotalDays         : 4.25873009259259E-05
TotalHours        : 0.00102209522222222
TotalMinutes      : 0.0613257133333333
TotalSeconds      : 3.6795428
TotalMilliseconds : 3679.5428

.EXAMPLE
    PS OneDrive:\> Ping-Subnet
        Computername    Result
        ------------    ------
        192.168.192.1  Success
        192.168.192.17 Success
        192.168.192.20 Success
        192.168.192.23 Success
        192.168.192.28 Success
.EXAMPLE
     This command pings all hosts in the designated subnet
    
     PS OneDrive:\> Ping-Subnet -subnet 212.58.244.0
        Computername    Result
        ------------    ------
        212.58.244.1   Success
        212.58.244.3   Success
        212.58.244.4   Success
        212.58.244.5   Success
        212.58.244.11  Success
.EXAMPLE
     This command reports the hosts on the given subnet which failed to respond to ping
    
     PS OneDrive:\> Ping-Subnet -subnet 212.58.244.22 -result TimedOut
        Computername     Result
        ------------     ------
        212.58.244.2   TimedOut
        212.58.244.6   TimedOut
        212.58.244.7   TimedOut

asyncfunctions's People

Contributors

micmaher avatar proxb avatar

Stargazers

Michael Klement avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.