RE: windows registry




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?


.



Relevant Pages

  • Re: view workgroup computers--workaround
    ... > Are your XP computers running Simple, ... > uses the Guest account, as a backup to a matching non-Guest account with ... > On XP Home, and on XP Pro with Simple File Sharing enabled, make sure that the ... > Have you used the Registry Editor before? ...
    (microsoft.public.windowsxp.network_web)
  • Re: XP
    ... to convince that you know anything at all, much less about computers. ... OneCare Registry Cleaner is bogus, ... These machines are completely clean. ...
    (microsoft.public.windowsxp.general)
  • Re: Workgroup not accessible
    ... Check for a browser conflict between the two computers. ... Make sure the browser service is running on one of the computers only. ... Internet Explorer here) you have in your domain / workgroup, ... Have you used the Registry Editor before? ...
    (microsoft.public.windowsxp.network_web)
  • Re: XP
    ... convince that you know anything at all, much less about computers. ... OneCare Registry Cleaner is bogus, ... These machines are completely clean. ...
    (microsoft.public.windowsxp.general)
  • Re: Acessing computers over the network
    ... >I just reformatted and reinstalled windows on my desktop and tablet pc, ... Check for a browser conflict between the two computers. ... Have you used the Registry Editor before? ...
    (microsoft.public.windowsxp.network_web)