>I know that Perl can programmatically manipulate Win32 service
>(start,stop,resume,etc.) but is the a way to change the user/password
>the service(s) run under? Thanks.

if(!Win32::Lanman::ChangeServiceConfig("\\\\testserver", 
                                       '',
                                      { name => 'myservice'
                                       display => 'a new display name',
                                       account => 'testdomain\\testuser',
                                       password => 'testpass'}))
 {
        print "Sorry, something went wrong; error: ";
        # get the error code
        print Win32::Lanman::GetLastError();
        exit 1;

}



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

Reply via email to