Les,

You have to remove the trailing backspace in keyname.

Call of enumvalue should be:

code:

$ValueName = ENUMVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices", $Index)


Erik