Page 1 of 1 1
Topic Options
#167007 - 2006-09-06 10:34 PM Change remote registry with specific username
Duvander Offline
Fresh Scripter

Registered: 2005-11-07
Posts: 27
Does anyone knows how to connect to a remote computer and use a specific username+password to change the registry (without mapping a share)? I want to del a registry key.

If I use the same username on my computer and my username is admin om the remote computer I delete the key (test) with:
DELTREE("\\remotecomputername\hklm\software\test")

But if I'm not admin on the remote computer i have to do this with any "connect as"... how?
If figured out one way to do it but i hope to find a simplier way:
USE Z: "\\remotecomputername\c$" /user:administrator /password:password
DELTREE("\\remotecomputername\hklm\software\test")
USE Z: /DELETE


Anyone?

Top
#167008 - 2006-09-06 10:37 PM Re: Change remote registry with specific username
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
actually the use method is really simple one.
you be probably best of with use line like this though:
Code:

use "\\remotepc\ipc$" /user:admin /password:something


Top
#167009 - 2006-09-06 11:46 PM Re: Change remote registry with specific username
Duvander Offline
Fresh Scripter

Registered: 2005-11-07
Posts: 27
Thanks, that was what I was looking for
Top
#167010 - 2006-09-09 06:27 AM Re: Change remote registry with specific username
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
If IPC$ share is still enabled. Otherwise, use e.g. fnWMIAuthentication() - Authenticates against a local or remote WMI provider and delete the key, if necessary via WMI.
_________________________
There are two types of vessels, submarines and targets.

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 1114 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.052 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