I am one of the people who have had the same problem. It seems like, after logging on as the specified user, the script forgets who it is logged in as and tries to run as SYSTEM or whatever...
I was thinking that you might have to use Win32::AdminMisc::CreateProcessAsUser along with Win32::AdminMisc::LogonAsUser, but I didn't have the time nor the patience to try and figure out Win32::AdminMisc::CreateProcessAsUser. For my project, instead of creating a service like I was originally planning on, I used cygwin + cron to schedule the task and let cron run it in its heightened context instead. -Jason -----Original Message----- From: Ailes, Kevin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 11:47 AM To: Perl-win32-admin list (E-mail) Subject: Win32::Adminmisc I now realize that I need to set up the user account that the apache web service runs under to have some advanced capabilities or use the Win32::Adminmisc module to logon as a different user.(impersonate a user with advanced privelages) Unfortunately for me, I can not get the logonasuser method to function properly. I searched Dave Roth's web site for instructions. I found and set the privelages for the apache web user account according to the faq. No luck. I searched the usenet groups from google and found many references to the same problem I am having, however there were no answers other than to set the privelages on the user account.(which I have done.) I even restarted the web server service. I haven't tried restarting the machine.....yet. I searched the Adminmisc newsgroup hosted by Dave's site. There were many un-answered questions regarding the logonasuser method failing in a similar manner to what I have described. Am I missing something here? Kevin Ailes Administrator OTTO Engineering _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
