Jump to content
Sign in to follow this  
KenzoIT

Restart a windows service remotely

Recommended Posts

KenzoIT

Hi everyone,

I want to restart windows services remotely such as CA, Telnet, ASP.NET ....

Can you instruct me how to do it ?

Thanks !

Share this post


Link to post
Share on other sites
99ojo

Hi,

have a look at windows command line tool sc.exe (sc /?).

Look in helpfile for function Run, RunAs, RunWait, RunAsWait.

;-))

Stefan

Share this post


Link to post
Share on other sites
KenzoIT

I execute DOS command with _RunDOS ( $sCommand )

And windows command line:

SC \\machine_name START "Service Name"

Thanks for your support ! :mellow:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×