How to elevate Perl process using UAC
Suppose I have a script that needs to read information from places that normal user is not permitted to read (e.g. other users' folders). Currently all I can do is complain about not being run as a "superuser" and quit, but I would rather like the script to ask for elevation itself. jm666 According to MSDN and PerlMonks , you can try: Win32::FileOp::ShellExecute( runas => 'yourprogram.exe' ) or Win32::FileOp::ShellExecute( runasuser => 'yourprogram.exe' ) These should (not tested) ask you for elevation when it is needed. (Works on Windows 7 only). Related: Requesting Administrator privileges