Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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?

Comment on Perl And Seven UAC click
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 InfiniteSilence (Curate) on Apr 12, 2011 at 18:14 UTC
    Maybe this will work?

    Celebrate Intellectual Diversity

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://898998]
Approved by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-08-28 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (262 votes), past polls