[windows2000] Remote removal solution

  • From: "Chris Berry" <compjma@xxxxxxxxxxx>
  • To: windows2000@xxxxxxxxxxxxx
  • Date: Wed, 02 Apr 2003 18:52:09 -0800

In case anyone needs to do something similiar, here is what I ended up with:

#!perl

open INPUT_FILE, "<comp_list.txt";

while (<INPUT_FILE>) {
        chomp;
        $comp=$_;
        `rd /s/q \\\\$comp\\c\$\\\"Program Files\"\\TurboNote`;
        `del \\\\$comp\\c\$\\\"Documents and Settings\"\\\"All Users\"\\\"Start 
Menu\"\\Programs\\Startup\\TurboNote.lnk /Q`;
        `rd /s/q \\\\$comp\\c\$\\\"Documents and Settings\"\\\"All 
Users\"\\\"Start 
Menu\"\\Programs\\Applications\\Applications\\TurboNote`;
        `reg delete \"\\\\$comp\\HKLM\\SOFTWARE\\SPIS Ltd\" /f`;
        `reg delete 
\\\\$comp\\HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\TurboNote
 
/f`;
}

comp_list.txt is a listing of all the computer names you want to remove this 
program from one per line.  I used my dnsdump list from the inventory 
program I talked about previously, but you could do it by hand as well.  Not 
the most elegant solution, but it took me about 50 times less time to code 
it than it would have taken to walk around and do it manually, so I'd say 
I'm ahead.  You gotta love perl for admin work.

Chris Berry
compjma@xxxxxxxxxxx
Systems Administrator
JM Associates

"Without change, something sleeps inside us, and seldom awakens.  The 
sleeper must awaken." -- Duke Leto Atreides

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts:

  • » [windows2000] Remote removal solution