How to query service status on a remote windows server

Use the SC command.

C:\> SC \\ServerName query "ServiceName"


C:\> SC \\ServerName query "Informatica10.1.1"
C:\> SC \\ServerName start "Informatica10.1.1"

C:\> SC \\ServerName GetDisplayName "Informatica10.1.1"
[SC] GetServiceDisplayName SUCCESS
Name = Informatica 10.1.1

C:\> SC \\ServerName  GetKeyName "Informatica 10.1.1"
[SC] GetServiceKeyName SUCCESS
Name = Informatica10.1.1


Alternative:  
Open services.msc 
Right-click on "Services (local)" on the left pane.  
Click on "Connect to another computer...".
Select the remote server.

Note: services.msc might remember which server was seected last time.  Once done, you might want to reconnect to your local computer.




No comments:

Post a Comment

Followers (Guests)