use Win32::TieRegistry (Delimiter => "/"); my $key; my $host = "ajax"; if ($key = $Registry->Open("//$host/LMachine/SOFTWARE/FOO/BAR/")) { $key->CreateKey("NewKey//") or print "$^E\n"; $key = $Registry->Open("//$host/LMachine/SOFTWARE/FOO/BAR/NewKey/"); $key->SetValue("MACAddress", "BIGMAC") or print "$^E\n"; } else { print "Error: $^E\n"; }
In reply to Modifying Win32 registry on remote hosts by ej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |