Compare services on two computers

by Apr 25, 2011

Ever wondered why one computer runs well and another does not? Here is an example of how you can compare service configuration on two machines as long as you have privileges in place to remotely access the other machine:

PS > $own = Get-Service
PS > $other = Get-Service -ComputerName storage1
PS > Compare-Object $own $other -property Name, Status -PassThru | Sort-Object DisplayName | Select MachineName, Status, DisplayName, Name | Format-Table -AutoSize

 

 

Twitter This Tip!
ReTweet this Tip!