Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Schedule Task Query to Remote Computer

$
0
0

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.


Viewing all articles
Browse latest Browse all 6937

Trending Articles