![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) | ||||||||||||
| Guest | Re: PING up or down ??? Try this: $ping = new-object System.Net.NetworkInformation.Ping $status = $ping.send($computer) if($status) {"online"} else {"offline"} If the computer doesn't havs a corresponding A (host) record in DNS, ping it by its IP number. ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic
| ||||||||||||
My System Specs![]() | |||||||||||||
| | #2 (permalink) | ||||||||||||
| Guest | Re: PING up or down ??? Emilio G. Burgoa wrote:
PowerShell Script: Select-Alive By halr9000 Powershell Purpose: Use as a filter to select computers from a stream on which to act upon later in the pipeline. Example: get-content servers.txt | select-alive | get-wmiobject ` win32_foo -- Hal Rottenberg Blog: http://halr9000.com Webmaster, Psi (http://psi-im.org) Co-host, PowerScripting Podcast (http://powerscripting.net) | ||||||||||||
My System Specs![]() | |||||||||||||
| | #3 (permalink) |
| Guest | PING up or down ??? Helo... I need one script to verify the state of one host/computer... I write one old script that use de "ping" command, but have a problems if the S.O. have distinct languaje of the original... Other problem detected if when the host to ping not exists in the DNS... Someone have this scripts ??? Thanks. Emilio G. Burgoa San Juan - Argentina |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I can ping with IPv6. I can not ping with IPv4. | Eric Gamess | Vista General | 2 | 05-03-2008 03:01 PM |
| Can ping, but ... | em_CT | Vista networking & sharing | 4 | 12-05-2007 10:14 AM |
| Can Only Ping One way | Trevor | Vista networking & sharing | 1 | 08-14-2007 05:05 PM |
| Ping....................! | Frankster | Vista General | 7 | 02-13-2007 06:07 PM |
| Ping | lockup | Vista installation & setup | 6 | 02-09-2007 10:15 AM |