New
#31
Haha. I know some Americans who cannot construct an English sentence as well as you.
I just want to know if setting it to 1 disables or enables in the .bat file.
Haha. I know some Americans who cannot construct an English sentence as well as you.
I just want to know if setting it to 1 disables or enables in the .bat file.
So, finally, why would you just disable the options rather than delete them?
1= True (Enabled); 0 = False (Disabled).
The value data "1" will enable "PreventNetworkTrafficPreUserSignIn", of which the default is "Disabled".
I am so confused. If 1 is enabled, and we are trying to stop the service, why are we enabling it?
If I were you, I would not enable it.
I have uninstalled OneDrive, and "PreventNetworkTrafficPreUserSignIn" does not exist in my Registry.
The following key does not exist in my Registry.
HKLM\Software\Policies\Microsoft\OneDrive
If you want to delete it, run the following:
Reg delete "HKLM\Software\Policies\Microsoft\OneDrive" /F
A little while ago I decided to try and write a Batch Script that completely removed OneDrive and ALL the leftovers!
I came up with this but for some reason it DOESN'T remove the OneDriveSetup.exe file! . . .
Code:@echo offecho. echo Terminating ANY OneDrive processes . . . taskkill /f /im OneDrive.exe echo. echo Uninstalling OneDrive .exe file from %SystemRoot%\SysWOW64\ . . . %SystemRoot%\SysWOW64\OneDriveSetup.exe /Uninstall echo. echo Removing directory %UserProfile%\OneDrive . . . RD "%UserProfile%\OneDrive" /S /Q echo. echo Removing directory %LocalAppData%\Microsoft\OneDrive . . . RD "%LocalAppData%\Microsoft\OneDrive" /S /Q echo. echo Removing directory %ProgramData%\Microsoft OneDrive . . . RD "%ProgramData%\Microsoft OneDrive" /S /Q echo. echo Removing directory %SystemDrive%\OneDriveTemp . . . RD "%SystemDrive%\OneDriveTemp" /S /Q echo. echo Deleting OneDrive .lnk Shorcut . . . DEL "%AppData%\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" /S /F /Q echo. echo Deleting REG Key \CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} . . . rem System.IsPinnedToNameSpaceTree REG Delete "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /F echo. echo Deleting REG Key \Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} . . . rem System.IsPinnedToNameSpaceTree REG Delete "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /F echo. echo Adding modified REG Key \CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} . . . rem System.IsPinnedToNameSpaceTree REG ADD "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /V "System.IsPinnedToNameSpaceTree" /D "0" /T REG_DWORD /F echo. echo All processes completed!
Have I left a LOT of important processes out?
Thanks in advance.
This may be pertinent:
Basically, the rd command meant in DOS that a directory had to be empty first, have all the files in it deleted before it could be removed.RD or RMDIR
Main article: rmdir
Remove a directory (delete a directory); by default the directories must be empty of files for the command to succeed.
The command is available in MS-DOS versions 2 and later.[1]
The deltree command in some versions of MS-DOS and all versions of Windows 9x removes non-empty directories.
Some of the DOS commands still work in the Command Prompt and Power Shell window.
List of DOS commandshttps://en.wikipedia.org/wiki/List of DOS commands - Wikipedia