Gathering Change Auditor system information
You can gather Change Auditor system information to help you to manage your installation components.
Get-CACoordinator
Example: Gather coordinator information for a specified connection Example: Gather coordinator information for a specified connection, when using certificate authentication $connection = Connect-CAClient -Credential $creds
Get-CACoordinator -Connection $connection
Get-CACoordinators
Use this command to gather information about all the coordinators in a Change Auditor installation.
Example: Gather coordinator information for all coordinators for a specified connection Get-CACoordinators -Connection $connection
Example: Gather coordinator information for all coordinators for a specified connection, when using certificate authentication $connection = Connect-CAClient -Credential $creds
Get-CACoordinators -Connection $connection
Get-CAInstallation
Example: Gather installation information for a specified connection Get-CAInstallation -Connection $connection
Get-CAAgents
Use this command to view information on all available (and optionally uninstalled) agents.
Table 13. Available parameters
A connection obtained by using the Connect-CAClient command.
Adds uninstalled agents to the list of agents returned from this command.
Example: Viewing all available and unistalled agents within a specific installation
Deploying Change Auditor agents
The following commands are available to manage your agent deployments.
Install-CAAgent
Use this command to install an agent.
Table 14. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Install an agent Ping-CAAgent
Use this command to ensure that the coordinator and agent can communicate using WCF framework.
Table 15. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Test the communication between an agent and coordinator
Ping-CAAgent -Connection $connection -AgentInfo $agentinfo
Uninstall-CAAgent
Use this command to uninstall an agent.
Table 16. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Uninstall an agent Update-CAAgent
Use this command to upgrade an agent.
Table 17. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Upgrade an agent Update-CAAgent -Connection $connection -Agent $agent -Credential $credential
Update-CAAgentConfigurations
Table 18. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Update an agent configuration Update-CAAgentConfigurations -Connection $connection -Agents $agent
Set-CAAgentConfiguration
Use this command to assign an auditing configuration to an agent.
Table 19. Available parameters
A connection obtained by using the Connect-CAClient command.
The configuration obtained by a previous call to Get-CAConfigurations.
Example: Update an agent configuration Set-CAAgentConfiguration -Connection $connection -Agents $agent -Configuration
$configurationGet-CAAgentSubsystems
Use this command to see the list of subsystems included in an agent‘s configuration.
Table 20. Available parameters
Example: See a list of all subsystems included in an agent‘s configuration Get-CAAgentSubsystems -AgentInfo $agentinfo
Enable-CAAgentTemplate
Use this command to enable a template.
Table 21. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Enable a template Enable-CAAgentTemplate -Connection $connection -Template $template
Disable-CAAgentTemplate
Use this command to disable a template.
Table 22. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Disable a template Disable-CAAgentTemplate -Connection $connection -Template $template
Remove-CAAgentTemplate
Use this command to remove a template.
Table 23. Available parameters
A connection obtained by using the Connect-CAClient command.
Remove-CAAgentTemplate -Connection $connection -Template $template -credential $credential
New-CAConfiguration
Use this command to create an agent configuration.
Table 24. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Create an agent configuration
New-CAConfiguration -Connection $connection -ConfigurationName $configurationName
Get-CAConfigurations
Use this command to get list of all agent configurations for a deployment.
Table 25. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: See a list of all agent configurations
Get-CAConfigurations -Connection $connection
Set-CAConfiguration
Table 26. Available parameters
Example: Update the port used to communicate with the agent
Set-CAConfiguration –Connection $connection –Configuration $configurationObject –Port $port
Example: Update the configuration to allow for cloud-based auditing
Remove-CAConfiguration
Use this command to remove an existing agent configuration.
Table 27. Available parameters
A connection obtained by using the Connect-CAClient command.
Remove-CAConfiguration -Connection $connection -Configuration $configuration
Managing auditing templates
Add-CATemplateToConfiguration
Use this command to assign an auditing template to a Change Auditor configuration.
Table 28. Available parameters
A connection obtained by using the Connect-CAClient command.
The configuration to which to add a template. Use Get-CAConfigurations to obtain the configuration object.
The templates to apply to the configuration. Use Get-CAConfigurationTemplates to obtain the templates.
Example: Assign a template to a configuration
Get-CAConfigurationTemplates
Use this command to get a list of all templates in the installation.
Table 29. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Get a list of all templates in the installation
Get-CAConfigurationTemplates -Connection $connection
Get-CATemplatesInConfiguration
Use this command to get a list of the templates that are assigned to a configuration.
Table 30. Available parameters
A connection obtained by using the Connect-CAClient command.
Use Get-CAConfigurations to obtain the configuration object.
Example: Get a list of all templates assigned to a configuration
Get-CATemplatesInConfiguration -Connection $connection -Configuration $configuration
Remove-CATemplatesFromConfiguration
Use this command to remove templates from a configuration.
Table 31. Available parameters
A connection obtained by using the Connect-CAClient command.
The configuration from which to remove a template. Use Get-CAConfigurations to obtain the configuration object.
The templates to remove from the configuration. Use Get-CAConfigurationTemplates to obtain the templates.
Example: Remove a template from a configuration
Remove-CATemplatesFromConfiguration -Connection $connection -Connection $connection
-Configuration $configuration
Working with searches
When using the commands, consider the following:
Restricted access to private searches and folders for:
The following commands are available to manage searches:
Invoke-CASearch
Use this command to run a search.
Table 32. Available parameters
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.
Example: Running a search and limit the display to 10 events $connection = Connect-CAClient -InstallationName 'DEFAULT"
$search = Get-CASearches $connection | ? {$_.Name -eq "All Events"}
Invoke-CASearch -Connection $connection -Search $search -limit 10
Get-CASearches
Table 33. Available parameters
A connection obtained by using the Connect-CAClient command.
Example: Viewing all available searches within a specific installation Example: Viewing a specific search Get-CASearches $connection | ? {$_.Name -eq "All AD Queries in the last 30 days"}
Get-CASearchDefinition
Table 34. Available parameters
A connection obtained by using the Connect-CAClient command.
The search info object obtained from the Get-CASearches command.
Example: Getting the definition of a search with the name “All Events” and writing it to a file at the directory “C:\definitions\All Events.xml” $connection = Connect-CAClient –InstallationName ‘DEFAULT’
$xmlString.Save(“C:\definitions\All Events.xml”)
Set-CASearchProperties
Example: Changing the display name of a search, set the default folder path and limit $connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ?{$_.Name –eq “All Owner Mailbox Events”}
Example: Import a .csv file of Active Directory objects
$connection=Connect-CAClient -InstallationName 'Default'
$search = Get-CASearches $connection | ? {$_.Name -eq "All My Events"}