You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListUserMailboxDetails.ps1
+20-12Lines changed: 20 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -178,9 +178,9 @@ function Invoke-ListUserMailboxDetails {
178
178
}
179
179
180
180
# Parse InPlaceHolds to determine hold types if avaliable
181
-
$InPlaceHold=$false
182
-
$EDiscoveryHold=$false
183
-
$PurviewRetentionHold=$false
181
+
$InPlaceHold=$false
182
+
$EDiscoveryHold=$false
183
+
$PurviewRetentionHold=$false
184
184
$ExcludedFromOrgWideHold=$false
185
185
186
186
# Check if InPlaceHolds property exists and has values
@@ -192,10 +192,10 @@ function Invoke-ListUserMailboxDetails {
192
192
}
193
193
# In-Place Hold - no prefix or starts with cld
194
194
# Check if it doesn't match any of the other known prefixes
195
-
elseif (($hold-like'cld*'-or
196
-
($hold-notlike'UniH*'-and
197
-
$hold-notlike'mbx*'-and
198
-
$hold-notlike'skp*'-and
195
+
elseif (($hold-like'cld*'-or
196
+
($hold-notlike'UniH*'-and
197
+
$hold-notlike'mbx*'-and
198
+
$hold-notlike'skp*'-and
199
199
$hold-notlike'-mbx*'))) {
200
200
$InPlaceHold=$true
201
201
}
@@ -240,20 +240,28 @@ function Invoke-ListUserMailboxDetails {
0 commit comments