Keys of keys VS keys of key

What is the difference between:

keys of keys "HKLM\SOFTWARE\Microsoft\" of (x32 registry ; native registry)

And

keys of key "HKLM\SOFTWARE\Microsoft\" of (x32 registry ; native registry)

The second relevance code returns an error, but it retrieves a part subset of the first:

E: Singular expression refers to non-unique object.

The error “Singular expression refers to non-unique object” means that your query was asking for one item (singular expression), but got back multiple results (non-unique object), which is true, since there are multiple keys under “HKLM\SOFTWARE\Microsoft”.

I would expect as result maybe just the first key, but it returns few of them.

This just curiosity…

The second expression probably returns the values for the “first” registry, the x32 registry in your case. Does that match your output?

As soon as a “singular” (in your case the “key”) gets a multiple answer it will complain with that error and that is happening when the “second” input is processed (the native registry)

Yes, now I understand much better what they are reading.

Thanks.