Disabling Autoruns

Discussion in 'Malware Help (A Specialist Will Reply)' started by Norgates, Jun 7, 2009.

  1. Norgates

    Norgates Corporal

    Hi

    I used the instructions in the how to protect yourself thread step 9 to disable autoruns and foiund I cannot use an external maxtor harddrive which attaches with a double usb cable. Could you post how to reverse this registry patch, so I can see if this could have led to the problem? The original patch in your tutorial for disabling autoruns makes the following changes, but I don't know what the origainal values were:


    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
    @="@SYS:DoesNotExist"
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2]
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "HonorAutorunSetting"=dword:00000001
    "NoDriveAutoRun"=dword:03ffffff
    "NoDriveTypeAutoRun"=dword:000000ff
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "HonorAutorunSetting"=dword:00000001
    "NoDriveAutoRun"=dword:03ffffff
    "NoDriveTypeAutoRun"=dword:000000ff
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
    "AutoRun"=dword:00000001
    [-HKEY_LOCAL_MACHINE\software\microsoft\active setup\installed components\{23KLN5J0-4OPM-11WE-AAX5-24EF1F387232}]


    Thanks.
     
  2. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    The below should restore defaults.


    Copy the bold text below to notepad. Save it as fixme.reg to your desktop. Be sure the "Save as" type is set to "all files" Once you have saved it double click it and allow it to merge with the registry.
    Make sure that you tell me if you receive a success message about adding the above
    to the registry. If you do not get a success message, it definitely did not work.
     
  3. Norgates

    Norgates Corporal

    Sorry this took awhile.
    I recieved a success message, but it didn't help.

    The external harddrive can no longer be recognized in Windows Explorer on this computer, although it is recognized on another computer.
    The flash drive, on the other hand, is recognized but has 0 bytes. The data could be recovered with a recovery program. The flash drive turns up 0 bytes on a second computer as well.

    Any thoughts on this?
     
  4. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    No! Is there any software that is required to run this drive. If yes, try reinstalling it.

    There is no reason why you should not be able to just open Windows Explorer and navigate to this drive and view the files. I have many PCs where this patch has been run and hae plugged in more than a half dozen type removable drives and have no problem accessing them. However none of these are Maxtor drives with double USB cables.
     
  5. Norgates

    Norgates Corporal

    I saw that the mountpoints2 key was removed. Would that matter?
     
  6. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    Not sure it would really matter unless Software on the drives was installed and made use of Mountpoints to run.

    Did you backup the registry and set a new restore point as suggested in the procedure? I would try to either reload the registry from saved settings or try going back to a restore point from before you ran the procedure.
     
  7. Norgates

    Norgates Corporal

    I've noticed I can't get my restore points to go back to the previous month. I wondered if there's a setting for this, because I have plenty of space for the restore points. I noticed this on a previous reformat as well. I don't know if they are set for 30 days or for a month or what, but when I click on the arrow to go back to the previous month, it won't go there.
     
  8. Norgates

    Norgates Corporal

    Just another thought.
    At the time I installed my os, I put a second os onto another partition. Would it be possible to copy the missing keys from the second os and move them? If so, which ones would I need to copy?
     
  9. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    The number of restore points is controlled by how large your hard disk is and what percentage of the hard disk you allocate for use by System Restore. Each restore point can use a significant amount of disk space.

    Are you saying you did not create a restore point before making the changes and do not have a restore point that you can access that was from before the changes were made?
     
  10. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    Is it the same version of Windows and was everything setup exactly the same. The only thing you would really have to copy is the MountPoints since the other keys were already returned to defaults by the patch I gave you.
     
  11. Norgates

    Norgates Corporal

    Hi Chaslang,
    The operating systems were installed from the same cd, so the basic windows and updates should be the same.

    I thought I understood this until I took it apart. Below is what I get when I compare the entries side by side between the regedit to disable and the regedit to re-enable (or reset the defaults). It may be a couple more things than just the mountpoints2 key are missing. Assuming I have a complete registry to draw any needed keys from, could you help me put the right patch back together? I ran the defaults reg patch and that didn't help, so when I go to get the mountpoints2 key, I'd like to make sure I get anything else that I might need. Like the cd rom key? Anyway, your help is appreciated.

    REGEDIT4
    ------------------------------------------------------------------

    To disable:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
    @="@SYS:DoesNotExist"


    To re-enable:

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]


    ------------------------------------------------------------------

    To disable:

    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2]

    To re-enable: (copy key from other registry)

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2]


    ------------------------------------------------------------------

    To disable:

    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "HonorAutorunSetting"=dword:00000001
    "NoDriveAutoRun"=dword:03ffffff
    "NoDriveTypeAutoRun"=dword:000000ff

    To re-enable:

    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoDriveAutoRun"=dword:00000000
    "NoDriveTypeAutoRun"=dword:00000095
    "NoDrives"=dword:00000000

    ------------------------------------------------------------------

    To disable:

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "HonorAutorunSetting"=dword:00000001
    "NoDriveAutoRun"=dword:03ffffff
    "NoDriveTypeAutoRun"=dword:000000ff

    To re-enable:

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\Explorer]
    "NoDrives"=dword:00000000
    "HonorAutorunSetting"=-
    "NoDriveAutoRun"=-
    "NoDriveTypeAutoRun"=-


    ------------------------------------------------------------------

    To disable:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
    "AutoRun"=dword:00000001

    To re-enable:

    missing? (copy this key too?)

    ------------------------------------------------------------------


    To disable:

    [-HKEY_LOCAL_MACHINE\software\microsoft\active setup\installed components\{23KLN5J0-4OPM-11WE-AAX5-24EF1F387232}]

    To re-enable:

    ??? (and this one?)


    ------------------------------------------------------------------


    Thanks for your help.
     
  12. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    No it is just the MountPoints2 key (and everything within it) that you would need. The other keys were already set back to normal defaults. The Cdrom key is normally set to "AutoRun"=dword:00000001 as a default. The only reason it is in the Disable Autruns procedure is to make sure it was not changed. And the last key ( the {23KLN5J0-4OPM-11WE-AAX5-24EF1F387232} one) is not supposed to exist which is why it was deleted in the original procedure and does not need to be restored.

    As stated above and in my last message, the only thing that you need to restore is the MountPoints2 key.

    You never answered my question from message # 9. Are you saying you did not make a registry backup as requested before running the procedure? And also that you don't have a restore point that could be used?
     
  13. Norgates

    Norgates Corporal

    Hi -
    I tried this and I thought it would work, but maybe I'm not doing it right. I copied the key into a file called mountpoints2.reg and moved it from one os to the other. Then I double-clicked on it. Is that right? Or should I go into regedit and try to import it? The error message I got was that the file could not be imported. An error occured when trying to access the registry.
    Any thoughts about this?
     
  14. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    Does the very first line of the .reg file contain REGEDIT4

    You cannot have any blank lines above this. It must be the first line
     
  15. Norgates

    Norgates Corporal

    It was Windows Registry Editor Version 5.00

    It's actually quite a big key. Here's what it looks like. Would it be easier doing all the values rather than the whole key? I'm wondering if I did it right. I simply exported it into a .reg file. It has the correct icon. Will it matter if the browser is open when I run it? Running it with REGEDIT4 instead of Windows Registry Editor Version 5.00 gives the same error message.
     
  16. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    This should be okay, but you could also change the first line to REGEDIT4 and it should also work. REGEDIT4 is just compatible with all Windows versions which is why we use it more frequently.

    Try it in safe boot mode and make sure you shutdown all protection software and all other unnecessary programs first.

    There are certain registry keys that the system does not allow you to directly access. I did not think this was one of them.
     
  17. Norgates

    Norgates Corporal

    Hi Chaslang,

    Thanks for your perserverance.

    I tried the patch in safemode using regedit4 and don't know if the protection software was running or not, because there weren't any icons in the lower right-hand corner and I didn't check the task manager, but I got a success message for the reg patch anyway.

    I then did a new startup and plugged in the external harddrive with its double cables. I originally told you the drive is a Maxtor, but in fact it's a Plextor (sorry about that). It still does not show up in Explorer, so I think the next step would be for me to contact plextor and ask them if they have any ideas what's going on there. I did think to check it on the second operating system where it has the same problem in this computer. When you plug it into the usb port, it lights up, indicating it turns on, but it doesn't show the usb arrow down in the lower right-hand corner of the screen or give the acoustic signal that the usb port recognizes it. It doesn't have this problem on other computers. So the drive itself seems to be working, but the pathway between it and the usb port doesn't seem to be working. The usb ports both recognize other devices like my flash drive in either of the two operating systems.

    The reason I think it's connected to the disableautoruns.reg patch, is because it started right after I ran that. Is there a way to check the pathway using the cmd prompt? I am inclined at this point to think that something about the pathway itself to the usb port changed and that this ext. harddrive was sensitive in some way that other drives are not.

    There does not seem to be any extra software that came with the plextor drive. I will contact Plextor and see if they have any experience of their drives not being recognized. The main frustrating thing is that it worked before I used the patch. So sorry that we seem to be getting to the end of our options without knowing what the problem actually is.

    Appreciate your help.
     
  18. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    Multiple times I have asked if you made a restore point and a registry backup as requested in the Disable AutoRuns procedure. You still have not answered these questions properly. At one point all you were saying is something about not being able to go back 30 days in system restore. Why couldn't you just go back to the restore point from the day before you made the change? Also did you make a registry backup?

    I think you will have to speak to Plextor since we have basically restored all the parameters changed by the registry patch in the Disabling AutoRuns procedure. Perhaps there is something else that was changed on this PC.
     
  19. Norgates

    Norgates Corporal

    HI!

    Sorry if the below did not answer your question. I aways make restore points or certainly have enough available to go back to. I have my restore point capacity set on maximum, which is 4915 MB. The slider bar is all the way over to the right. During this particular thread, we crossed months from June to July and when you suggested I go back a restore point, I could go back to June, but all the June restore points were gone. That's where the necessary restore point would have been.

    I don't know how to judge how much space the restore points are actually taking up, but I've had it happen once before that I couldn't go back to a previous month. I didn't make any extra backups using Erunt or the export feature in the registry. Last time I used Erunt, I ran it out of Windows Explorer because I forgot to stick the icon on the desktop, and I accidently mistook the Registry Optimizer for the Registry Backup program and ran it instead and wiped out all of my restore points. So I didn't much like Erunt after that. In that situation (some months back) I ran into a problem I could not resolve which was that the internet couldn't be reconized at the point where the internet interfaces with the computer, i.e. at the point where the cable connects to the computer. Everything else was like it should have been. So I reformatted and the new format seems in every way to have taken care of the internet cable problem.

    I wrote to Plextor about the ext HD, but unless they have some specific experience with this, I don't expect they will have much input. They might though. You never know. The fact is that the ext HD works on another computer, so this would indicate that the drive itself is okay. I don't know where the autoruns files get turned off, if they only get turned off in the main computer or on the ext. medium or both?

    What is odd is that this external drive problem seems a bit like that problem with the internet cable. Everything's plugged in. The electricity to the ext. HD is okay, but the thing is not being recognized somewhere. In the case of the internet cable, it showed within the computer as having an active connection and it showed outside the computer as having an active connection and the cable was fine, but the inside and the outside couldn't talk to each other. I don't know if this is the same problem with the ext. harddrive. It certainly is at a different physical place in the computer being at the usb port.

    The reason I'm working on this problem, besides the fact that it would be nice to fix it, is because someone else could run into this same problem using the DisableAutoruns patch and it would be nice to know what is causing this problem and if it's related. Asking me to go back to an earlier restore point suggests you would be ready to drop the subject.

    Shall we?

    ;)



     
  20. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    Actually you first posted on June 7th and I suggested going back on June 27th. And on June 30th you said you could not go back to the previous month which would imply going back to May. All you needed to do was go back to the day before making the change. Could that have been June 6th? 4.915 GB should be enough for a couple months. There is no set size for a restore point since it varies based on how much has changed but 50 to 60 MB is quite typical.

    If you don't have a restore point to use and you don't have a registry backup made from before the changes, I really don't have much else to suggest other than looking to see if your other systems (where the drive works) have some kind of autoruns.inf files that you could possibly use on this system where it does not work. We have basically restored all the changes made by Disabling AutoRuns procedure so I'm not sure why the drive will not work. No physical files or driveres related to this drive were removed.

    Yes it would be good to know exactly what the problem is and if there is a way to recover.

    Yes if it fixed the problem. ;)
     
  21. Norgates

    Norgates Corporal

    Thank you.

    I tried going back to that restore point from June 6th, but the computer worked on it for about a half hour and finally rebooted and said it couldn't use that one.

    You are correct in every aspect. Let me see if there is a file that can be transferred from the computer where the drive works. Where would I go looking for an autorun.inf file to transfer? Just do a search of windows? Is there only one autorun.inf file and if there is more than one, are they all the same?

    I'm still waiting to hear back from Plextor.

    If you don't hear back from me, it's because I haven't figured it out. Thanks for all your time.
     
  22. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    You're welcome.

    Okay but was there one from June 5 th or 4 th...etc that you could have tried. ;)

    Normally the autorun.inf file is found only in the root folder of the drives any others would not be the one that would autorun when the drive is mounted. Not all autorun.inf files contain the same information. You can load the file into notepad to look at it and this can help you figure out what it is for and what it does.
     
  23. Norgates

    Norgates Corporal

    Hi Chas,
    I appreciate all the time you put into this, so I just wanted to let you know what came of it - a more simple solution than expected. As you may have suspected, the problem seemed to occured when I ran the regedit file to disable autoruns. Independently we tried plugging the external harddrive into the usb ports on the back of the computer and using those it worked (even though the ones in the front work for everything else).
    Sorry this took so much time.
     
  24. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    Happy to hear you found a way to make them work. Thanks for letting us know.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds