rpcclient

Luke Kenneth Casson Leighton lkcl at samba.org
Tue Nov 2 18:36:09 GMT 1999


oops :)  i put that in for a silly reason, i'll take it out.

this is what i get:

regenum HKLM\system\currentcontrolset\control\"session manager"\environment
Key Name:	HKLM\system\currentcontrolset\control\session manager\environment
Key Values
----------
	ComSpec:	[2]:
[000] 25 00 53 00 79 00 73 00  74 00 65 00 6D 00 52 00  %.S.y.s. t.e.m.R.
[010] 6F 00 6F 00 74 00 25 00  5C 00 73 00 79 00 73 00  o.o.t.%. \.s.y.s.
[020] 74 00 65 00 6D 00 33 00  32 00 5C 00 63 00 6D 00  t.e.m.3. 2.\.c.m.
[030] 64 00 2E 00 65 00 78 00  65 00 00 00              d...e.x. e...
	Os2LibPath:	[2]:
[000] 25 00 53 00 79 00 73 00  74 00 65 00 6D 00 52 00  %.S.y.s. t.e.m.R.
[010] 6F 00 6F 00 74 00 25 00  5C 00 73 00 79 00 73 00  o.o.t.%. \.s.y.s.
[020] 74 00 65 00 6D 00 33 00  32 00 5C 00 6F 00 73 00  t.e.m.3. 2.\.o.s.
[030] 32 00 5C 00 64 00 6C 00  6C 00 3B 00 00 00        2.\.d.l. l.;...
	Path:	[2]:
[000] 25 00 53 00 79 00 73 00  74 00 65 00 6D 00 52 00  %.S.y.s. t.e.m.R.
[010] 6F 00 6F 00 74 00 25 00  5C 00 73 00 79 00 73 00  o.o.t.%. \.s.y.s.
[020] 74 00 65 00 6D 00 33 00  32 00 3B 00 25 00 53 00  t.e.m.3. 2.;.%.S.
[030] 79 00 73 00 74 00 65 00  6D 00 52 00 6F 00 6F 00  y.s.t.e. m.R.o.o.
[040] 74 00 25 00 00 00                                 t.%... 
	windir:	[2]:
[000] 25 00 53 00 79 00 73 00  74 00 65 00 6D 00 52 00  %.S.y.s. t.e.m.R.
[010] 6F 00 6F 00 74 00 25 00  00 00                    o.o.t.%. ..
	OS:	string:	Windows_NT
	PROCESSOR_ARCHITECTURE:	string:	x86
	PROCESSOR_LEVEL:	string:	6
	PROCESSOR_IDENTIFIER:	string:	x86 Family 6 Model 5 Stepping 0, GenuineIntel
	PROCESSOR_REVISION:	string:	0500
	NUMBER_OF_PROCESSORS:	string:	1
smb: HKLM\system\currentcontrolset\control\session manager\environment> 

so, please do this:

rpcclient -S srv -Uusr%pass -d 100 -l log

then send me the output from the log.client file, ok?

love,

luke

p.s send me scripts, greg, i'll put them in examples/rpcclient!



On Tue, 2 Nov 1999, Greg Dickie wrote:

> 
> 
> 
> Hi,
> 
>   We are trying to set up an inventory and monitoring system using rpcclient.
> This gets easier all the time since the tool is evolving but in the latest
> (HEAD) version we have run into a couple of minor problems:
> 
> 1st- when doing something like 
> regenum HKLM\SYSTEM\CurrentControlSet\Control\"Session Manager"\Environment\
> 
> I end up with this:
>        ComSpec:        [2]:
> [000] 25 00 53 00 79 00 73 00  74 00 65 00 6D 00 52 00  %.S.y.s. t.e.m.R.
> ....
> [REG_ENUM_VALUE: NT_STATUS_GROUP_EXISTS
>         LIB:    [2]:
> [000] 43 00 3A 00 5C 00 4F 00  44 00 49 00 5C 00 4F 00  C.:.\.O. D.I.\.O.
> ...
> 
> which is missing one of the keys where the NT_STATUS_GROUP_EXISTS is. Does
> anyone know what that error is? . The key does contain another registry key.
> 
> 2nd - when using regenum the prompt changes to the current location in the hive
> which is VERY cool for people, but no so cool for scripting. Since we now have
> all this command-line completion stuff could we also get a "set prompt"?
> 
> Thanks alot as always,
> Greg
> 
> 
> 
>     
> 

<a href="mailto:lkcl at samba.org"   > Luke Kenneth Casson Leighton    </a>
<a href="http://www.cb1.com/~lkcl"> Samba and Network Development   </a>
<a href="http://samba.org"        > Samba Web site                  </a>
<a href="http://www.iss.net"      > Internet Security Systems, Inc. </a>



More information about the samba-ntdom mailing list