eDiscovery hold policy error

Aase Nomad 246 Reputation points
2022-07-23T01:32:28.59+00:00

I have a Hold name call "Hold Holden Divesture1" inside "Teams" case in eDiscovery Standard. I have a powershell script that supposed to add multiple sites inside the eDiscovery Hold but some reason I'm getting this error every time after I added the first one. Any idea how should I handle this so that I can run my script and add multiple sites on hold with out getting this error?.

Set-CaseHoldPolicy -Identity $eDiscoveryHoldName -AddExchangeLocation $teamUG.PrimarySmtpAddress -AddSharePointLocation $teamSPOUrl -Force
Set-CaseHoldRule -Identity $eDiscoveryHoldName -Confirm:$false

223850-image.png

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,473 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 44,776 Reputation points
    2022-07-23T15:30:39.77+00:00

    It looks to me that your policy hasn't yet completed deployment before you make a modification to it.

    The -AddExchangeLocation and -AddSharePointLocation properties are both capable of taking multiple values. Maybe you should be accumulating the complete set of values and set the policy only once?

    I'm neither an Exchange or Azure SME. Adding an "Office-Exchange-Online-ITPro" (or something similar) would engage an appropriate SME.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful