El_Capitan Posted July 18, 2014 Posted July 18, 2014 This script is only for cleaning your system AFTER you uninstall all your graphics drivers on a Windows machine (optimized for Windows 7 x64, but it will most likely work on XP and Windows 8). It searches for existing AMD and NVIDIA folders, and any leftover registry trees. If it finds them, then it will delete them. There are 3 things you need to do after you copy/paste the below code to a text file: 1. Replace all "El_Capitan" occurrences with your OS login name. The best way to do this is go to C:\users and then find your login name. 2. Rename your .txt file with a .bat extension. Once you rename it, you might get a prompt: That's fine. Go ahead and click "Yes". 3. Now all you have to do to run it is right-click on it, and click "Run as administrator". That's it! Below is the script code: IF EXIST "C:\AMD" ( rmdir "C:\AMD" s q ) IF EXIST "C:\ATI" ( rmdir "C:\ATI" s q ) IF EXIST "C:\NVIDIA" ( rmdir "C:\NVIDIA" s q ) IF EXIST "C:\ProgramData\AMD" ( rmdir "C:\ProgramData\AMD" s q ) IF EXIST "C:\ProgramData\ATI" ( rmdir "C:\ProgramData\ATI" s q ) IF EXIST "C:\ProgramData\NVIDIA" ( rmdir "C:\ProgramData\NVIDIA" s q ) IF EXIST "C:\ProgramData\NVIDIA Corporation" ( rmdir "C:\ProgramData\NVIDIA Corporation" s q ) IF EXIST "C:\Program Files\AMD" ( rmdir "C:\Program Files\AMD" s q ) IF EXIST "C:\Program Files\ATI" ( rmdir "C:\Program Files\ATI" s q ) IF EXIST "C:\Program Files\ATI Technologies" ( rmdir "C:\Program Files\ATI Technologies" s q ) IF EXIST "C:\Program Files\NVIDIA Corporation" ( rmdir "C:\Program Files\NVIDIA Corporation" s q ) IF EXIST "C:\Program Files (x86)\AMD" ( rmdir "C:\Program Files (x86)\AMD" s q ) IF EXIST "C:\Program Files (x86)\AMD APP" ( rmdir "C:\Program Files (x86)\AMD APP" s q ) IF EXIST "C:\Program Files (x86)\AMD AVT" ( rmdir "C:\Program Files (x86)\AMD AVT" s q ) IF EXIST "C:\Program Files (x86)\ATI Technologies" ( rmdir "C:\Program Files (x86)\ATI Technologies" s q ) IF EXIST "C:\Program Files (x86)\NVIDIA Corporation" ( rmdir "C:\Program Files (x86)\NVIDIA Corporation" s q ) IF EXIST "C:\Users\El_Capitan\AppData\Local\AMD" ( rmdir "C:\Users\El_Capitan\AppData\Local\AMD" s q ) IF EXIST "C:\Users\El_Capitan\AppData\Local\ATI" ( rmdir "C:\Users\El_Capitan\AppData\Local\ATI" s q ) IF EXIST "C:\Users\El_Capitan\AppData\Local\NVIDIA" ( rmdir "C:\Users\El_Capitan\AppData\Local\NVIDIA" s q ) IF EXIST "C:\Users\El_Capitan\AppData\Local\NVIDIA Corporation" ( rmdir "C:\Users\El_Capitan\AppData\Local\NVIDIA Corporation" s q ) IF EXIST "C:\Users\El_Capitan\AppData\Roaming\AMD" ( rmdir "C:\Users\El_Capitan\AppData\Roaming\AMD" s q ) IF EXIST "C:\Users\El_Capitan\AppData\Roaming\ATI" ( rmdir "C:\Users\El_Capitan\AppData\Roaming\ATI" s q ) IF EXIST "C:\Users\El_Capitan\AppData\Roaming\NVIDIA" ( rmdir "C:\Users\El_Capitan\AppData\Roaming\NVIDIA" s q ) reg delete "HKEY_CURRENT_USER\SOFTWARE\AMD" /f reg delete "HKEY_CURRENT_USER\SOFTWARE\ATI" /f reg delete "HKEY_CURRENT_USER\SOFTWARE\NVIDIA" /f reg delete "HKEY_CURRENT_USER\SOFTWARE\NVIDIA Corporation" /f reg delete "HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\AMD" /f reg delete "HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\ATI" /f reg delete "HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\NVIDIA" /f reg delete "HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\NVIDIA Corporation" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\AMD" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\ATI" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\ATI Technologies" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\NVIDIA" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\NVIDIA Corporation" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AMD" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ATI" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ATI Technologies" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\NVIDIA" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\NVIDIA Corporation" /f reg delete "HKEY_USERS\S-1-5-18\SOFTWARE\AMD" /f reg delete "HKEY_USERS\S-1-5-18\SOFTWARE\ATI" /f reg delete "HKEY_USERS\S-1-5-18\SOFTWARE\NVIDIA" /f reg delete "HKEY_USERS\S-1-5-18\SOFTWARE\NVIDIA Corporation" /f reg delete "HKEY_USERS\S-1-5-18\SOFTWARE\Wow6432Node\AMD" /f reg delete "HKEY_USERS\S-1-5-18\SOFTWARE\Wow6432Node\ATI" /f reg delete "HKEY_USERS\S-1-5-18\SOFTWARE\Wow6432Node\NVIDIA" /f reg delete "HKEY_USERS\S-1-5-18\SOFTWARE\Wow6432Node\NVIDIA Corporation" /f reg delete "HKEY_USERS\S-1-5-19\SOFTWARE\AMD" /f reg delete "HKEY_USERS\S-1-5-19\SOFTWARE\ATI" /f reg delete "HKEY_USERS\S-1-5-19\SOFTWARE\NVIDIA" /f reg delete "HKEY_USERS\S-1-5-19\SOFTWARE\NVIDIA Corporation" /f reg delete "HKEY_USERS\S-1-5-19\SOFTWARE\Wow6432Node\AMD" /f reg delete "HKEY_USERS\S-1-5-19\SOFTWARE\Wow6432Node\ATI" /f reg delete "HKEY_USERS\S-1-5-19\SOFTWARE\Wow6432Node\NVIDIA" /f reg delete "HKEY_USERS\S-1-5-19\SOFTWARE\Wow6432Node\NVIDIA Corporation" /f reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\AMD" /f reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\ATI" /f reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\NVIDIA" /f reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\NVIDIA Corporation" /f reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\Wow6432Node\AMD" /f reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\Wow6432Node\ATI" /f reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\Wow6432Node\NVIDIA" /f reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\Wow6432Node\NVIDIA Corporation" /f reg delete "HKEY_USERS\S-1-5-21-3701762574-1144279690-470671874-1000\SOFTWARE\AMD" /f reg delete "HKEY_USERS\S-1-5-21-3701762574-1144279690-470671874-1000\SOFTWARE\ATI" /f reg delete "HKEY_USERS\S-1-5-21-3701762574-1144279690-470671874-1000\SOFTWARE\NVIDIA" /f reg delete "HKEY_USERS\S-1-5-21-3701762574-1144279690-470671874-1000\SOFTWARE\NVIDIA Corporation" /f Quote Share this post Link to post Share on other sites More sharing options...
ccokeman Posted July 19, 2014 Posted July 19, 2014 Will have to try this out. Quote Share this post Link to post Share on other sites More sharing options...
IVIYTH0S Posted July 19, 2014 Posted July 19, 2014 Nice... I've been using Everything to just find any AMD or ATI folder and deleting that along with Driver sweeper and an official uninstall Quote Share this post Link to post Share on other sites More sharing options...
ivangela Posted July 19, 2014 Posted July 19, 2014 I tried to update my Nvidia drivers a while ago and it hung. Since then the ico in the sys tray has an ! saying there is an updated version of said drivers, but any attempt to update them hangs so I just haven't done it. If you think i can uninstall my graphics dirvers, run this and then reinstall the updated drivers, I'll give it a shot. What say ya'll? Quote Share this post Link to post Share on other sites More sharing options...
IVIYTH0S Posted July 19, 2014 Posted July 19, 2014 I tried to update my Nvidia drivers a while ago and it hung. Since then the ico in the sys tray has an ! saying there is an updated version of said drivers, but any attempt to update them hangs so I just haven't done it. If you think i can uninstall my graphics dirvers, run this and then reinstall the updated drivers, I'll give it a shot. What say ya'll? should work, i assume you're doing an auto update via the geforce experience thing? Quote Share this post Link to post Share on other sites More sharing options...
Waco Posted July 19, 2014 Posted July 19, 2014 Forgive me if this comes off wrong...but what's wrong with driver sweeper in safe mode? Quote Share this post Link to post Share on other sites More sharing options...
El_Capitan Posted July 20, 2014 Posted July 20, 2014 Forgive me if this comes off wrong...but what's wrong with driver sweeper in safe mode? I use the latest Driver Sweeper (which is now Driver Fusion), and CCleaner. I've found it doesn't get rid of everything. The surest way is to double check these locations, and manually delete them. That could take a few minutes if you don't know where to look. This script will do it in a second. Quote Share this post Link to post Share on other sites More sharing options...
cjloki Posted July 20, 2014 Posted July 20, 2014 is all this because of video cards i sent you ? and did it work ?... i worry about such things...can you tell ? Quote Share this post Link to post Share on other sites More sharing options...
wevsspot Posted July 22, 2014 Posted July 22, 2014 Thanks Cappy. I'll give your script a try next time I have to re-do gpu drivers. Consider me "subscribed" to this thread Quote Share this post Link to post Share on other sites More sharing options...
Minime 939 Posted July 22, 2014 Posted July 22, 2014 (edited) Hey El_Capitan, Is it possible that I don't have an OS login name? I can't find one. I have Windows 7 64bit. Is there anywhere else I can look for it besides c:\users? Thanks Never mind I found it. Edited July 22, 2014 by Minime 939 Quote Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.