PowerTip: Use PowerShell to Check if Computer Is Up

Summary:  Learn how to use Windows PowerShell to quickly check to see if a computer is up.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see if a computer is up?

Hey, Scripting Guy! Answer Use the Test-Connection cmdlet to send a ping (icmp packet) to the remote computer.
          If you specify the –Quiet parameter, it returns only True or False.

Test-Connection -BufferSize 32 -Count 1 -ComputerName -Quiet

Comments (2)

  1. Radhakrishnan G says:

    Grt own.. much needed.

  2. Powershell is Awesome says:

    That’s way better than ‘ping’! Thanks, Microsoft!

Skip to main content