Follow sqlserver-dba.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

SQLServer-DBA.com Links

Dba_db2_button

dba-ninja.com

SQL Server DBA Jobs

How use Powershell Get-Service on a remote server without Powershell Remoting

18 February,2016 by Tom Collins

Question: How can I get a list of services on a remote Windows server using Powershell?
I'm using the Powershell cmdlet Get-Service and can return the list of Windows Services on the existing server.
I want to use a method without relying on enabling Powershell Remoting services.


Answer: It is possible to access a list of Windows Services remotely using get-service.
There's a good example in the Get-Help  . The Get-help section is a great way to learn more about Powershell. I would argue it's one of the best help guides I've ever seen with a product. Read on other cmdlets which will improve your Powershell brain Expand your Powershell mind – Three key cmdlets

This is an example of accessing Windows services on a remote server , without having to enable Powershell remoting

Get-Service -computername MY_REMOTE_SERVER_NAME


To get more details on Powershell cmdlet , from your Powershell command line

Get-Help Get-Service


To see loads of examples of Powershell Get-Service

 

get-help Get-Service -examples

 

Hours of fun!

Check for more Powershell Scripts 


Author: Tom Collins (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How use Powershell Get-Service on a remote server without Powershell Remoting


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer