mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-10 01:51:18 +10:00
Merge branch 'main' of https://github.com/ChrisTitusTech/winutil
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
"WPFTweaksTelemetry"
|
"WPFTweaksTelemetry"
|
||||||
],
|
],
|
||||||
"Advanced": [
|
"Advanced": [
|
||||||
|
"WPFTweaksRestorePoint",
|
||||||
"WPFTweaksActivity",
|
"WPFTweaksActivity",
|
||||||
"WPFTweaksConsumerFeatures",
|
"WPFTweaksConsumerFeatures",
|
||||||
"WPFTweaksDisableExplorerAutoDiscovery",
|
"WPFTweaksDisableExplorerAutoDiscovery",
|
||||||
|
|||||||
+4
-4
@@ -650,7 +650,7 @@
|
|||||||
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
||||||
|
|
||||||
Write-Host \"Uninstalling OneDrive...\"
|
Write-Host \"Uninstalling OneDrive...\"
|
||||||
Start-Process 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
Start-Process '$Env:SystemRoot\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
||||||
|
|
||||||
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
||||||
Write-Host \"Removing leftover OneDrive Files...\"
|
Write-Host \"Removing leftover OneDrive Files...\"
|
||||||
@@ -658,7 +658,7 @@
|
|||||||
Stop-Process -Name FileCoAuth,Explorer
|
Stop-Process -Name FileCoAuth,Explorer
|
||||||
|
|
||||||
Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force
|
Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force
|
||||||
Remove-Item \"C:\\ProgramData\\Microsoft OneDrive\" -Recurse -Force
|
Remove-Item \"$Env:ProgramData\\Microsoft OneDrive\" -Recurse -Force
|
||||||
|
|
||||||
# Grant back permission to access OneDrive folder
|
# Grant back permission to access OneDrive folder
|
||||||
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
||||||
@@ -966,7 +966,7 @@
|
|||||||
],
|
],
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"
|
||||||
$RazerPath = \"C:\\Windows\\Installer\\Razer\"
|
$RazerPath = \"$Env:SystemRoot\\Installer\\Razer\"
|
||||||
|
|
||||||
if (Test-Path $RazerPath) {
|
if (Test-Path $RazerPath) {
|
||||||
Remove-Item $RazerPath\\* -Recurse -Force
|
Remove-Item $RazerPath\\* -Recurse -Force
|
||||||
@@ -979,7 +979,7 @@
|
|||||||
],
|
],
|
||||||
"UndoScript": [
|
"UndoScript": [
|
||||||
"
|
"
|
||||||
icacls \"C:\\Windows\\Installer\\Razer\" /remove:d Everyone
|
icacls \"$Env:SystemRoot\\Installer\\Razer\" /remove:d Everyone
|
||||||
"
|
"
|
||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/razerblock"
|
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/razerblock"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ description: ""
|
|||||||
],
|
],
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"
|
||||||
$RazerPath = \"C:\\Windows\\Installer\\Razer\"
|
$RazerPath = \"$Env:SystemRoot\\Installer\\Razer\"
|
||||||
|
|
||||||
if (Test-Path $RazerPath) {
|
if (Test-Path $RazerPath) {
|
||||||
Remove-Item $RazerPath\\* -Recurse -Force
|
Remove-Item $RazerPath\\* -Recurse -Force
|
||||||
@@ -40,7 +40,7 @@ description: ""
|
|||||||
],
|
],
|
||||||
"UndoScript": [
|
"UndoScript": [
|
||||||
"
|
"
|
||||||
icacls \"C:\\Windows\\Installer\\Razer\" /remove:d Everyone
|
icacls \"$Env:SystemRoot\\Installer\\Razer\" /remove:d Everyone
|
||||||
"
|
"
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ description: ""
|
|||||||
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
||||||
|
|
||||||
Write-Host \"Uninstalling OneDrive...\"
|
Write-Host \"Uninstalling OneDrive...\"
|
||||||
Start-Process 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
Start-Process '$Env:SystemRoot\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
||||||
|
|
||||||
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
||||||
Write-Host \"Removing leftover OneDrive Files...\"
|
Write-Host \"Removing leftover OneDrive Files...\"
|
||||||
@@ -23,7 +23,7 @@ description: ""
|
|||||||
Stop-Process -Name FileCoAuth,Explorer
|
Stop-Process -Name FileCoAuth,Explorer
|
||||||
|
|
||||||
Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force
|
Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force
|
||||||
Remove-Item \"C:\\ProgramData\\Microsoft OneDrive\" -Recurse -Force
|
Remove-Item \"$Env:ProgramData\\Microsoft OneDrive\" -Recurse -Force
|
||||||
|
|
||||||
# Grant back permission to access OneDrive folder
|
# Grant back permission to access OneDrive folder
|
||||||
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
||||||
|
|||||||
Reference in New Issue
Block a user