Sign in to follow this  
Followers 0
memnon

Dont get Result from Registry Key

4 posts in this topic

Hello,

i want to read a String out of the Registry ...

Local $sVar = RegRead("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateResultsInstall", "LastSuccessTime")
MsgBox(0,0, "last updated:", $sVar)

it would show the last Windows Update Date - but i dont get anything displayed ... the Path and the Key is 100% correct - what i am doing wrong with it ?


das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum?

Share this post


Link to post
Share on other sites



Local $sVar = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install", "LastSuccessTime")
MsgBox(0,0, "last updated:" & $sVar)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Try with HKEY_LOCAL_MACHINE64 if you are using a x64 OS :

Local $sVar = RegRead("HKEY_LOCAL_MACHINE64\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install", "LastSuccessTime")
MsgBox(0,0, "last updated:" & $sVar)
Edited by jguinch

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

aehm, nope - still no result

$sVar stays without value, if i use any other key and keyname it works

 

edit after your edit^^ ... yes was the "64" thx alot

Edited by memnon

das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0