Skip to content

Commit 2060d1f

Browse files
authored
v3.0.2 (#26)
## <a href="https://github.com/GruberMarkus/Export-RecipientPermissions/releases/tag/v3.0.2" target="_blank">v3.0.2</a> - 2023-02-28 ### Fixed - ExportResourceDelegates was triggered by the ExportAcceptMessagesOnlyFrom parameter, not by ExportResourceDelegates - ExpandGroups did not work because of assuming a wrong datatype which does not support the StartsWith method
1 parent be31c85 commit 2060d1f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ _**Breaking:** Notice about breaking change_
1616
-->
1717

1818

19-
## <a href="https://github.com/GruberMarkus/Export-RecipientPermissions/releases/tag/v3.0.2" target="_blank">v3.0.2</a> - YYYY-MM-DD
19+
## <a href="https://github.com/GruberMarkus/Export-RecipientPermissions/releases/tag/v3.0.2" target="_blank">v3.0.2</a> - 2023-02-28
2020
### Fixed
2121
- ExportResourceDelegates was triggered by the ExportAcceptMessagesOnlyFrom parameter, not by ExportResourceDelegates
22+
- ExpandGroups did not work because of assuming a wrong datatype which does not support the StartsWith method
2223

2324

2425
## <a href="https://github.com/GruberMarkus/Export-RecipientPermissions/releases/tag/v3.0.1" target="_blank">v3.0.1</a> - 2023-01-24

src/Export-RecipientPermissions.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3458,7 +3458,7 @@ try {
34583458
$null = Start-Transcript -LiteralPath $DebugFile -Force
34593459
}
34603460

3461-
Write-Host "Import direct group membership @$(Get-Date -Format 'yyyy-MM-ddTHH:mm:sszzz')@"
3461+
Write-Host "Import security principals @$(Get-Date -Format 'yyyy-MM-ddTHH:mm:sszzz')@"
34623462

34633463
. ([scriptblock]::Create($ConnectExchange))
34643464

@@ -3783,7 +3783,7 @@ try {
37833783
@(
37843784
(
37853785
$(Get-Date -Format 'yyyy-MM-ddTHH:mm:sszzz'),
3786-
'Import Recipients',
3786+
'Import direct group membership',
37873787
'',
37883788
$($_ | Out-String)
37893789
) | ForEach-Object { $_ -replace '"', '""' }) -join '";"'
@@ -7830,7 +7830,7 @@ try {
78307830
# Get and export ResourceDelegates
78317831
Write-Host
78327832
Write-Host "Get and export ResourceDelegates @$(Get-Date -Format 'yyyy-MM-ddTHH:mm:sszzz')@"
7833-
if ($ExportAcceptMessagesOnlyFrom) {
7833+
if ($ExportResourceDelegates) {
78347834
$tempQueue = [System.Collections.Queue]::Synchronized([System.Collections.Queue]::new($AllRecipients.count))
78357835

78367836
foreach ($x in (0..($AllRecipients.count - 1))) {
@@ -9538,7 +9538,7 @@ try {
95389538
foreach ($Member in $Members) {
95399539
$ExportFileLineExpanded = $ExportFileLineOriginal.PSObject.Copy()
95409540

9541-
if ($Member.startswith('NotARecipient:', 'CurrentCultureIgnoreCase')) {
9541+
if ($Member.ToString().startswith('NotARecipient:', 'CurrentCultureIgnoreCase')) {
95429542
$Trustee = $Member -replace '^NotARecipient:', ''
95439543
} else {
95449544
$Trustee = $AllRecipients[$Member]

0 commit comments

Comments
 (0)