Code:
Break on
$Index = 0
While @Error=0
$KeyName = ENUMKEY("HKEY_CURRENT_USER\Console\", $Index)
If @ERROR = 0
? "Name found: $KeyName"
$Index = $Index + 1
Endif
Loop

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.