mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-06-09 07:47:28 +00:00
Added -Recurse for Onedrive Remove-Item command (#4642)
This commit is contained in:
+1
-1
@@ -673,7 +673,7 @@
|
||||
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
|
||||
|
||||
if (-not (Get-ChildItem -Path $Env:OneDrive)) {
|
||||
Remove-Item -Path $Env:OneDrive
|
||||
Remove-Item -Path $Env:OneDrive -Recurse
|
||||
[Environment]::SetEnvironmentVariable('OneDrive', $null, 'User')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user