FYI, the posted code works for me whether run as administrator or not.
- tye
In reply to Re^2: Reading subkeys from registry (wfm) by tye in thread Reading subkeys from registry by gepebril69