Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to disable UAC?

Posted on 2010-01-05
16
Medium Priority
?
1,584 Views
Last Modified: 2012-06-27
How to disable UAC in Windows Vista and Windows 7?
0
Comment
Question by:Oppital
  • 6
  • 4
  • 2
  • +2
15 Comments
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 668 total points
ID: 26187522
0
 
LVL 8

Assisted Solution

by:Jon500
Jon500 earned 668 total points
ID: 26187529
Hi,

You cannot programmatically turn off UAC, for this would defeat the purpose of it. However, you can do so manually with ease:

For Vista:
Open up Control Panel, and type in UAC into the search box. Youll see a link for Turn User Account Control (UAC) on or off:

On the next screen you should uncheck the box for Use User Account Control (UAC), and then click on the OK button.

Youll need to reboot your computer before the changes take effect, but you should be all done with annoying prompts.


Regards,
Jon500
0
 

Author Comment

by:Oppital
ID: 26187814
How to disable UAC in Windows Vista and Windows 7 Using VB?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 8

Expert Comment

by:Jon500
ID: 26187839
As I mentioned, you *cannot* disable UAC using VB. UAC is designed to protect the end-user's machine. If you were able to write a program to turn it off programmatically then this would be tantamount to turning off a user's anti-virus monitoring tools. It's no different also from a web site not being able to install ActiveX controls without the user's express permission.

It begs the question why you would want to do this anyway...  To turn it off would be compromising the integrity/security of the operating system...

Jon500
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 26187851
put this in a .bat

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
0
 
LVL 2

Expert Comment

by:ylvall
ID: 26188838
The solution is to elevate your .vb.
Here is a solved topic about this:
http://www.vbforums.com/showthread.php?t=459643

Basically, windows will ask you if you want to run the process. You accept and the program runs without any problems.
0
 
LVL 8

Expert Comment

by:Jon500
ID: 26191673
Running with elevated privileges is not the same thing as turning off UAC.

Also, the irony of dstewartjr's idea is that it would, as far as I know, trigger a UAC alert to the end user. I assume that the author of this question wants to disable UAC "silently" without the user's knowledge or express permission...

Author: What say you?

Jon500
0
 

Author Comment

by:Oppital
ID: 26193677
How to disable UAC in Windows Vista and Windows 7 Using VB?

(Is possible? Yes is possible! a friend has a program like this done in vb)
0
 
LVL 8

Expert Comment

by:Jon500
ID: 26193802
I have an idea: Ask your friend. ::)

0
 
LVL 2

Assisted Solution

by:ylvall
ylvall earned 664 total points
ID: 26193808
I don't know if you are aware of the purpose of UAC and how it works.
First of all, it is a security feature. In the moment you try to run a program elevated, your desktop is fully covered by a temporary one (so you can't reach this one programatically) asking you if you want to run it. The execution of your program does not begin until you allow it.
Second, in order to disable the UAC you have to pass UAC. An UAC alert is being displayed and asking for confirmation.

If you really managed to pass this, then congrats, i think you just hacked Windows 7 :)
0
 
LVL 8

Expert Comment

by:Jon500
ID: 26197340
I think it is unfair that you gave 0 points to me for all the answers I had provided to you. I even gave you steps on how to manually turn off UAC because your question was not worded clearly enough as to determine whether you were asking for a manual or programmatic (automated) solution.

Jon500
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 26214814
My comment  ID:26187522 was more than a sufficient answer.
0
 
LVL 8

Expert Comment

by:Jon500
ID: 26214839
I agree with @dstewartjr. Points should go to him first (good answers, first to respond), then possibly others. My opinion.

Thank you,
Jon500
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 26215564
Spread the wealth.....:^)
0
 

Expert Comment

by:modEEdah
ID: 26315440
I tend to agree with the experts on this one.  As such, I will re-open the question and begin the closing process including the following comments:

http:#a26187522
http:#a26187529
http:#a26193808

modEEdah
Experts Exchange Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question