in reply to problem with spaces in path to registry key
Three questions:
1) What do you mean "it doesn't work"? You really need to be more specific.
2) What are you trying to do with the code?
3) What kind of object is $Registry. (I assume it is a win32::Registry object, but there is no way to tell by the code you have provided.
Answer these questions and I'm sure assistance will come your way.
davidj