So I’ve been able to implement the following:
require ‘win32/registry’
regkey=Win32::Registry::HKEY_LOCAL_MACHINE.open(‘SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce’)
enumerate:
regkey.each_value do |subkey,type,data|
puts “#{subkey}\t#{data}” #(Default) subkey is an empty string
end
This works fine with me - I am able to read the values and thats all I
wanted to do with that code above. The task I have now is to remote
desktop to another computer (which I have been successful in doing) and
modify its registry values using ruby. This is where I seem to be stuck.
Does anyone have an idea of how to implement this concept in ruby? I’ve
seen c++ and java implementations, but not ruby (which I need)