Try: $key = $Registry->Connect($machine, $key"); $key->SetValue("keyName", "Value");
This is what I use to remote change registry settings on my servers, and it works like a charm. --------------------------------------------------------------- Robert Blake Technical Systems Analyst Intel Servers, IT Shared Services - Symcor Inc. 1 Robert Speck Parkway, Mississauga, Ontario E-mail: [EMAIL PROTECTED] --------------------------------------------------------------- Eric Hennessey <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent by: cc: [EMAIL PROTECTED] Subject: Registry woes eState.com 11/20/02 02:39 PM To all those who replied to my previous post, thanks...you got me pointed in the right direction. Here's the problem I'm having now. The following code works great on the local machine if I remove the //$host/ from the path name in the Open methods, but fails on the first Open attempt when I try to run it against a remote machine. Any ideas? use Win32::TieRegistry (Delimiter => "/"); my $key; my $host = "ajax"; if ($key = $Registry->Open("//$host/LMachine/SOFTWARE/FOO/BAR/")) { $key->CreateKey("Eric//") or print "$^E\n"; $key = $Registry->Open("//$host/LMachine/SOFTWARE/FOO/BAR/Eric/"); $key->SetValue("MACAddress", "BIGMAC") or print "$^E\n"; } else { print "Error: $^E\n"; } _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs