RE: windows registry
- From: tjohnson@xxxxxxxxxxxx (Timothy Johnson)
- Date: Mon, 29 Aug 2005 11:17:49 -0700
Check out Win32::TieRegistry. It makes quick work of most registry
operations.
#########################
#Example
use strict;
use warnings;
use Win32::TieRegistry (Delimiter => '/');
my $path = "Software/Microsoft/Windows/CurrentVersion/Run";
my @computers = qw(computerA computerB computerC);
foreach my $wkstn(sort @computers){
my $virusKey = $Registry->{"//$wkstn/HKEY_LOCAL_MACHINE/$path"};
foreach my $entry(sort keys %{$virusKey}){
print "$entry => ".$virusKey->{$entry};
print "\n";
}
}
##########################
-----Original Message-----
From: Tim Wolak [mailto:tim.wolak@xxxxxxxxx]
Sent: Monday, August 29, 2005 11:08 AM
To: beginners@xxxxxxxx
Subject: windows registry
All,
This is my first attempt at using perl to work with a windows system
and need some help. I need to check for some registry entries made by
a virus and remove them. Which is the best module for this and do you
know of any example code I can look at?
.
- Prev by Date: RE: windows registry
- Next by Date: Re: windows registry
- Previous by thread: RE: windows registry
- Next by thread: RE: windows registry
- Index(es):
Relevant Pages
|
|