This repository has been archived on 2024-09-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
win10-privacy-script/modules.d/UninstallOnedrive.conf

83 lines
2 KiB
Text

{
"name" : "Uninstall One Drive",
"description" : "This module Uninstall Onedrive",
"actions" : [
{
"action" : "KillProcess",
"name" : "onedrive"
},
{
"action" : "KillProcess",
"name" : "git"
},
{
"_comment" : "OneDrive Uninstaller x64 version",
"action" : "ExecCommand",
"path" : "$env:systemroot\\SysWOW64\\OneDriveSetup.exe",
"arguments" : "/uninstall"
},
{
"_comment" : "OneDrive Uninstaller x86 version",
"action" : "ExecCommand",
"path" : "$env:systemroot\\System32\\OneDriveSetup.exe",
"arguments" : "/uninstall"
},
{
"action" : "DelFile",
"path" : "$env:localappdata\\Microsoft\\OneDrive",
"recurse" : "True"
},
{
"action" : "DelFile",
"path" : "$env:programdata\\Microsoft OneDrive",
"recurse" : "True"
},
{
"action" : "DelFile",
"path" : "$env:systemdrive\\OneDriveTemp",
"recurse" : "True"
},
{
"action" : "AddRegKey",
"value" : "1",
"key" : "DisableFileSyncNGSC",
"path" : "HKLM:\\Software\\Policies\\Microsoft\\Windows\\OneDrive",
"type" : ""
},
{
"action" : "AddRegKey",
"value" : "1",
"key" : "DisableFileSync",
"path" : "HKLM:\\Software\\Policies\\Microsoft\\Windows\\OneDrive",
"type" : ""
},
{
"action" : "AddRegKey",
"value" : "0300000021B9DEB396D7D001",
"key" : "OneDrive",
"path" : "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\StartupApproved\\Run",
"type" : "Binary"
},
{
"action" : "AddRegKey",
"value" : "0",
"key" : "System.IsPinnedToNameSpaceTree",
"path" : "HKCR:\\Wow6432Node\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}",
"type" : ""
},
{
"action" : "AddRegKey",
"value" : "0",
"key" : "System.IsPinnedToNameSpaceTree",
"path" : "HKCR:\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}",
"type" : ""
},
{
"_comment" : "Prevent Onedrive installation for new created user",
"action" : "DelRegKey",
"key" : "OneDriveSetup",
"path" : "HKU:\\Default\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"
}
]
}