Jump to content

Automate connecting to a remote computer in regedit


Recommended Posts

Guest airwot4
Posted

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

  • Replies 7
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: Automate connecting to a remote computer in regedit

 

 

"airwot4" <neale.dj@gmail.com> wrote in message

news:aa114f55-1dde-42cb-8be7-98293ac04a56@8g2000hse.googlegroups.com...

>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

Guest airwot4
Posted

Re: Automate connecting to a remote computer in regedit

 

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.

Guest Pegasus \(MVP\)
Posted

Re: Automate connecting to a remote computer in regedit

 

 

"airwot4" <neale.dj@gmail.com> wrote in message

news:1ce76c11-a991-4d3e-a209-02dbf0c1c15b@y38g2000hsy.googlegroups.com...

>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.

Guest Bob I
Posted

Re: Automate connecting to a remote computer in regedit

 

 

 

Pegasus (MVP) wrote:

> "Bob I" <birelan@yahoo.com> wrote in message

> news:ubOp4yYxIHA.5652@TK2MSFTNGP06.phx.gbl...

>

>>Looks to me like the /L switch would be what you are after.

>>

>>http://www.google.com/search?hl=en&q=regedit+command+line+parameters&btnG=Google+Search

>>

>

>

> 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

Guest Pegasus \(MVP\)
Posted

Re: Automate connecting to a remote computer in regedit

 

 

"Bob I" <birelan@yahoo.com> wrote in message

news:%23xQl7VbxIHA.2184@TK2MSFTNGP02.phx.gbl...

>

>

> Pegasus (MVP) wrote:

>> "Bob I" <birelan@yahoo.com> wrote in message

>> news:ubOp4yYxIHA.5652@TK2MSFTNGP06.phx.gbl...

>>

>>>Looks to me like the /L switch would be what you are after.

>>>

>>>http://www.google.com/search?hl=en&q=regedit+command+line+parameters&btnG=Google+Search

>>>

>>

>>

>> 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

 

Nope, does not work, note even after fixing up the

incorrect slashes. I always test my commands before

posting them in a reply.


×
×
  • Create New...