Can ping command be used in a startup script to check connectivity to a network server ? Powershell startup script:
$Ping=new-object System.Net.NetworkInformation.Ping
$Reply=$ping.send("MyServer01")
if ($Reply.status() -eq "Success")
{
Perform operations
}
Else
{Perform other operations}
Rightnow, the $reply is blank during startup script execution but has values if I run after logged in.
Thanks.