I have the following Script . How can I call the computer name from a text file. I would like to check each computer that is listed in a file located at c:\ActiveComputers.txt for this file and return the file information
$items = Get-ChildItem -Path "\\COMPUTERNAME \c$\Temp\bin\hs_err_pid*.log"
foreach ($item in $items)
if ($item.Attributes -ne "Directory")
Write-Host $item.Fullname $item.CreationTime