Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: MSDOS Command to Start Windows Service

03 Dec 2015   #1

Windows 7 Ultimate 32bit
MSDOS Command to Start Windows Service


I'm looking to automate a application access which in turn requires a windows service to start. for this I want to put commands in a batch file and use it when I want to open the application.

For example - I have Cisco AnyConnect VPN client application which I use at home to do Work From Home. And that application needs a windows service configured during its installation. and I don't want that service running all the time even when I'm in office (where I don't use VPN) for this I made a plan to start the service only when I try to open this AnyConnect application and do this process in an MS-DOS batch file. for this I need an MSDOS command to start the windows service then start the application. In internet here ( I saw some commands but those guys didn't gave examples. Can any one in this group kindly let me know how to reach my requirement.

Service name is - Cisco AnyConnect Secure Mobility Agent (check screenshot under attachements)


Attached Thumbnails
MSDOS Command to Start Windows Service-screenshot_thu_dec_03_08.10.34.jpg  
My System SpecsSystem Spec
03 Dec 2015   #2

64-bit Windows 10 Pro

Hello Sudhir, :)

The examples OPTION TWO and OPTION THREE of the tutorial below to start services in the command prompt may be able to help you.

Services - Start or Disable
My System SpecsSystem Spec

 MSDOS Command to Start Windows Service

Thread Tools

Similar help and support threads
Thread Forum
If Then Start Stop Service from Command Line
Is there a away from the windows 7 command line I can check if a specific service is running and if it is stop it? If not specifically stop it is it possible to just check if its there?
What is a QBASC or MSDOS equivelent for Windows 7 64Bit?
I loved using Qbasic for Windows 7 in MS DOS, but sadly windows 7 64-bit doesn't support it. I know that there is the command line (cmd.exe), but it's not the same as qbasic. Is there any program I can use (besides a VMWare and OracleBox) that I can use to recreate the goodness that was qbasic?
General Discussion
HELP! - Unable to login to Windows 7 or get to COMMAND PROMPT at start
I have Windows 7 Professional edition (64-bit) installed on my machine. My computer was linked to a network earlier, where it was mandatory to enter user credentials (ctrl+alt+del) to login every time. When I got off the network, I tried deleting my user profile so I wouldn't have to login every...
General Discussion
The dependency service or group failed to start- Command Prompt
Hi everyone! :D I'm having a pretty big problem on my laptop- I can't connect to the internet and when I try to connect in the network and sharing centre it simply says 'The dependency service or group failed to start' and I am unable to connect to the internet (Using wi-fi). There's a lot...
General Discussion
Help! Command & Conquer 3 start up issue with Windows 7
Hey all, I just bought a new Dell with Windows 7. I recently installed Command & Conquer 3 Tiberium Wars but it would not run after it installed. It gave me a splash screen saying... "Please make sure you have DirectX 9.0 or higher installed. Also verify that your video card meets the...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:04.
Twitter Facebook Google+