Avatar of kmonarch
kmonarch
 asked on

Perl script to act on windows services

I am trying to write a perl script to act on windows services similar to the dos commands:
sc stop <serviceName>
sc start <serviceName>
sc query <serviceName>

Any ideas?
Perl

Avatar of undefined
Last Comment
kmonarch

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Kim Ryan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Suhas .

Also you can use the module Win32::Service

http://search.cpan.org/~jdb/Win32-Service-0.06/Service.pm

kmonarch

ASKER
I am only able to use libraries that come with the standard activestate perl 5.8 installation. Is the win32::service lib included in that?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23