Thread Konsolen Ausgabe unterdrücken
(18 answers)
Opened by LukeStriker at 2011-01-19 10:09
Win32::TieRegistry liest die Registry aus:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 use strict; use warnings; my $Server = 'test123'; my $searched = "//$Server/LMachine/SOFTWARE/Microsoft/.NETFramework/policy"; use Win32::TieRegistry( Delimiter=>"#", ArrayValues=>0 ); my $delim = $Registry->Delimiter("/"); my $remoteKey = $Registry->{$searched} or die "Can't read $searched key; \nERROR: $^E\n"; foreach my $subKey ( $remoteKey->SubKeyNames ) { print "Installed is $subKey\n" if $subKey =~ /v\d+/; } Ergibt auch meinem Server: Installed is v2.0 Installed is v4.0 |