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

want to get computername, service spooler, status of spooler

$
0
0

I am not getting the output that I want

My script

get-adcomputer -filter 'name -like "*equ*"' | foreach {get-service -servicename spooler}

Status   Name               DisplayName

running  spooler            Print Spooler

Running  spooler            Print Spooler

I am missing the computername

any help would be appreicated

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles