'This script will Disable User Account Control

Dim WshShell, ObjShell, Message, M

Set WshShell = WScript.CreateObject("WScript.Shell")
If WScript.Arguments.length = 0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" & " uac","", "runas", 1
Else
Message = "This script will Disable User Account Control." & vbCr _
 & "After you run this script, you must Reboot for this to take effect." & vbCr & vbCr _
 & "Adding information can unintentionally change or delete values and cause components to stop working correctly." _
 & "  If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?"

M = MsgBox(Message, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks")
If M = 6 Then 

WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA", 0, "REG_DWORD"

Message = "UAC is now DISABLED!" & vbCr & vbCr _
 & "You must Reboot for this change to take effect." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com"
MsgBox Message, 48, "Done!"
End If
End If
