

- #How do i uninstall onedrive for business windows 10 install
- #How do i uninstall onedrive for business windows 10 windows 10
- #How do i uninstall onedrive for business windows 10 pro
'- 'Un-install setup exe Call UninstallSetup("OneDrive Setup", "C:\Windows\SysWOW64\OneDriveSetup.exe", " /uninstall /silent")


Strlogfile.WriteLine Now & vbTab & "Removing " & strAppName ' CREATE UNINSTALL SCRIPT - EDIT OR REMOVE THIS SECTION AS REQUIRED '- sArchitecture = GetObject("winmgmts:root\cimv2:Win32_Processor='cpu0'").AddressWidth If sArchitecture = "32" Then ProgramFilesDrive = objShell.ExpandEnvironmentStrings("%PROGRAMFILES%") SoftwareRegKeyPath = "SOFTWARE\" WindowsSysDir = "%SYSTEMROOT%\System32" Else ProgramFilesDrive = objShell.ExpandEnvironmentStrings("%PROGRAMFILES(x86)%") SoftwareRegKeyPath = "SOFTWARE\Wow6432Node\" WindowsSysDir = "%SYSTEMROOT%\SysWOW64" End If '- If objFSO.FileExists(strLogFolder & "\" & sLogFilename) Then Set strlogfile = objFSO.OpenTextFile(strLogFolder & "\" & sLogFilename, ForAppending, True) Else Set strlogfile = objFSO.CreateTextFile(strLogFolder & "\" & sLogFilename) End If '' Create log file for trouble shooting VB script SLogFilename = "OneDrive_VBSUninstall.log" 'sLogFilename = "Test_App_1.0_VBSInstall.log" StrLogFolder = "C:\Logs" If not objFSO.FolderExists(strLogFolder) Then objFSO.CreateFolder strLogFolder End If Set strUser = objFSO.GetFolder(strProfile) ProgramData = objShell.ExpandEnvironmentStrings("%PROGRAMDATA%") StrPathName = Left(wscript.ScriptFullName, Instrrev(wscript.ScriptFullName,"\"))ĪllDesktop = objShell.expandenvironmentstrings("%PUBLIC%" & "\Desktop\")ĪllStartMenu = objShell.expandenvironmentstrings("%PROGRAMDATA%" & "\Microsoft\Windows\Start Menu\Programs\") Set objFSO = CreateObject("Scripting.FileSystemObject") Set objShell = CreateObject("WScript.Shell") Comment or un-comment sections as required.ĭim objShell, objFSO, strPathName, strlogfile, strLogFolder, sArchitectureĭim AllDesktop, AllStartMenu, ProgramDataĭim strProfile, strUser, UserDesktop, AppData, LocalAppData, LocalLowAppData The script will create a verbose log file for the tasks/actions. This VBS scripts installs and/or removals ' This script has been created to assist with SCCM. I'm not a great scripter so but they work.

#How do i uninstall onedrive for business windows 10 install
Should you change your mind and want to reinstall OneDrive, head to the “%SystemRoot%\SysWOW64\” folder in File Explorer and run the OneDriveSetup.exe program.(Caveat - IIRC OneDrive changes are due for a unified sync client that serves both Personal & Business functions, plus ability to sign-into Personal Once Drive within Office apps)īut anyway, GPP notwithstanding, from memory I think OneDrive install changed depending on OS build, so I included all the stuff I've used. If you do want to remove the OneDrive related folders and their contents, you need to edit regedit. Your OneDrive folder and files, however, will still be available. You won’t see a confirmation dialog or progress bar when you do this, but if you try searching for OneDrive, the app will no longer be found.
#How do i uninstall onedrive for business windows 10 windows 10
Then type in either %SystemRoot%\System32\OneDriveSetup.exe /uninstall if you’re using 32-bit Windows 10 or %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall if you’re using 64-bit Windows 10 and hit Enter.Type in taskkill /f /im OneDrive.exe to terminate any OneDrive processes and hit Enter.Open Command Prompt in Administrator mode: Right-click on the Windows icon in the taskbar and select Command Prompt (Admin).Then enable the “Prevent the usage of OneDrive for file storage” setting.
#How do i uninstall onedrive for business windows 10 pro
Unfortunately Windows 10 Home users don’t have access to the group policy editor, so they won’t have this option.īut if you’re running Pro or another version of Windows 10, go to the Group Policy Editor (type in “gpedit.msc” in the search box) and go to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > OneDrive. Disabling OneDrive will prevent it from running as well as remove it from File Explorer, and you can easily re-enable it later if you want to.
