I would like some help in creating a Script that can stop a service> delete some files> restart the service.
*I would like to run it from my machine (client, winodws 7)
*The service i want stop and start and files to delete are on a MS 2008 Box
*I would like to use our support account that is part of the Domain admins group
*I have run the content of the script manually on the server in cmd and works fine but doesn't work as a script using runas on my machine.
So far i have
net stop "Service"
del "files path to delete"
net start "Service"
I played around with runas /u: /netonly but it looks like i'm just not getting it right
Thanks for the help in advanced.