Das kannst du mit dem Windows-Tool icacls.
icacls "D:\Shares\Testshare" /remove "DOMAIN\User" /T
Du kannst die Berechtigung mit einem Powershell manuell bearbeiten.
$path = "D:\Shares\Testshare" $user = "DOMAIN\User" # Hauptordner + alle Unterordner holen $folders = Get-ChildItem -Path $path -Recurse -Directory $folders += Get-Item -Path $path # auch den Hauptordner einbeziehen foreach ($folder in $folders) { $acl = Get-Acl $folder.FullName $matches = $acl.Access | Where-Object { $_.IdentityReference -eq $user -and $_.IsInherited -eq $false } if ($matches) { Write-Host "Bearbeite Ordner: $($folder.FullName)" -ForegroundColor Cyan foreach ($match in $matches) { Write-Host " Entferne: $($match.FileSystemRights) ($($match.AccessControlType))" $acl.RemoveAccessRule($match) | Out-Null } try { Set-Acl -Path $folder.FullName -AclObject $acl Write-Host " ? Rechte erfolgreich entfernt" -ForegroundColor Green } catch { Write-Host " ? Fehler beim Setzen der ACL: $_" -ForegroundColor Red } } }