View Single Post
Old 01-22-2008   #1 (permalink)
Flea#


 
 

How to start a remote service under a different user name

Hello,

I need to be able to start a service a remote server under a different logon
name using PowerShell. If you right click on a service and choose properties
you can click on the 'Log On' tab and by default it uses a system account but
gives you the option to run it as a different account. Is there a way to do
this using PowerShell and probably WMI?

I was looking at the ServiceController.Start Method (String[]) which allows
you to pass parameters but I could not find examples of what parameters you
could pass. Does anyone know if this is possible?

Thanks,
Flea

--
http://fleasharp.blogspot.com/
My System SpecsSystem Spec