Re: Problem about "StdRegProv" method
From: Chung-Wei Foong [MSFT] (chungwf_at_online.microsoft.com)
Date: 02/25/04
- Next message: Lester: "Re: starting, stopping, restarting services using WMI"
- Previous message: Chung-Wei Foong [MSFT]: "Re: starting, stopping, restarting services using WMI"
- In reply to: lshe: "Problem about "StdRegProv" method"
- Next in thread: Michael Harris \(MVP\): "Re: Problem about "StdRegProv" method"
- Reply: Michael Harris \(MVP\): "Re: Problem about "StdRegProv" method"
- Messages sorted by: [ date ] [ thread ]
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. > >
- Next message: Lester: "Re: starting, stopping, restarting services using WMI"
- Previous message: Chung-Wei Foong [MSFT]: "Re: starting, stopping, restarting services using WMI"
- In reply to: lshe: "Problem about "StdRegProv" method"
- Next in thread: Michael Harris \(MVP\): "Re: Problem about "StdRegProv" method"
- Reply: Michael Harris \(MVP\): "Re: Problem about "StdRegProv" method"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|