We help IT Professionals succeed at work.
Get Started

Asp.Net State Service Batch File

Last Modified: 2013-11-09
Dear experts-exchange,

I would like to know how to create a batch file for the ASP.NET State Service, since I don’t want to login to a remote server, to go the administrative tools, services and later re-start the asp.net state service all the time .   That’s a long way to navigate to another server.  I want to have a shortcut batch file in my local pc, so if ASP.net State Service stops, I just click the shortcut and the asp.net state service will re-start without go to another server.  Your assistance and help is appreciated.

Sample batch file like this:

Path remote server ?
net stop "ASP.NET State Service"
net start "ASP.NET State Service"
sc config ?????  start= auto

Watch Question
Full stack Software Engineer
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE