Not exactly... you can only access the two root hives remotely, HKEY_LOCAL_MACHINE and 
HKEY_USERS. All other hives displayed by regedt32 are contained within these two hives.

You need to attach to the HKEY_USERS registry on the remote system, then open 
HKEY_USERS\SidOfUser to get to HEKY_CURRENT_USER.

-----Original Message-----
From: Sibi John [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 5:58 PM
To: Perl (E-mail)
Subject: Writing to Registry Remotely ??


hi,

        Is it possible to write to Hkey_Current_User remotely using a perl
script. ???

use Win32::TieRegistry;
use Win32::AdminMisc;
open(User,'c:\utils\computer.txt');
while (<User>)
{

$machkey=$Registry->Open("\\\\$_\\CUser\\Control Panel\\International");
if ($machkey)
        {
                print " Changing $_ ";
                $hello=$machkey->CreateKey( "Calendars");
                $hello1=$hello->CreateKey( "TwoDigitYearMax")
        }
else 
        { 
                print " Unable to Open";
        }
}


This  Script cannot open the specified computers from the computer.txt
file.. Any suggesstions ????
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to