Accessing Windows registry from samba wmic utility
andreykondakov at gmail.com
Thu Jul 26 03:37:07 MDT 2012
That was my original intention but it turned out that several network
segments (read domains) have pretty restrictive
settings in terms of network access availability. For example, remote
registry service is stopped or port 445 is firewalled.
In fact, wmic is the only mean to access WMI repository and read both
conventional Win32_ classes and registry.
On Wed, Jul 25, 2012 at 11:12 PM, Jelmer Vernooij <jelmer at samba.org> wrote:
> On Wed, Jul 25, 2012 at 09:00:17PM +0300, Andrey Kondakov wrote:
> > I am trying to add Windows registry support to wmic utility.
> > My code intends to access remote host and get some registry values or
> > enumerate keys.
> > Everything goes well until I try to fetch ReturnValue and actual query
> > from *out* object.
> > Namely, ReturnValue should be 0 if the data returns but I get 6 instead
> > that supposedly addresses some HANDLE problem.
> > My flow is similar to Create process query which works perfect. The code
> > goes below.
> > I wonder if somebody can give me a hint how to get it working. Even some
> > relevant suggestion may help.
> Is there a particular reason you're using the WMIC interface rather
> than just the plain winreg DCE/RPC interface, which is known to work
> and included in Samba?
More information about the samba-technical