I am running the Query to find out the status of my Schedule Job i got the result but my
PSComputer Name is empty , Can anyone help to get the Computer name in output
$Computer = gc "c:\computers.txt"
$Computer | % {Sctasks /query /s $_ /TN 'TaskName'}
also tried with Select-object but PsComputername is empty.