Categories

Get-Service

One improvement to Get-Service that appears in PowerShell 2 CTP 2 is that you can work with the services on a remote computer

Get-Service -ComputerName csdc1

retrieves the services on a remote machine

so now we can do this

$s = Get-Service -ComputerName csdc1 -Name netlogon
$s.Start()

Makes admin even easier with PowerShell - especially as the machine I'm connecting to doesn't have PowerShell installed. In fact its a Server Core machine

 

Share this post :

 

Technorati Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>