Schuliebug
(Hey THIS is FUN)
2005-06-08 01:20 PM
Start regedit to remote client

Hi,

Does anybody know of a way to start regedit from a command line and automatically connect to a remote client (connect network registry)? I want to use that functionality in our Helpdesk application, something like:
Code:
Shell '%comspec% /c regedit "\\1.2.3.4"'


If i shoud use other coding methods, no problem.


LonkeroAdministrator
(KiX Master Guru)
2005-06-08 02:21 PM
Re: Start regedit to remote client

no, regedit has zero amount of automation available.
you can still use other applications or code your own, but regedit, no.


ShawnAdministrator
(KiX Supporter)
2005-06-08 02:42 PM
Re: Start regedit to remote client

lol, this stretches the definition of automation a little bit - works on English machines:

Code:

break on

$hostname = "ABC123"

run "regedit"

sleep 0.5

sendkeys("~FC"+$HOSTNAME+"{ENTER}")

exit 0



-Shawn


ShawnAdministrator
(KiX Supporter)
2005-06-08 02:51 PM
Re: Start regedit to remote client

Given these command line switches:

Regedit Command Line Switches

Was thinking maybe the /L: switch could be pointed to the remote folder (containing the system.dat,etc) of the remote machine, a quick test yielded ziltch for me though.

-Shawn


Radimus
(KiX Supporter)
2005-06-08 05:18 PM
Re: Start regedit to remote client

I've tried for a while as well for the inquistor/SIM tool as well, no luck

Les
(KiX Master)
2005-06-08 05:35 PM
Re: Start regedit to remote client

There may be some sort of automation available cuz the freeware tool RegMon is able to open RegEdit and navigate to a specific key or value unless of course they do some sort of SendKeys.

Night Hawk
(Fresh Scripter)
2005-06-08 09:11 PM
Re: Start regedit to remote client

What are you tring to do on the remote machine?

Schuliebug
(Hey THIS is FUN)
2005-06-14 08:18 AM
Re: Start regedit to remote client

Thankz guys, i was also thinking of using sendkeys instead of keep staring at some sort of command line switch

I was looking for this to be able to edit/view remote registries whithout connecting by yourself. I have written some sort of inventory app: one part at the client collects the machine, user & application data and logs them in a SQL DB, another part queries the DB and presents the data. The app also contains some actions, like remote control, explore system drive, remote eventvwr or restage WS. Now i can add remote registry