We help IT Professionals succeed at work.

Perl script to act on windows services

kmonarch
kmonarch asked
on
352 Views
Last Modified: 2008-07-16
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?
Comment
Watch Question

IT Consultant
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Suhas .Senior QA Manager
CERTIFIED EXPERT

Commented:
Also you can use the module Win32::Service

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

Author

Commented:
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?
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.