You really should avoid modifying the Registry directly for these reason. If
Windows changes the location of this information (think in terms of how IIS
moved their configuration from the Registry to their metabase) your script
will break.

You should use the proper Win32 APIs (Win32::Service, Win32::Lanman,
Win32::Daemon, etc).

-----Original Message-----
From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 02, 2002 7:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Disabling a service


You can modify the registry directly; e.g., with this script:

 
<http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/unattended/unattended/instal
l/bin/startup-type.pl?rev=HEAD&content-type=text/vnd.viewcvs-markup>

You invoke it like this:

    startup-type.pl manual W3SVC

It does require that you use the "real name" of the service, not the
"display name".  I will probably fix this one of these days.  Maybe today.

 - Pat
_______________________________________________
Perl-Win32-Admin mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to