Automate connecting to a remote computer in regedit

  • Thread starter Thread starter airwot4
  • Start date Start date
A

airwot4

I have a small toolbox application which is designed to automate
common tasks. I would like to add a function that will send a host
name string to regedit in order to open up the remote registry.

Is there anyway to do this? I've been unable to find a command-line
switch to accept host names and I would prefer not to resort to
clunky
keystrokes.


The app is written in VB.NET 2.0.


Thanks
 
airwot4 said:
I have a small toolbox application which is designed to automate
common tasks. I would like to add a function that will send a host
name string to regedit in order to open up the remote registry.

Is there anyway to do this? I've been unable to find a command-line
switch to accept host names and I would prefer not to resort to
clunky
keystrokes.


The app is written in VB.NET 2.0.


Thanks

I don't think that you can do this with regedit.exe and you
probably shouldn't, seeing that your application is written
in VB.Net. Using WMI, you can do anything to the registry
of any PC - see this example:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov06/hey1116.mspx
 
I don't want to carry out any functions from my app, simply open
regedit with the remote machine's hive displayed instead of my local
machine.
 
airwot4 said:
I don't want to carry out any functions from my app, simply open
regedit with the remote machine's hive displayed instead of my local
machine.

If so then you could write a macro that issues the appropriate
keystrokes for you.
 
Pegasus said:
Can you get this to work? If so, please supply the
command line you use.

Can't mess with it here. But I would try it with
/L://servername/windows/system.dat

or

/L://servername/c$/windows/system.dat
 
Bob I said:
Can't mess with it here. But I would try it with
/L://servername/windows/system.dat

or

/L://servername/c$/windows/system.dat

Nope, does not work, note even after fixing up the
incorrect slashes. I always test my commands before
posting them in a reply.
 
Back
Top