Page 1 of 1 1
Topic Options
#113063 - 2004-02-02 02:47 PM How to call regedit and connect 2 network registry
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
Need help with this one.

Using kix and kixforms, I want to connect to a remote client registry and computer management console.
In regedit and management cosole there is a option "connect network registry" and "connect to another computer"

Having a remote client IP, want the script to run regedit and management console towards the remote client.

How 2 do ???

/CY
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113064 - 2004-02-02 02:59 PM Re: How to call regedit and connect 2 network registry
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
now, why you want regedit or MMC?
you can work on the reg with kix, so don't get why you need access to normal regedit.
_________________________
!

download KiXnet

Top
#113065 - 2004-02-02 04:08 PM Re: How to call regedit and connect 2 network registry
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
Dont get me wrong, Im trying to setup a collection of remote admin tools using kix interface,. A part of needed fuction is to make kix open the regedit and MMC conected to pre-defined remote client. This to remotly help users with changing of registry values, services, check the event viewer on target machine etc. This KIX GUI based collection of admin tools will be adapt for spesific office environment.

Simply one button for regedit and one for MMC in KIX GUI to opens connected to target IP.

Need an sample how to call regedit and MMC and make it connect to a remote client insted of local.

Thanx
Still /CY
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113066 - 2004-02-02 05:55 PM Re: How to call regedit and connect 2 network registry
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Pretty much the only option is to e.g. open REGEDIT and then use SENDKEYS to send keycodes to open the remote registry.
_________________________
There are two types of vessels, submarines and targets.

Top
#113067 - 2004-02-02 06:16 PM Re: How to call regedit and connect 2 network registry
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
For compmgmt.msc try using the /computer=RemoteComputerName
_________________________
Eric

Top
#113068 - 2004-02-02 06:17 PM Re: How to call regedit and connect 2 network registry
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
I dont get it

$IP = '\\192.168.0.112'
Run 'regedit' + $IP

Can Sendkeys be $IP ???

_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113069 - 2004-02-02 06:22 PM Re: How to call regedit and connect 2 network registry
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
regedit $IP is not a valid command. regedit will think you are trying to import a registry file named $IP.

Jens is suggesting just doing a Run 'regedit.exe' to open regedit and then use Sendkeys to open the File/connect network registry command and enter the computer name.


Edited by CitrixMan (2004-02-02 06:25 PM)

Top
#113070 - 2004-02-02 06:23 PM Re: How to call regedit and connect 2 network registry
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
In CMD env? its not working
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113071 - 2004-02-02 06:26 PM Re: How to call regedit and connect 2 network registry
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
Right CitrixMan, it will not work...

Any ide how it should be writen then...???
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113072 - 2004-02-02 06:29 PM Re: How to call regedit and connect 2 network registry
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
SENDKEYS() is a KiXtart function. See the KiXtart Manual for details on how to use it.
_________________________
There are two types of vessels, submarines and targets.

Top
#113073 - 2004-02-02 06:29 PM Re: How to call regedit and connect 2 network registry
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Try something like this...

Code:
$IP = '\\192.168.0.112'
Run 'regedit.exe'
sleep 5
$null = sendkeys("~F")
$null = sendkeys("C")
$null = sendkeys($IP)
$null = sendkeys("{ENTER}")


Top
#113074 - 2004-02-02 07:09 PM Re: How to call regedit and connect 2 network registry
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
Cannot get the key combination to work

Run( "regedit.exe" )
Sleep 1
SetFocus( "Registry Editor" )
$ReturnCode = SendKeys("{TAB}{Alt}{DOWN}c")
Sleep 1
SetFocus( "Select Computer" )
Sleep 1
$ReturnCode = SendKeys("192.168.0.112{ENTER}")

Any ideas ?

_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113075 - 2004-02-02 07:15 PM Re: How to call regedit and connect 2 network registry
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
didnt see your topic...
Wow!!! it works CitrixMan
Tnx a lot CM, now im happy
/CY
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113076 - 2004-02-02 08:09 PM Re: How to call regedit and connect 2 network registry
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
silly...
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 978 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.066 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org