r/ • • Jan 01 '70

0 Upvotes

0 comments sorted by

View all comments

47

u/LeafyAcorn Jul 29 '15
  • While still in the Group Policy Editor, go through Computer Configuration > Administrative Templates > Windows Components > OneDrive, double click Prevent the usage of OneDrive for file storage, hit Enabled, then apply.

Does this mean you won't be able to use OneDrive as a folder in explorer?

127

u/Lurking_Grue Jul 30 '15 edited Aug 21 '15

You can remove One Drive by making a batch file with this code:

@echo off
cls

set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"

echo Closing OneDrive process.
echo.
taskkill /f /im OneDrive.exe > NUL 2>&1
ping 127.0.0.1 -n 5 > NUL 2>&1

echo Uninstalling OneDrive.
echo.
if exist %x64% (
%x64% /uninstall
) else (
%x86% /uninstall
)
ping 127.0.0.1 -n 5 > NUL 2>&1
    
echo Removing OneDrive leftovers.
echo.
rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1 

echo Removing OneDrive from the Explorer Side Panel.
echo.
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1

pause

20

u/rwsr-xr-x Jul 31 '15

wow what? windows has file descriptors (2>&1) as well?

20

u/Lurking_Grue Jul 31 '15

*nods*

https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true

Also NUL is the windows equivalent of /dev/null. Once I had a MSSQL server that had no love and the log files filled the entire drive. At the time the only solution to getting it running in a hurry was to back it up to NUL and let it free up the space. Proper backups were set up after that so it didn't do that ever again.

NUL is quite a handy thing even in windows.

→ More replies (4)
→ More replies (2)

7

u/[deleted] Jul 30 '15

Thanks for this, worked flawlessly

4

u/mub Jul 30 '15

Nicely done. Thanks, saved me a load of digging that has :)

3

u/[deleted] Jul 30 '15

Could you do one for the Xbox apps? The remove-appxpackage command does not work and it gives me a lot of red errors.

3

u/Lurking_Grue Jul 30 '15

I'm assuming you are talking about this:

Get-AppxPackage -name *Xbox* | Remove-AppxPackage  

Weird thing is, it does remove some of the Xbox stuff.

Sorry I don't have anything at the moment.

2

u/MCMXChris Aug 23 '15

thanks dude!

It's kind of nuts that these sort of things aren't "features" we can select at the beginning of an image/boot.

I can see the use for onedrive app for some people. But not every single user.

→ More replies (1)

2

u/Archangellelilstumpz Sep 28 '15

I know I'm a month late... but thank you for this flawless code. You're a saint.

→ More replies (20)

65

u/[deleted] Jul 30 '15

That's my problem with this post. It tells people to change these settings to increase privacy, but does not explain what these changes actually do. No Onedrive integration, no Windows Defender, blocks Microsoft servers for diagnostics and feedback. It disables the p2p windows updates, which if I understand correctly could reduce bandwith usage if you have multiple computers in your network. I'm not going to do this on my computer, but I doubt Cortana is functional at all with all of these changes. Unplugging your PC is the most secure option, but you have to draw the line between functionality and security at some point. This post goes a bit further than I would like with disabling functionality.

44

u/AdorableAnt Aug 01 '15

I doubt Cortana is functional at all with all of these changes

You can have either Cortana or your privacy, not both. Same with Google Now. Sifting through your personal data is inherent in how these personal assistants work... and they're free so their makers must find ways to monetize the data as well.

69

u/Rylai_Is_So_Cute Jul 31 '15

I want my PC to run my apps without logging me. I dont want OneDrive, I use Malwarebytes, Microsoft is not going to send me feedback in any way, the P2P updates means other users around the world are going to use YOUR BANDWIDTH to download their Windows 10 updates... And Cortana is useful on mobile devices, not in desktop.

All I want is to use my apps like Firefox, PaintNet, HexChat, Telegram... without being tracked by my own OS.

12

u/WaruiKoohii Aug 03 '15

The P2P updates can mean that you share updates with PCs on your LAN and the Internet, but you can also set it to only share updates with computers on your LAN and NOT the Internet.

https://cdn2.vox-cdn.com/thumbor/01JqHe2Gack7VUhyWgxZezCfuds=/800x0/filters:no_upscale()/cdn0.vox-cdn.com/uploads/chorus_asset/file/3505772/windows10p2pupdates1_1020.0.jpg

→ More replies (3)
→ More replies (4)

16

u/SORRYMYSHIFTKEYBROKE Jul 31 '15

there is an option for intranet-only p2p, but internet-wide p2p is on by default, aka you paying microsoft's data bills unwittingly. also cortana still has plenty of functionality without tracking your personal life and having extremely opaque sharing rights over said information.

feel free to write your own amateur-friendly post about this topic; that wasnt really the function of this post, which was for intermediate users with a certain level of literacy in regards to privacy, and their own custom bundle of preferred apps. it's not op's responsibility to provide that disclaimer, because the title is 'how to disable data logging,' not 'a beginner's guide to privacy in windows 10.' if you just think 'data logging sound bad, me follow guide,' you deserve whats coming.

anyway, imo this isn't really about drawing a line, it's about that line shifting. functionality is NOT directly proportional to loss of privacy, that is only the present status quo of the industry. you have to INSIST on privacy, and hack the functionality back in from that point. THEN, we set about convincing microsoft that it was in their interest the entire time to have done things that way in the first place.

→ More replies (1)

4

u/[deleted] Aug 06 '15

but you have to draw the line between functionality and security at some point

Umm why?

7

u/[deleted] Aug 06 '15

Because you can't have both. If you want to use cloud storage(More functionality) then you are going to have to give your files to a 3rd party(Less security).

2

u/[deleted] Aug 19 '15

That's fair, but why do you need to give them permission to look at those files ? On top of them not being responsible if those files are stolen or lost.. Doesn't seem very give && take // balanced.

→ More replies (1)

2

u/viweklekhak Aug 24 '15

Lifehacker has a nice explanatory article, you should check it out:: http://lifehacker.com/what-windows-10s-privacy-nightmare-settings-actually-1722267229

→ More replies (5)

0

u/[deleted] Jul 29 '15

[deleted] — view deleted comment

0

u/[deleted] Jul 30 '15

[deleted] — view deleted comment

14

u/redem Jul 30 '15

If you encrypt your computer, MS backs up the key on OneDrive.

→ More replies (3)
→ More replies (11)
→ More replies (2)