Tech Tip 101 – Starting Services in Batch File

This is the start of my 101 level tech tips. I have found that there are some tasks that sysAdmins skip over or never use, they are usually basic skills that for some reason at the time went in one ear and back out the other. So this is my attempt to lump those into some sort of format to be able to find them at later dates.

I know some of these are going to seem stupid to the Seasoned Admin but remember .. we were all N00bs once.

For this tech tip I wanted to point out that you can start several services using the ‘&&’ characters, for example

in file restart.cmd


net stop service1 && net start service1

That will stop and then start the service1. Later we will get fancy and add more to this but again, this is 101 stuff.

Bookmark the permalink.

Comments are closed.