SYNOPSIS
Sets the Journal Explosion Leaver Mapping(s) parameters. Runs specific functionality for Journal Explosion Leaver Mappings.
SYNTAX
Set-ASJELeaverMapping [-Core] <ConnectCore> [-JournalExplosionLeaverMappingId] <int[]> [[-FolderNamePolicyId] <int?>] [[-FolderNamePolicyName] <string>] [[-RemoveFolderNamePolicy] <SwitchParameter>] [[-GroupId] <int?>] [[-GroupName] <string>] [[-RemoveGroup] <SwitchParameter>] [[-UserSid] <string>] [[-EnableForImport] <SwitchParameter>] [[-SetAsDistributionList] <SwitchParameter>] [[-MergeByPreviewSMTPAddress] <SwitchParameter>] [[-MergeByJournalExplosionLeaverMappingId] <int?>] [<CommonParameters>]
DESCRIPTION
The Set-ASJELeaverMapping cmdlet sets the Journal Explosion Leaver Mapping(s) parameters. Runs specific functionality for Journal Explosion Leaver Mappings. Add Core parameter in the cmdlet is mandatory. You can specify core as a parameter, or call Connect-ASCore once and the core parameter will be automatically added from the session state.
Example:
Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 10 -FolderNamePolicyId 1 Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 10 -RemoveFolderNamePolicy
Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 15 -GroupId 1 Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 10 -RemoveGroup
Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 10 -SetAsDistributionList Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 14 -EnableForImport
Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 14 -UserSid S-1-5-21-141886343-4149337270-1996687478-3137 |
/* Assigns specified Folder Name Policy to defined Journal Explosion Leaver Mapping */ /* Removes Folder Name Policy from specified Journal Explosion Leaver Mapping */
/* Assigns specified Group to defined Journal Explosion Leaver Mapping */ /* Removes Group from specified Journal Explosion Leaver Mapping */
/* Marks specified Journal Explosion Leaver Mapping as Distribution list */ /* Enables specified Journal Explosion Leaver Mapping for migration */
/* Manual mapping of specified user to specified Journal Explosion Leaver Mapping */ |
Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 5,6 -MergeByJELeaverMappingId 6
Set-ASJELeaverMapping -JournalExplosionLeaverMappingId 5,6 -MergeByPreviewSMTPAddress
Get-ASJELeaverMapping -ContainerMappingId 3 -All | Set-ASJELeaverMapping -MergeByPreviewSMTPAddress
Get-ASJELeaverMapping -All | Set-ASJELeaverMapping -MergeByPreviewSMTPAddress |
/* Merges specified Journal explosion Leaver Mappings into one target SMTP Address taken from specified Journal Explosion Leaver Mapping */ /* Merges specified Journal Explosion Leaver Mappings based on Preview Address */ /* Merges automatically all Journal Explosion Leaver Mappings related to specified Journal Explosion Container Mapping. As a result, there will be multiple leaver mapping groups based on mutual preview addresses */ /* Merges automatically all Journal Explosion Leaver Mappings. As result there will be multiple leaver mapping groups based on mutual preview addresses */ -MergeByPreviewSMTPAddress does not automatically enable mappings for import! IT can be enabled afterwards by running command again with -EnableForImport parameter. |
$email = "asqata-leaver-01@outlook.sk" Get-ASJELeaverMapping -All | Where-Object {$_.OriginalSmtpAddress -eq $email} | ForEach-Object -Begin { $ids = @() } -Process { $ids += $_.JournalExplosionLeaverMappingId } -End { Set-ASJELeaverMapping -JournalExplosionLeaverMappingId $ids -MergeByJELeaverMappingId ($ids | Select-Object -First 1) }
$emails = Get-ASJELeaverMapping -All | Select-Object OriginalSmtpAddress -Unique ForEach ($email in $emails){ Write-Host "email: $($email.OriginalSmtpAddress)" -ForegroundColor Yellow $mapping = Get-ASJELeaverMapping -All | Where-Object {$_.OriginalSmtpAddress -eq $email.OriginalSmtpAddress} | ForEach-Object -Begin { $ids = @() } -Process { $ids += $_.JournalExplosionLeaverMappingId } -End { Set-ASJELeaverMapping -JournalExplosionLeaverMappingId $ids -MergeByJELeaverMappingId ($ids | Select-Object -First 1) } $mapping | Format-Table -AutoSize Write-Host } |
/* Retrieves all Journal Explosion Leaver Mappings with specified original email address and merges it into one mutual target */
/* Retrieves Journal Explosion Leaver Mappings with specified original email address and merges it into one target. This happens in cycle for all original email addresses */ |
SYNOPSIS
Removes the Journal Explosion Leaver Mapping(s).
SYNTAX
Remove-ASJELeaverMapping [-Core] <ConnectCore> [-JournalExplosionLeaverMappingId] <int[]> [<CommonParameters>]
DESCRIPTION
The Remove-ASJELeaverMapping cmdlet removes the Journal Explosion Leaver Mapping(s). Add Core parameter in the cmdlet is mandatory. You can specify core as a parameter, or call Connect-ASCore once and the core parameter will be automatically added from the session state.
Example:
Remove-ASJELeaverMapping -JournalExplosionLeaverMappingId 12 Get-ASJELeaverMapping -ContainerMappingId 2 | Remove-ASJELeaverMapping Get-ASJELeaverMapping -ContainerMappingId 3,4 | Remove-ASJELeaverMapping |
/* Removes Journal Explosion Leaver Mapping based on specified ID */ /* Retrieves all Journal Explosion Leaver Mappings of specified Journal Explosion Container Mapping and removes it */ /* Retrieves all Journal Explosion Leaver Mappings of specified Journal Explosion Container Mappings and removes it */ Mappings already enabled for migration cannot be removed! |
Get-ASJELeaverMapping -All | Remove-ASJELeaverMapping |
/* Retrieves all available Journal Explosion Leaver Mappings in Archive Shuttle database and removes it. Mappings already enabled for migration cannot be removed! */ |
SYNOPSIS
Get detail statistics for Journal Explosion submappings
SYNTAX
Get-ASJEStage1Statistics [-Core] <ConnectCore> [-ContainerMappingId] <int> [<CommonParameters>]
DESCRIPTION
The Get-ASJEStage1Statistics cmdlet gets Stage1 detail statistics of Journal Explosion User sub-mappings. Core parameter in the cmdlet is mandatory. You can specify core as a parameter, or call Connect-ASCore once and the core parameter will be automatically added from the session state.
Example:
Get-ASJEStage1Statistics -ContainerMappingId 1 -All |
/* Retrieves Stage1 statistics of all Journal Explosion User mappings of a specified Container mapping; it is also possible to retrieve stats only for one Container mapping at once (similar to Archive Shuttle UI) */ |
SYNOPSIS
Add new Journal Explosion email address rule.
SYNTAX
Add-ASJEEmailAddressRule [-Core] <ConnectCore> [-Expression] <string> [-ContainerMappingId] <int> [-EnableForImport] <SwitchParameter> [<CommonParameters>]
DESCRIPTION
The Add-ASJEEmailAddressRule cmdlet adds new Journal Explosion Email Address Rule. Core parameter in the cmdlet is mandatory. You can specify core as a parameter, or call Connect-ASCore once and the core parameter will be automatically added from the session state.
Example:
Add-ASJEEmailAddressRule -ContainerMappingId 1 -Expression "*@test.com" |
/* Creates new journal explosion email address rule for specified container mapping*/ |
Add-ASJEEmailAddressRule -ContainerMappingId 1 -Expression "*@test.com" -EnableForImport |
/* Creates new journal explosion email address rule for specified container mapping. Each user mapping created by this rule is automatically enabled for import */ |
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center