Check Active Directory From File May 27, 2022 $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... Click to Copy