8 lines
245 B
PowerShell
8 lines
245 B
PowerShell
$test1 = (Test-Connection -ComputerName "enterprise" -Count 1 -Quiet)
|
|
|
|
|
|
|
|
Write-Host $test1
|
|
|
|
|
|
#$job = Test-connection -ComputerName (Get-Content Servers.txt) -asjobPS C:\>if ($job.JobStateInfo.State -ne "Running") {$Results = Receive-Job $job} |