Re: How to programatically disable/Enable the UAC on Visita



There was actually a presentation at Tech Ed on this exact sort of stuff.
I'm not sure if you can dig that up somewhere or if they've already covered
the same info on MSDN. Sorry I can't answer myself, but I didn't see the
whole thing and didn't take any notes.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Gordon" <Gordon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9FB08329-9BCF-4357-8E65-AADC32D70135@xxxxxxxxxxxxxxxx
Thanks lelteto,
I kind understand that we cannot do #2.

My new questions would be that:

If my program needs to do something require the Admin rights like
manipulate
the registry, How could I get the warning dialog to come up and do the
things. But when I run the regedit, it will gives the warning dialog.

Now any of my applications that need Admin rights for some operation will
fail without trigger the warning dialog.

How could we do that? Does anyone have the experience on Vista?

Thanks in advance!
--
Just Keep Going... You will succeed


"lelteto" wrote:

I am pretty sure you cannot do 2. That would make UAC useless (as rogue
programs could simply turn it off). Microsoft's security experts are
better
than that :)

Laszlo Elteto
SafeNet, Inc.

"Gordon" wrote:

Hi All,
Don't you hate this UAC stuff?
I have a program to add exceptions to the Firewall, I run this program
under
Addmin account. But it does not work, so I change the exe to be run as
admin,
then I can use this program to add Port Exceptions to the Firewall and
still
cannot add Application Exceptions to the firewall. When uncheck the Use
User
Account Control and run the application again, ecerything is working
and I
can add both Port and Application to the windows Firewall.

My questions are:
1. How can I make the application run "normally" without disable the
UAC
under my Admin account? Or What can I do to make the Application run as
Adminstrator instead of Users account if I am login with Admin account?
2. If not possible for solution 1, Can I programatically switch the UAC
on/off programatically without re-start the machine.

Thanks
Gordon
--
Just Keep Going... You will succeed


.



Relevant Pages

  • Re: Lost admin access to ADAM
    ... Firewall may be doing harm here. ... SDE, DS Admin eXperience ... This posting is provided "AS IS" with no warranties, and confers no rights. ... User account: NETWORK SERVICE ...
    (microsoft.public.windows.server.active_directory)
  • RE: User accounts behave very differently
    ... When using it on my account for the first time, my Norton internet security ... Firewall popped up and asked if I wawnted the aplication to have internet ... I found out that although it was a admin account, ...
    (microsoft.public.windowsxp.general)
  • Re: Outpost firewall prob when shutting down PC (XP SP2)
    ... anything that protects a user better than the Windows Firewall. ... admin, not to mention all the small businesses that are also running ... use an Administrator account, etc... ...
    (comp.security.firewalls)
  • Re: How to programatically disable/Enable the UAC on Visita
    ... Now any of my applications that need Admin rights for some operation will ... Don't you hate this UAC stuff? ... I have a program to add exceptions to the Firewall, ... Account Control and run the application again, ...
    (microsoft.public.platformsdk.security)
  • Re: Is Firewall essential in this case?
    ... EXCEPTIONS to ANY FIREWALL - that's why those are all crappy ... Yep, I agree, and Windows Firewall is the worst piece of crap, as it has ... Running as admin is what's crappy. ...
    (alt.computer.security)