board logo
Posted by: berkscompsltd - 22 May 2024 12:39:54
Exporting from Search Console: Client Error The parameter Scenario is not a valid URL option for the cmdlet New-ComplianceSearchAction. Parameter name: parameter I think I have all the permissions now - do I just need to give it time to go through?

Posted by: sirclesadmin - 22 May 2024 13:36:23
If you are encountering an error while trying to export content from a Microsoft 365 tenancy using Content Search despite being an eDiscovery Manager and Administrator, there are a few steps you can take to troubleshoot and resolve the issue: Step 1: Verify Permissions Ensure that your account has the necessary permissions to perform the export. Being an eDiscovery Manager and Administrator should typically suffice, but double-check that all required roles are assigned. eDiscovery Manager Role: Make sure you are a member of the eDiscovery Manager role group. This can be done in the Security & Compliance Center under Permissions. Navigate to https://compliance.microsoft.com/permissions. Check if your account is listed under eDiscovery Manager or eDiscovery Administrator. Export Role: Ensure that you have the Export role. Sometimes, the Export role needs to be explicitly assigned. Go to https://compliance.microsoft.com/permissions. Select the eDiscovery Manager role group. Make sure the Export role is included in the role group and that your account is a member. Step 2: Check Access to the Compliance Center Ensure you have proper access to the Microsoft Compliance Center where the Content Search tool resides. Go to https://compliance.microsoft.com/. Verify that you can access the Compliance Center without any errors. Step 3: Browser and Network Issues Sometimes, browser issues or network configurations can cause problems. Try the following: Clear Browser Cache: Clear your browser's cache and cookies. Try accessing the Compliance Center using an incognito or private browsing window. Use a Different Browser: Try using a different web browser to see if the issue persists. Check Network Configuration: Ensure that your network does not block any necessary URLs or ports required for accessing Microsoft 365 services. Step 4: Export Process Follow the correct steps to perform the export: Perform Content Search: Go to https://compliance.microsoft.com/contentsearch. Create and run your content search query. Export the Results: After the search completes, select the search and click on Export results. Configure your export options and start the export. Download the Export: Once the export is ready, download the export results using the provided link and the eDiscovery Export Tool. Step 5: Check for Known Issues and Updates Sometimes, Microsoft may have known issues or updates related to the Compliance Center and eDiscovery functionalities. Microsoft 365 Service Health: Check the Microsoft 365 Service Health Dashboard for any ongoing issues or maintenance activities that might affect your ability to export data. Microsoft Documentation: Refer to the official Microsoft documentation on Content Search and eDiscovery for any updates or troubleshooting tips. Step 6: Contact Microsoft Support If the issue persists despite following the above steps, consider reaching out to Microsoft Support for assistance. Provide them with the details of the error and the steps you have already taken to troubleshoot the issue. By following these steps, you should be able to resolve the issue and successfully export content from your Microsoft 365 tenancy using Content Search.

Posted by: berkscompsltd - 22 May 2024 13:55:09
In the end it just started working after about an hour... Be patient my friends!

Posted by: drdread - 06 December 2024 08:49:59
I had to remove myself from ediscovery admin and just leave myself as ediscovery manager and then log out of all sessions, close edge and then log back in. it seems now that we have moved to pureview the old ediscovery admin curse ia back

Posted by: drdread - 05 February 2025 00:49:32

The error message:

"Client Error: The parameter Scenario is not a valid URL option for the cmdlet New-ComplianceSearchAction. Parameter name: parameter"

suggests that the New-ComplianceSearchAction cmdlet is being used incorrectly in Microsoft Purview Compliance (formerly Security & Compliance Center in Microsoft 365).


Possible Causes & Solutions

1. Incorrect Syntax

Ensure you're using the correct syntax. The Scenario parameter is not a valid parameter for New-ComplianceSearchAction.

✅ Correct Example:
New-ComplianceSearchAction -SearchName "YourSearchName" -Purge -PurgeType HardDelete

or

New-ComplianceSearchAction -SearchName "YourSearchName" -Export

If you mistakenly included a -Scenario parameter, remove it, as it's not valid.


2. Incorrect PowerShell Module or Connection

Ensure you're using the correct PowerShell module (ExchangeOnlineManagement).

Reconnect to Microsoft Purview Compliance Center:

Connect-IPPSSession

Then try running the command again.


3. Verify Your Compliance Search Name

Check if the search exists:

Get-ComplianceSearch

If your search name is missing, create a new compliance search before executing the New-ComplianceSearchAction command.

Create a Compliance Search

New-ComplianceSearch -Name "TestSearch" -ExchangeLocation All -ContentMatchQuery 'subject:"Confidential"'
Start-ComplianceSearch -Identity "TestSearch"

After completion:

New-ComplianceSearchAction -SearchName "TestSearch" -Purge -PurgeType HardDelete

Final Steps

  • Remove the -Scenario parameter from your command.
  • Ensure the compliance search exists before running an action on it.
  • Reconnect to Microsoft 365 compliance PowerShell if needed.

Let me know if the issue persists! 🚀


Posted by: Lemonde - 16 April 2025 21:40:40
[quote=drdread;6262]I had to remove myself from ediscovery admin and just leave myself as ediscovery manager and then log out of all sessions, close edge and then log back in. it seems now that we have moved to pureview the old ediscovery admin curse ia back[/quote] Worked for me!