I need to ping a computer using Powershell to determine whether a computer exists with a particular computer name.
$ping = new-object system.net.networkinformation.ping
but it gives me an error:
Exception calling "Send" with "1" argument(s): "Value cannot be null.
Parameter name: address"