jvierra, I understand this but my question remains. Because this script is going to be packaged as a 32Bit executable, how do I successfully extract registry keys on any x64 system the tool may be run on?jvierra wrote:You must specify which hive you are querying.
The key is clearly a main hive key. If you run it as a 64 bit script on a 64 bit machine it will work correctly. The same on a 32 bit machine.
Forms Newbie
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Forms Newbie
Last edited by phurious on Fri Jun 03, 2016 8:36 am, edited 1 time in total.
Re: Forms Newbie
Never mind. I found the /reg:64 switch which I previously was not aware existed. Thanks to jvierra and monoeagle's for their assistance!phurious wrote:jvierra, I understand this but my question remains. Because this script is going to be packaged as a 32Bit executable, how do I successfully extract registry keys on any x64 system the tool may be run on?jvierra wrote:You must specify which hive you are querying.
The key is clearly a main hive key. If you run it as a 64 bit script on a 64 bit machine it will work correctly. The same on a 32 bit machine.
Re: Forms Newbie
jvierra, I had added the below code:jvierra wrote:Her is how to detect that:
if([environment]::Is64BitOperatingSystem){ <#add /reg:64 #> }
- If([environment]::Is64BitOperatingSystem){$argument += "/reg:64"}
- <#add /reg:64 #>
Last edited by phurious on Fri Jun 03, 2016 9:16 am, edited 1 time in total.
Re: Forms Newbie
you're welcomephurious wrote:Thanks to jvierra and monoeagle's for their assistance!