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!!!!!