You don't have to go through the process of Opening the key and then reading it when
you use
TieRegistry.
Here's how I use it in one of my scripts (CLSystems is a key I create when the program
is first
run to save settings into, to be read and used the next time the program is run,
according to the
'SaveSettings' value):
$RegKey = $Registry->{'//Hostname/CUser/Software/CLSystems/Netfiles'};
$Interval = $RegKey->{'UpdateInterval'};
$SaveSettings = $RegKey->{'SaveSettingsOnExit'};
$Search = $RegKey->{'SearchType'};
TieRegistry makes the Registry look like a large hash, which can be read using hash
syntax.
Hope this helps,
--Chuck
--- "Bateman, John (IQAUS is)" <[EMAIL PROTECTED]> wrote:
> Hello,
> I have a script I am trying to use to query a particular registry
> value on all machines attached to a network. It is querying the DC
> correctly and creating that list. It is parsing the list correctly and even
> is
> Attaching to the registry correctly. My issue is that it is not finding the
> registry KEY consistently. For example if I run the script say 3 times on a
> machine XYZ. It may only return the value 1 out of the 3 times that it is
> queried. The other times it lists my output from the last else statement:
> Key not present. My thought was that it was having drops on the network so
> I have tried putting this in a loop so that it will query each machine 6
> times if it does not get a value, but this does not seem to help. It either
> finds the value on the first try or not at all.
>
> If anyone has any suggestions I would be grateful.
>
> Thank you,
> John
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs