8
0
2024-01-24 16:42:38 +01:00

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}