Author Posts

August 5, 2017 at 4:37 pm
Reference to above course topic 1 i have typed the program :- ping dc but it did not worked. Can any body know why. Iam running it as an administrator mode

August 5, 2017 at 5:14 pm

I'm guessing you have not used the "ping" command before. It isn't PowerShell, but happy to try and help. I'm guessing you do not have a computer named "DC" on your network. Explains the command.

August 5, 2017 at 10:40 pm

Something like "ping" should work. It's very easy to ping with .net as well:

function ping ($hostname='', $timeout = 500) {
  $Ping = []::new()
  $Ping.Send($hostname, $timeout)

PS /> ping

Status        : Success
Address       :
RoundtripTime : 13
Options       : 
Buffer        : {}