Hi,

I need some help understanding how to use the EnumValues method of the
stdregprov class. I used stdregprov ok with a Moniker on my machine but now
I need to use it with WbemScripting in order to connect to remote servers
passing explicit user /pw credentials.

Thanks,

Yaniv

Re: EnumValues method of the by Michael

Michael
Tue Jul 20 18:47:12 CDT 2004

> I need some help understanding how to use the EnumValues method of the
> stdregprov class. I used stdregprov ok with a Moniker on my machine
> but now I need to use it with WbemScripting in order to connect to
> remote servers passing explicit user /pw credentials.


server = "NetBiosNameOrDnsNameOrIpAddress"
namespace = "root/default"
account = "domainName\accountName")
password = "password"

set locator = createobject("WbemScripting.SWbemLocator")
set wmi = locator.connectserver(server,namespace,account,password)
set remoteReg = wmi.Get("StdRegProv")


--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US