SPUG: Win32::Registry::RegConnectRegistry

caseyt at metaip.checkpoint.com caseyt at metaip.checkpoint.com
Fri Sep 24 19:04:50 CDT 1999


Hi everyone,

I have been lurking on this list for a few weeks and finally ran into a snag
I can't seem to work out of. I hope someone out there has used this Perl
module and can clear this up. For testing some software I need to remotely
change some registry settings over and over. To do this I am trying to use
the following:

require Win32::Registry;
	
$location = "HKEY_LOCAL_MACHINE\\SOFTWARE\\MICROSOFT";

Win32::Registry::RegConnectRegistry("\\\\192.168.3.150",$location,$keyhandle
) || die " died on connect $!";

I have also tried ...Registry("\\\\hostname",$location,$keyhandle)
	
...Registry("\\\\hostname.fullyqualified.com",$location,$keyhandle)
			...Registry(\\\\192.168.3.150,$location,$keyhandle)
			...Registry(\\\\hostname,$location,$keyhandle)
			...Registry(192.168.3.150,$location,$keyhandle)
			...Registry(hostname,$location,$keyhandle)

and I have also tried setting up a net use to the remote machine under that
machines administrator
prior to trying this (in case I needed some background authentication or
something).

Does anyone have a good understanding of whats going on in the background on
RegConnectRegistry that is causing all of my efforts to use it to fail?

Thanks guys, and have a good weekend.

Casey

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
        Email to majordomo at pm.org: ACTION spug-list your_address


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
        Email to majordomo at pm.org: ACTION spug-list your_address





More information about the spug-list mailing list