flintstone has asked for the
wisdom of the Perl Monks concerning the following question:
I have been trying to discover a way of doing the following on Windows !. I need to be able to call the windows 'runas' command from a perl script to switch users. Ok that part is easy. Problem is with runas is it requires that the password be entered interactivly which is obviously a pain if you are trying to run it as part of a script. I have toyed with using 'except and react'. However, have not been able to find modules\versions that will run on windows or had any luck using ppm to download. Thought about trying to download the source and compile the required modules but not sure about which compiler to use on windows or if there is a possibility this would work anyway
Does anyone have any ideas on the best way to proceed or a suggestion on how I can respond to the password prompt via a script on windows (2000,XP,2003,2008).