Re: How to programatically disable/Enable the UAC on Visita
- From: "Joe Kaplan \(MVP - ADSI\)" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 7 Jul 2006 21:45:23 -0500
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
.
- Follow-Ups:
- Prev by Date: Re: RSA source code?
- Next by Date: Re: using Microsoft.Win32.Security
- Previous by thread: RSA source code?
- Next by thread: Re: How to programatically disable/Enable the UAC on Visita
- Index(es):
Relevant Pages
|