- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to get services on remote computers with PowerShell?
To get service on the remote computer(s), simply you need to add parameter – ComputerName and provide remote servers computer name or IP address.
In the below example, we are getting services information on remote computer Win7 which has Automatic start-type.
Get-Service -ComputerName Win7 | Where{$_.StartType -eq "Automatic"}
Similarly, you can connect multiple computers separated by comma (,) in – ComputerName parameter.
Get-Service -ComputerName Win7, TestPC | Where{$_.StartType -eq "Automatic"}
If you need to identify on which particular computer(s), services exist, you can use the machinename property. In the above example, we are adding a machine name property in Pipeline.
Get-Service -ComputerName Win7, TestPC | Where{$_.StartType -eq "Automatic"} | Select MachineName, Name, Status
- Related Articles
- How to get all the processes on remote computers using PowerShell?
- How to get connected remote desktop users on computers using PowerShell?
- How to get the services on a local computer with PowerShell?
- How to get services based on start-type in PowerShell?
- How to get services based on multiple conditional parameters in PowerShell?
- How to get all the services based on their status in PowerShell?
- How to stop service with their dependent services using PowerShell?
- How to stop service with their dependent services in PowerShell?
- How to stop multiple services using PowerShell?
- How to start dependent services in PowerShell?
- How to restart a remote system using PowerShell?
- How to test remote computer connectivity using PowerShell?
- How to start multiple windows services using PowerShell?
- How to check if remote ports are open using PowerShell?
- How to remove connected remote desktop user sessions using PowerShell?

Advertisements