These registry function I made them years ago, but being very busy i left all in the middle, however not need to use the RegCreateKey but just the RegOpenKey , http://support.microsoft.com/kb/128731 that should be in autoit   #RequireAdmin #Region ;**** Global vars for Registry Function **** If Not IsDeclared("arDllCall") Then Global Static $arDllCall Global Const $hKernel32DLL = DllOpen("Kernel32.dll") Global Const $hAdvapi32Dll = DllOpen("AdvApi32.dll") ;;Global Static $iTokenPrivilegesS