User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » how to make script to delete registry entries? Page [1]  
quagmire02
All American
44225 Posts
user info
edit post

eraser is installed on 15 machines at work, but upon installation it creates these shell extension options on the recycle bin...i found how to remove them, but rather than navigate the registry on each machine, i'd like to use a script (.exe, .bat, whatever...i don't know this stuff) to remove these entries on each machine

see this site for exactly what i'm trying to do: http://forums.majorgeeks.com/showthread.php?t=159224

also, let's say that a future version of eraser doesn't install these shell extensions...i would imagine that this script (once it's written) would simply try to remove something that wasn't there anyway, so it wouldn't cause any problems (meaning i could just keep and use this script forever)...yes?

thanks!

8/16/2008 8:40:16 PM

scud
All American
10804 Posts
user info
edit post

http://support.microsoft.com/kb/310516

8/16/2008 8:51:24 PM

quagmire02
All American
44225 Posts
user info
edit post

^ awesome...if anyone wants it, it's:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Erasext]

[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Erasext2]

[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Erasext3]

[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Erasext4]

[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Erasext5]

[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Erasext6]

[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Erasext7]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Erasext]

8/16/2008 9:01:45 PM

smoothcrim
Universal Magnetic!
18966 Posts
user info
edit post

if you use reg.exe, you can do this on remote machines, without having to login to each one. if these are AD machines, just push your reg file that way. also, you can make your own installer for eraser in the future that runs the reg file right after install and push it the same way. if you dont have access to create msi's, use winrar and just add commands to execute after extraction, then add your app and script to the archive

8/16/2008 9:30:49 PM

evan
All American
27701 Posts
user info
edit post

don't listen to smoothcrim, he's a batch script whore. vbscript is the language of choice for windows scripting.

set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
intReturn = objReg.DeleteValue(HKLM, strKey, strName)


where strComputer is the fqdn or netbios name of the computer you're connecting to (use "." for localhost)
strKey is the path to the key where the value you want to delete is
strName is the name of the value you're deleting

boom

you can iterate it over an array of system names
push it out in a logon script
push it out with group policy
basically anything you want.

8/17/2008 1:30:49 AM

ScHpEnXeL
Suspended
32613 Posts
user info
edit post

DON'T CALL HIM A BATCH SCRIPT WHORE

THEY ARE ALL THAT IS SPECIAL TO ME OK

8/17/2008 1:35:31 AM

evan
All American
27701 Posts
user info
edit post

Quote :
"BATCH

SCRIPT

WHORE"

8/17/2008 3:33:59 AM

smoothcrim
Universal Magnetic!
18966 Posts
user info
edit post

QFT

8/17/2008 8:37:28 AM

 Message Boards » Tech Talk » how to make script to delete registry entries? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.