|go ahead... be a heretic|
perl based windows "login" scriptby seven.reeds (Initiate)
|on Dec 19, 2012 at 20:10 UTC||Need Help??|
seven.reeds has asked for the
wisdom of the Perl Monks concerning the following question:
Windows has script hooks for user login/logout and system start/stop these are available through the gpedit tool. I have a perl script that I would like to run via these hooks. My windows admin is telling me some troubling things though.
My goals include:
On a Linux box I might put the script in /usr/local/sbin and let a sudo'ers file deal with the execution. Is there a Windows equiv to sudo?
My Windows admin is telling me that Windows will not let him run perl scripts as Administrator -- a la, right click the script name and select "Run as Administrator". He says the only way for this script to work is to have it in a place where ALL users can "see" it and execute it.
Since the script uses paths and passwords for things that regular users should not know I am very concerned.
Is there a way to protect the script while allowing it to be run by the masses?