Re: Problem about "StdRegProv" method

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Chung-Wei Foong [MSFT] (chungwf_at_online.microsoft.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 10:48:05 -0800

You may want to check if the user have the correct permission set on the
specific registry key on the remote machine.

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"lshe" <lshe@n-able.com> wrote in message
news:%239NGqZ8%23DHA.3536@tk2msftngp13.phx.gbl...
> Hi,
>
> I got some problem to use the method "StdRegProv". Hope somebody can help
> me.
>
> I just created a service application in Windows 2000.  This service
> application  queries one registry key in remote computer.
> I use the "EnumKey" method of "StdRegProv" to do this job . You know the
> service is running under the "LocalSystem" acoount so
> I uses another account name and password to connect to this remote
computer
> and this account is already registerd in the remote computer as
> an administrator  and all these computers are in the same domain.
>
>  My Problem is:
> There is not any problem for the establishment of connection and
> "ExecMethod" (No Error code returned).  But when I read the data from the
> "OutputParam object", I found that  "ReturnValue" property value  is "5"
> instead of  "0", so the data is actually NULL. Anybody can tell me what
went
> wrong ?
> When I query othe information rather than Registry in the remote computer,
I
> never got any problem.
>
> Li She .
> Thanks.
>
>


Relevant Pages

  • Network share as a Publishing Point source
    ... what account is your service currently running under? ... >I tried setting up a remote share for WM9 Services, ... >to the drive letter "Z:" at the WM9 Server. ... At the remote computer I have allowed ...
    (microsoft.public.windowsmedia.server)
  • RE: Remote perf counter access
    ... - The remote computer must have "Remote Registry Service" running ... - The account with which you are running must have administrator access to ... Subject: Remote perf counter access ...
    (Focus-Microsoft)
  • Re: create user accounts with wmi.
    ... One is logon with an account that is admin on the remote ... perhaps a member of Domain Admins in the remote domain. ... ' Specify credentials on the remote computer. ... Admins, and the remote computer has Domain Admins a member of the local ...
    (microsoft.public.scripting.vbscript)
  • Re: Windows XP Edit Registry Key Permissions from Command Line
    ... > registry key permissions from a command line. ... Do you know of such a tool that comes with Windows ... A couple of other utilities that can edit registry key ... Local or remote directories ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Windows XP Edit Registry Key Permissions from Command Line
    ... >> installed with Windows XP Professional that will edit ... >> registry key permissions from a command line. ... >Local or remote directories ...
    (microsoft.public.windowsxp.security_admin)