Link to home
Create AccountLog in
Avatar of mybrainhertz
mybrainhertz

asked on

Reregister all current .dll's

I was recently working on fixing a problem with DFSR counters on windows server 2003 r2.  I ran a batch file that was supposed to reregister dll's in the c:\windows\system32\wbem directory.  There was a problem with the script and it reregistered .dll's from all directories.  The worry is that it reregistered old .dll's in subdirectories that it was not supposed to.  Can any tell me if this will cause and issue and if so, how to reregister the current dll's?
Avatar of arnold
arnold
Flag of United States of America image

The issue is how you define current?
You have to make sure your script searches for dlls within a limited set of directories.
You should modify the script you ran such that it does not try to reregister, but will output the list of items it did reregister. Ten you can determine whether you should go through this excersize.
Are there issues that you see because of this? I.e. application fail or not function as expected?
Auto running the same script that previously ran with an error might compound one mistake with another.
Avatar of mybrainhertz
mybrainhertz

ASKER

The server has not been rebooted yet, so I assume that even if the registry points to an older version of a file in the wrong directory, it won't be loaded until I reboot.  I define current as "how it was before the script ran.  Also turns out there was no system state running on this server, hoowever it was being backed up by shadowprotect.  One thought I have is to grab the registry files from system32\config and and then copy them back off line with a boot disk.  
We did reregister what was in \system32 in case anything got reregistered out of the KB directories that would have registered an older version.  Problem is there are .dll's all over the place.
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account