When using the commands, consider the following:
The following commands are available to manage searches:
Use this command to run a search.
A connection obtained by using the Connect-CAClient command. | |
The search to run. Use Get-CASearches to find the PSCASearchInfo object required to identify the search. | |
$connection = Connect-CAClient -InstallationName 'DEFAULT"
$search = Get-CASearches $connection | ? {$_.Name -eq "All Events"}
Invoke-CASearch -Connection $connection -Search $search -limit 10
A connection obtained by using the Connect-CAClient command. |
Get-CASearches $connection | ? {$_.Name -eq "All AD Queries in the last 30 days"}
A connection obtained by using the Connect-CAClient command. | |
The search info object obtained from the Get-CASearches command. |
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$xmlString.Save(“C:\definitions\All Events.xml”)
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ?{$_.Name –eq “All Owner Mailbox Events”}
$connection=Connect-CAClient -InstallationName 'Default'
$search = Get-CASearches $connection | ? {$_.Name -eq "All My Events"}
Use this command to copy a search in the installation.
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ? {$_.Name –eq “New Search for Employee”}
Use this command to create a search in the installation.
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$searchDefinition = Get-Content C:\Users\Admin\Documents\MySearchDefinition.xml
Use this command to move a search from one folder path to another in the installation.
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ? {$_.Name –eq “All AD Queries in the last 30 days”}
Use this command to remove a public or private search from the installation.
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ? {$_.Name –eq “All Exchange Admin Events”}
Remove-CASearch $connection –Search $search
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
Remove-CASearch $connection –Search $search
Use this command to create a search folder in the installation.
A connection obtained by using the Connect-CAClient command. | |
A switch that specifies if the search is public. The default is private. | |
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
Add-CASearchFolder –Connection $connection –IsPublic –Path Shared\Searches\New
Use this command to remove a public or private folder from the installation.
A connection obtained by using the Connect-CAClient command. | |
An optional parameter that removes the prompt before a search is removed. |
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
Remove-CASearchFolder $connection –IsPublic –Path Shared\Miscellaneous\OldSearches
Managing Active Directory database auditing is available through the following PowerShell commands:
Use this command to create an Active Directory Database auditing template.
A connection obtained by using the Connect-CAClient command. | |
The list of processes to exclude from auditing. The default is none. |
A connection obtained by using the Connect-CAClient command. | |
Get-CAADDatabaseTemplates -Connection $connection
Use this command to delete an Active Directory Database auditing template.
A connection obtained by using the Connect-CAClient command. | |
The CAADDatabaseTemplate object to remove. Obtain the template objects using the Get-CAADDatabaseTemplates command and filter to select the object to remove. | |
Removes template without prompting for a confirmation. The default is false. |
Remove-CAADDatabaseTemplate -Connection $connection -Template $removeTemplate
Use this command to modify an Active Directory Database auditing template.
The following commands are available to manage Active Directory Database protection:
Use this command to create an Active Directory Database protection template.
A connection obtained by using the Connect-CAClient command. | |
The list of processes to exclude from protectoin. The default is none. |
New-CAADDProtectionTemplate -Connection $connection -TemplateName TemplateSample
Use this command to modify an Active Directory Database protection template.
A connection obtained by using the Connect-CAClient command. | |
The CAADDProtectionTemplate object to edit. Obtain the template objects using the Get-CAADDProtectionTemplates command and filter to select the object to update. | |
The list of processes to exclude from protectoin. The default is none. |
A connection obtained by using the Connect-CAClient command. | |
Get-CAADDProtectionTemplates -Connection $connection
Use this command to remove an Active Directory Database protection template.
A connection obtained by using the Connect-CAClient command. | |
The PSCAProtectionTemplate object to remove. Obtain the template objects using the Get-CAADDatabaseTemplates command and filter to select the object to remove. | |
Remove-CAADProtectionTemplate -Connection $connection -Template $template
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center