Dropbox Removal via Batch Script (works for SCCM or other management systems)

Hello,I recently ran into a security issue at work where we had a number of users installing and using Dropbox on their machines. Well this is an issue becuase they can take company files and upload them. So I was assigned the task of removing Dropbox and blocking it. Blocking

 
 
 
 
 
5 Star
(3)
1,396 times
Add to favorites
System Center
11/19/2019
E-mail Twitter del.icio.us Digg Facebook
  • Install Directory Changed
    3 Posts | Last post February 05, 2020
    • Howdy, it looks like Dropbox has modified the directory in which all these files are stored. Your script references files that are in c:\Program Files (x86)\Dropbox\Client, but they are actually one level deeper in c:\Program Files (x86)\Dropbox\Client\$version, which as of this writing is 87.4.138\. 
      
      God, it seems like they don't want anyone to be able to uninstall this thing. Would you be able to update your script? 
    • Yeah, give me a little bit of time and I will make sure this gets up to date. Good catch!
    • Sorry for getting back to this so late. I had some personal stuff come up that kept me busy. I installed the newest version then ran revo uninstaller against it when the uninstall came up I clicked cancel and scanned the leftovers. I do see where you are getting the Client\Version, however in my script it is told to delete the entire client folder. Since the version folder exists within the client folder it would delete that and everything in it too at line 
      
      rmdir "C:\Program Files (x86)\Dropbox\Client" /s /q
      
      Let me know if you are experiencing something different and I can take a look. For me the script worked on even the newest version. 
      
  • account elevation and HKEY_CURRENT_USER\
    2 Posts | Last post November 19, 2019
    • From what I see admin previlege us is required to run this batch file which will affect HKEY_CURRENT_USER\ section of the batch file, right?
    • You are correct. I thought I had updated this some time ago in order to address that but it seems it did not save. It should be updated now. 
  • Detection Method
    2 Posts | Last post March 12, 2019
    • Hello for the detection method you wrote
      Detection Method:
      
      "File
      C:\Program Files (x86)\Dropbox\
      Client
      The File System Setting Must Exist on the Target System to Indicate Pressence of the Application
      
      OR
      
      Registry
      HKLM
      SOFTWARE\Classes\Dropbox.Gdoc
      <Check> Use (Default) Registry key value for detection
      This registry setting must exist on the target system to indicate pressence of the application"
      
      Do I do one OR the other or are you saying to put both of these in with a OR option?
    • I did it with both but the detection method can be altered on preference as long as it is detecting properly.