Jump to content

Restart a service remotely with auto it


Noeladams

Recommended Posts

I hope someone can help with this because its probably so simple but i have racked my brain tonight lol.

I want to create a gui that says: "Do you wish to restart WDS" and then if you say yes it goes on to a input box asking for what server name.

After that is type go out and execute somethting like the following:

\\testserver01\apps\pstools\psservice \\%ServerName% -u administrator -p password restart WDSserver

I cannot figure out how to tie the input box information to the %servername% maybe i have been up too long or something lol.

Also, if the service isn't running by some chance can it start it or would that happen with the restart?

Thanks all!!!!!

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...