Skip to content

Deleting orphaned folders fails with access denied #29

@bill-long

Description

@bill-long

When ValidateMailEnabledPublicFolders.ps1 produces the MailPublicFolderOrphans.txt file, it provides a command to delete all the folders listed in that file. That command uses DirectoryEntry.DeleteTree(). Unfortunately, that fails in certain permissions configurations, because DeleteTree permissions are different from DeleteChild permissions.

Another way to delete these objects is to call DirectoryEntry.Children.Remove() from the parent container, and this requires less permissions.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions