This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to import Search including Alert template with Powershell?

I am running the following command but is not importing my custom alert:

$searchDefinition = Get-Content "C:\Definitions\Search.xml"

Add-CASearch –Connection $connection –XmlSearchDefinition $searchDefinition –IsPublic –Path "Shared\Test" –Name “Custom Search” -PassThru

If I do this with GUI imports everything. Any suggestions?