MSDOS Command to Start Windows Service

bsudhir6

New member
Local time
8:14 AM
Messages
10
Hello,

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 (https://technet.microsoft.com/en-in/library/cc736564(v=ws.10).aspx) 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)

Thanks,
Sudhir
 

Attachments

  • screenshot_Thu_Dec_03_08.10.34.jpg
    screenshot_Thu_Dec_03_08.10.34.jpg
    8.8 KB · Views: 0

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate 32bit
CPU
AMD Athlon
Motherboard
Asus
Memory
1 GB DDR400
Hard Drives
Seagate ATA 250 GB
Browser
Chrome

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top