Check Active Directory From File
$names = Get-content "C:\list.txt" $file = '\\share\inad.txt' while ((Test-Path $file)) { $file = $file.Replace(".txt", "_.txt") } foreach ($name in $names) { $Addresses = $null try...
Nslookup Computers From File
$names = Get-content "C:\list.txt" $file = '\\share\nslook.txt' while ((Test-Path $file)) { $file = $file.Replace(".txt", "_.txt") } foreach($name in $names) { $Addresses = $null $Addresses =...
Ping Computers From File
$names = Get-content "C:\list.txt" $file = '\\share\pingable.txt' while ((Test-Path $file)) { $file = $file.Replace(".txt", "_.txt") } foreach($name in $names) { if(Test-Connection -ComputerName $name -Count 1...