Skip to content

Commit

Permalink
Merge pull request #454 from microsoft/bilong-consolidatessv
Browse files Browse the repository at this point in the history
SourceSideValidations updates
  • Loading branch information
bill-long authored Apr 13, 2021
2 parents fe456a0 + 102282a commit ff5563f
Show file tree
Hide file tree
Showing 19 changed files with 714 additions and 352 deletions.
42 changes: 42 additions & 0 deletions PublicFolders/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Script|More Info|Download
-|-|-
SourceSideValidations.ps1 | [More Info](https://github.com/microsoft/CSS-Exchange/tree/main/PublicFolders#sourcesidevalidationsps1) | [Download](https://github.com/microsoft/CSS-Exchange/releases/latest/download/SourceSideValidations.ps1)
ValidateMailEnabledPublicFolders.ps1 | [More Info](https://github.com/microsoft/CSS-Exchange/tree/main/PublicFolders#validatemailenabledpublicfoldersps1) | [Download](https://github.com/microsoft/CSS-Exchange/releases/latest/download/ValidateMailEnabledPublicFolders.ps1)

# Public Folder scripts

## [SourceSideValidations.ps1](https://github.com/microsoft/CSS-Exchange/releases/latest/download/SourceSideValidations.ps1)

This script performs pre-migration public folder checks for Exchange 2013, 2016, and 2019. For Exchange 2010, please use previous script found [here](https://www.microsoft.com/en-us/download/details.aspx?id=100414).

### Syntax

Typically, the script should be run with no parameters:

`.\SourceSideValidations.ps1`

### Output

The script will generate one more of the following files, and it will display
examples that show how to use them. Examine the script output for those details.

File Name|Content|Use
-|-|-
IpmSubtree.csv|A subset of properties of all Public Folders|Running with -StartFresh $false loads this file instead of retrieving fresh data
ItemCounts.csv|EntryID and item count of every folder|Running with -StartFresh $false loads this file instead of retrieving fresh data
NonIpmSubtree.csv|A subset of properties of all System Folders|Running with -StartFresh $false loads this file instead of retrieving fresh data
FoldersToMailDisable.txt|Folders that should be mail-disabled, because they are system folders or because their mail objects are missing|Use with the command displayed in the script output to disable them
MailPublicFolderOrphans.txt|Mail objects that are not linked to any existing folder|Use with the command displayed in the script output to delete them
MailPublicFolderDuplicates.txt|Mail objects that point to folders which are linked to some other mail object|Use with the command displayed in the script output to delete them
AddAddressesFromDuplicates.ps1|Commands that add the email addresses from the folders listed in MailPublicFolderDuplicates.txt onto the mail objects currently linked to the folders|Run after deleting the duplicates to preserve the email addresses on the remaining valid mail object
MailDisabledWithProxyGuid.txt|Folders that are mail-disabled but have a mail object stamped on them|Pipe to Enable-MailPublicFolder using the syntax example shown in the script output to enable these
MailPublicFoldersDisconnected.txt|Mail objects that correspond to a valid, but mail-disabled, folder|These must be examined and corrected manually
BadDumpsterMappings.txt|Folders with invalid dumpster mappings|These folders can be deleted or the -ExcludeDumpsters switch can be used to skip the dumpsters during migration
TooManyChildFolders.txt|Folders that have too many child folders|Examine the list and manually reduce the number of child folders
PathTooDeep.txt|Folders that exceed the path depth limit|Examine the list and reduce the depth of these paths by moving or deleting folders
TooManyItems.txt|Folders that have too many items|Examine the list and manually reduce the number of items in these folders
InvalidPermissions.csv|Any invalid ACEs that were found|Use with -RemoveInvalidPermissions parameter to remove these

## [ValidateMailEnabledPublicFolders.ps1](https://github.com/microsoft/CSS-Exchange/releases/latest/download/ValidateMailEnabledPublicFolders.ps1)

This script performs pre-migration checks on mail-enabled folders on Exchange 2010 and up. Note that these checks are also included in the new SourceSideValidations.ps1 shown above for 2013 and up.
21 changes: 0 additions & 21 deletions PublicFolders/RemoveInvalidPermissions.ps1

This file was deleted.

55 changes: 0 additions & 55 deletions PublicFolders/SourceSideValidations/Get-ItemCount.ps1

This file was deleted.

70 changes: 0 additions & 70 deletions PublicFolders/SourceSideValidations/Get-NonIpmSubtree.ps1

This file was deleted.

178 changes: 0 additions & 178 deletions PublicFolders/SourceSideValidations/SourceSideValidations.ps1

This file was deleted.

Loading

0 comments on commit ff5563f

Please sign in to comment.