Win32::Registry

When you connect to a remote Registry and either save a key to a file or load a key from a file, it is important to note that the path to the file specified is relative to the computer on which the Registry lives. Suppose, for example, that a script connects to \\ServerA and tries to load a key from c:\temp\key.dat using the following command:

$Remote_HKEY_LOCAL_MACHINE->Load( "TestKey", "c:\\temp\\key.dat" ); 

The file that will be loaded is in \\ServerA’s c:\temp directory. If the file exists on the machine running the script but not on \\ServerA, the function will fail. The same is true for the Save() method—the file will be saved on \\ServerA.

Get Win32 Perl Programming: The Standard Extensions, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.