Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Perl And Seven UAC click

by didier (Vicar)
on Apr 12, 2011 at 16:45 UTC ( #898998=perlquestion: print w/replies, xml ) Need Help??
didier has asked for the wisdom of the Perl Monks concerning the following question:

I would be interessed to know how people here deal with UAC feature under Win32.
When some scripts are dealing with administrative tasks, it could be unpraticable to wait and click on the button 'Run as Administrator'

I don't want to shut down the UAC, but perhaps there is a way to permanently run perl without any question under User Account Control?

How do you deal with that?

Replies are listed 'Best First'.
Re: Perl And Seven UAC click
by Anonymous Monk on Apr 12, 2011 at 16:59 UTC

      I had read all that stuff before to post here. No real solution. Unless using Strawberry. But we use ActivePerl...

      Thanks anyway
        I had read all that stuff before to post here. No real solution. Unless using Strawberry. But we use ActivePerl...

        Any solution that applies to Strawberry will apply to ActivePerl, they both work exactly the same

Re: Perl And Seven UAC click
by Michael Roberts (Sexton) on Apr 25, 2014 at 13:46 UTC

    The thing is, UAC is just plain there in Vista and up; if you could disable it for a given executable then all malware would just disable it.

    So your options are: (1) disable UAC entirely, (2) pop up a window whenever you start a process that needs Administrator privileges, (3) open an elevated CMD shell and call things from there (or do the equivalent: any process started by an elevated process will itself be elevated), or (4) write and install a service that always runs as Administrator and can do Administrator things for you.

    To do #2, you can use Win32::RunAsAdmin, to do #3 you can use the Elevated Privileges Power Toy or the "elev" utility that Win32::RunAsAdmin installs, and for #4 you're on your own; I've never tried that. Can't be hard, though.

Re: Perl And Seven UAC click
by InfiniteSilence (Curate) on Apr 12, 2011 at 18:14 UTC
    Maybe this will work?

    Celebrate Intellectual Diversity

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://898998]
Approved by toolic
[Corion]: Oh yay. Thanks to The New Firefox, my irc client ChatZilla doesn't work anymore either... So I'll have to keep an old FF around just for that...
[Corion]: 100% of my FF add-ons are unsupported currently. Maybe upgrading Firefox wasn't such a good idea after all ;)
[Corion]: Also suffering is my 2-factor Github sign-in, as now, FF can't read my USB token anymore. "This was a horrible idea" is slowly dawning on me ;)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-11-20 20:14 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (293 votes). Check out past polls.