I am trying to connect up to a machine remotely and pull some information
from the currently logged in user, if there is one. Every time I connect
up though, I get only the keys from HKU\.DEFAULT. Does anyone know how to
get it from the currently logged in user?
I must mention that I have tried both Win32::Registry and
Win32::TieRegistry, and both have had the same problem. An example code
for TieRegistry is listed below.
-----[Start]----
use Win32::TieRegistry(Delimiter => "/");
$machine = "SN23TCH20";
$regkey = $Registry -> {"//$machine/HKEY_CURRENT_USER/Volatile
Environment"} || die "ahhh";
foreach $key (sort keys %{$regkey}){
print "$key\n\t\t${$regkey}{$key}\n";
}
-----[End]-----
This should dump all the environment settings for the user, but instead it
is only giving me the one environment setting for .DEFAULT.
Any help would be greatly appreciated.
Thanks.
Len.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs