WMI may be a bit much to do
this but I agree...don't even try doing this in the registry!!
You could try using Win32::Lanman or
Win32::Daemon. They both have functions to do exactly this.
From: [EMAIL PROTECTED] on behalf of Patrick J. LoPresti
Sent: Thu 7/24/2003 8:28 PM
To: John Serink
Cc: [EMAIL PROTECTED]
Subject: Re: stop service, reschedule start after reboot
"John Serink" <[EMAIL PROTECTED]>
writes:
> Go directly to the registry and change the service start
parameter
> to auto start.
It is cleaner to use WMI than to hack
the registry directly. See
<http://unattended.sourceforge.net/apps.html#startup-type>
for a Perl
script which does this.
Run it as "startup-type.pl
automatic MyService" to set the startup
type of MyService to
automatic.
-
Pat
_______________________________________________
Perl-Win32-Admin
mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
