This adds an extra parameter to most of the post/windows/registry methods called 'view' that specifies if a registry key should be accessed as a native process, 32-bit or 64-bit. Support is added to both the Meterpreter and command-line backends. For the command backend, a lot of boilerplate is removed from each method in favor of a few shared commands. There is an error hash that never gets used, so I removed it as well. This passes the post/test/registry module with meterpreter, but fails the command line backend. However, it fails in the same way without these changes (tested on Windows 8), so I suspect that the command line session was already not working well, at least with newer versions of Windows. I might look into figuring out how to fix that, but it looks pretty fragile to me, parsing for english phrases in the output.
Metasploit

The Metasploit Framework is released under a BSD-style license. See COPYING for more details.
The latest version of this software is available from https://metasploit.com/
Bug tracking and development information can be found at: https://github.com/rapid7/metasploit-framework
API documentation for writing modules can be found at: https://rapid7.github.io/metasploit-framework/api
Questions and suggestions can be sent to: https://lists.sourceforge.net/lists/listinfo/metasploit-hackers
Installing
Generally, you should use the free installer which contains all dependencies and will get you up and running with a few clicks. See the Dev Environment Setup if you'd like to deal with dependencies on your own.
Using Metasploit
Metasploit can do all sorts of things. The first thing you'll want to do
is start msfconsole, but after that, you'll probably be best served by
reading Metasploit Unleashed, the great community
resources, or the wiki.
Contributing
See the Dev Environment Setup guide on GitHub which will walk you through the whole process starting from installing all the dependencies, to cloning the repository, and finally to submitting a pull request. For slightly more info, see Contributing.