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



I was at TechEd and also downloaded all the available security related
presentations. Although there was a lot of talk on UAC there was nothing
which would answer this particular question. Unfortunately I haven't had time
to play with Vista yet. (But I know we also run into the same problem - ie.
cannot set firewall rules in install - so I am interested in the answer.)

Laszlo Elteto
SafeNet, Inc.

"Joe Kaplan (MVP - ADSI)" wrote:

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: Validation of XP
    ... except to mention that UAC caused me to reboot to WinXP ... there shouldn't be any reason you need to run as admin to play a game. ... Windows doesn't do this or that natively, and one of those things is ... As for the default admin account, ...
    (microsoft.public.windowsxp.general)
  • 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: I turned off UAC
    ... I would rather have it enabled so that I am not on the Internet with full admin rights, like the previous versions of the NT based O/Swhich are open by default O/Sand wide-open to attack/compromise by default. ... The out of the box admin account on Vista that is given to a user or any subsequent admin account that is created on Vista with UAC enabled is NOT a full-rights-admin account. ... It's only a Standard user account, which must be escalated to a use the full-adminrights token to do anything requiring admin-full-rights as an administrator. ...
    (microsoft.public.windows.vista.general)
  • Re: How to programatically disable/Enable the UAC on Visita
    ... Now any of my applications that need Admin rights for some operation will ... I have a program to add exceptions to the Firewall, ... Account Control and run the application again, ...
    (microsoft.public.platformsdk.security)
  • Re: writing to registry in vista from guest account
    ... After the installation I create new user/guest account and runs the ... Is there a way to write to a HKLM key which was created in admin ... are not user-admin accounts with UAC ... and how Virtualization works on Vista with UAC. ...
    (microsoft.public.dotnet.languages.csharp)