ChangeAuditor 7.0 PowerShellCommandGuide PDF
ChangeAuditor 7.0 PowerShellCommandGuide PDF
0
PowerShell Command Guide
© 2019 Quest Software Inc.
ALL RIGHTS RESERVED.
This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a
software license or nondisclosure agreement. This software may be used or copied only in accordance with the terms of the
applicable agreement. No part of this guide may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying and recording for any purpose other than the purchaser’s personal use without the written
permission of Quest Software Inc.
The information in this document is provided in connection with Quest Software products. No license, express or implied, by
estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Quest
Software products. EXCEPT AS SET FORTH IN THE TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE
AGREEMENT FOR THIS PRODUCT, QUEST SOFTWARE ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY
EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO
EVENT SHALL QUEST SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR
INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS
INTERRUPTION OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN
IF QUEST SOFTWARE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Quest Software makes no
representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the
right to make changes to specifications and product descriptions at any time without notice. Quest Software does not make any
commitment to update the information contained in this document.
If you have any questions regarding your potential use of this material, contact:
Quest Software Inc.
Attn: LEGAL Dept.
4 Polaris Way
Aliso Viejo, CA 92656
Refer to our website (https://www.quest.com) for regional and international office information.
Patents
Quest Software is proud of our advanced technology. Patents and pending patents may apply to this product. For the most
current information about applicable patents for this product, please visit our website at https://www.quest.com/legal.
Trademarks
Quest, the Quest logo, and Join the Innovation are trademarks and registered trademarks of Quest Software Inc. For a complete
list of Quest marks, visit https://www.quest.com/legal/trademark-information.aspx. All other trademarks and registered trademarks
are property of their respective owners.
Legend
CAUTION: A CAUTION icon indicates potential damage to hardware or loss of data if instructions are not followed.
IMPORTANT NOTE, NOTE, TIP, MOBILE, or VIDEO: An information icon indicates supporting information.
PowerShell Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Adding the PowerShell module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Viewing available commands and help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Installing Change Auditor coordinators and web clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Install-CACoordinator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Install-CAWebClient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Install-CALicense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Setting the master time zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Set-CAScheduleMasterTimeZone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Get-CAScheduleMasterTimeZone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Finding Change Auditor installations and coordinators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Find-CAInstallations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Find-CACoordinators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Find-CASuitableCoordinator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Connecting to and disconnecting from Change Auditor installations and coordinators . . . . . 12
Connect-CAClient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Disconnect-CAClient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Managing client authentication options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Get-CAAuthenticationOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Set-CAAuthenticationOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Gathering Change Auditor system information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Get-CACoordinator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Get-CACoordinators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Get-CAInstallation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Get-CAAgents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Deploying Change Auditor agents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Install-CAAgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Ping-CAAgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Uninstall-CAAgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Update-CAAgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Update-CAAgentConfigurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Set-CAAgentConfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Get-CAAgentSubsystems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Enable-CAAgentTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Disable-CAAgentTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Remove-CAAgentTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
New-CAConfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Get-CAConfigurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Set-CAConfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Remove-CAConfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Managing auditing templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Add-CATemplateToConfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Get-CAConfigurationTemplates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
About us . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
NOTE: Sample scripts are available in the Change Auditor client folder. By default they are located here:
C:\Program Files\Quest\ChangeAuditor\Client\PowerShell Sample Scripts
Install-CACoordinator
Use this command to install locally a Change Auditor Coordinator.
Table 1. Available parameters
Parameter Description
-MsiPath The location to find the coordinator MSI file. The coordinator is installed
using this installer.
-SQLAuthDatabaseCredential Credentials to use for the coordinator to access the SQL Server. Specify
when the coordinator should use SQL Authentication mode.
-DatabaseCredential Credentials to use for the coordinator to access the SQL Server. Specify
when the coordinator should use Windows Authentication mode. These
credentials must be a valid set of Windows credentials.
-DatabaseServer The SQL Server to host the database.
-LogPath The local path on the computer where the installation log is written.
-AgentPort (Optional) The static port for Change Auditor 6.x agents to communicate with the
coordinator.
-ClientPort (Optional) The static port for the Change Auditor client to communicate with the
coordinator.
-SDKPort (Optional) The static port used by external applications to access the coordinator
Install-CAWebClient
Use this command to install locally the web client.
Parameter Description
-LogPath The local path on the computer where the installation log is written.
-MsiPath The location to find the web client MSI file. The web client is installed using
this installer.
-CoordinatorConnection (Optional) A previously created connection from Connect-CAClient.
-SiteName (Optional) The web site name for the Change Auditor web client.
-SitePort (Optional) A unique port for the web site to avoid conflicts with other IIS applications
(for example, SharePoint® uses the default port 80; therefore, the IIS web
site for the Change Auditor web client must use a different port). If a
conflicting port is specified, attempting to launch the web client displays
either an ‘HTTP 404 Not Found’ or ‘Page cannot be displayed’ error.
Install-CALicense
Use this command to install licenses to the coordinators in a Change Auditor installation.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-LicensePath The license file directory on the client computer.
-Coordinator (Optional) The single coordinator where you want to install the license (rather than all
coordinators).
• Set-CAScheduleMasterTimeZone
• Get-CAScheduleMasterTimeZone
Set-CAScheduleMasterTimeZone
Use this command to specify which time zone the coordinators should use to calculate Next Run of the reports and
archive and purge jobs.
Table 4. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-TimeZoneID The identifier of a system time zone.
-TimeZoneInfo A TimeZoneInfo object
NOTE: The TimeZoneID and TimeZoneInfo parameters must be a system-recognized time zone obtained
through a call to the PowerShell command "[System.TimeZoneInfo]::GetSystemTimezones()".
Example: Set the schedule master time zone with a time zone info object
$atlanticTime = [System.TimeZoneInfo]::GetSystemTimeZones() |? {$_.Id -eq "Atlantic
Standard Time"}
Set-CAScheduleMasterTimeZone -Connection $connection -TimeZoneInfo $atlanticTime
Example: Set the schedule master time zone with a time zone identifier
Set-CAScheduleMasterTimeZone -Connection $connection -TimeZoneId "Eastern Standard
Time"
Get-CAScheduleMasterTimeZone
Use this command to retrieve what time zone the coordinators should use to calculate Next Run of the reports and
archive and purge jobs.
Table 5. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
• Find-CAInstallations
• Find-CACoordinators
• Find-CASuitableCoordinator
Find-CAInstallations
Use this command to search Active Directory for all available Change Auditor installations. The default is the
current computer’s forest, however, you can optionally specify a domain to search cross-forest for deployments.
NOTE: This command runs in the context of the current user running PowerShell. The user must have
permission to search Active Directory in the specified domain.
Find-CACoordinators
Use this command to search Active Directory for all available coordinators. The default is the current computers
forest, however, you can optionally specify a domain to search cross-forest for deployments. This search returns
all the information required to connect to the coordinator including ports.
NOTE: This command runs in the context of the current user running PowerShell. The user must have
permission to search Active Directory in the specified domain.
Find-CASuitableCoordinator
Use this command to search Active Directory for a coordinator to which a connection can be made. The default is
the current computers forest, however, you can optionally specify a domain to search cross-forest for
deployments.
If more than one Change Auditor installation is discovered, the call fails and the –InstallationName parameter is
mandatory.
Example: Find a coordinator in ‘DEFAULT’ installation that you have the credentials to connect
to
Find-CASuitableCoordinator –InstallationName ‘DEFAULT’
Connect-CAClient
Most Change Auditor commands require a connection to a coordinator. This connection can be assigned to a
variable and used for any command that requires it. This command searches for a suitable coordinator in a
Change Auditor installation and creates a connection. Suitable coordinators are those to which you have access to
and can be located by searching through Active Directory service connection points.
You can also connect to Change Auditor installations in untrusted domains or to a specific coordinator by
specifying the -ComputerName and -Port parameters.
You can make multiple connections to different coordinators or deployments in the same script as long as the
version of Change Auditor is the same.
NOTE: Connections are closed when the PowerShell session is ended or disconnected.
Parameter Description
-Credential (Optional) Windows credentials specifying the user to connect to the Change Auditor
installation. All operations using this connection will be authorized as this
user. When not specified, the current client running PowerShell is used.
-CoordinatorConnectionPoint Specify to use a specific coordinator found from a previous call to Find-
CACoordinators.
-SelectLocalCoordinator Create a connection to the local coordinator.
-InstallationName (Optional) The installation name to connect to. If an installation cannot be found with
this name, no connection is made.
If more than one Change Auditor installation exists in the current forest,
this parameter is mandatory. Omitting it results in a connection failure due
to ambiguity.
-DomainName (Optional) The name of the domain where the Change Auditor installation exists.
-ComputerName The computer to connect to.
-Port The port to connect to.
-WaitForServiceReady (Optional) The number of seconds to wait for the connected coordinator service to
be ready.
NOTE: If not specified, when the Change Auditor coordinator is not ready
for connections due to an in-progress install or upgrade, an error is
returned. The maximum is 144,000 seconds, or 10 hours.
Example: Connect to a Change Auditor deployment, and then close the connection
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
# perform some actions
Disconnect-CAClient $connection
Get-CAAuthenticationOptions
Use this command to view the authentication profile Change Auditor coordinators use in a particular installation.
Returns: An object containing the options for authentication for the specified installation.
Table 8. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-InstallationName (Optional) The installation name to connect to. If an installation cannot be found with
this name, no connection is made.
If more than one Change Auditor installation exists in the current forest,
this parameter is mandatory. Omitting it results in a connection failure due
to ambiguity.
-DomainName (Optional) The name of the domain where the Change Auditor installation exists.
Example
Get-CAAuthenticationOptions –InstallationName ‘DEFAULT’ –DomainName ‘DomainName.com’
Get-CAAuthenticationOptions -Connection $connection
Set-CAAuthenticationOptions
Use this command to alter the authentication profile the Change Auditor coordinators use in a particular
installation.
Returns: An object containing the options for authentication for the specified installation.
-AuthenticationOptions (Optional) This parameter allows the caller to pass directly the result of
the Get-CAAuthenticationOptions without having to break
down the options into their constituent flag values.
Example
Set-CAAuthenticationOptions -Connection $connection -AlwaysChallengeForCredential
-AllowActiveDirectoryCertificateAuthentication -AllowWindowsFormsAuthentication
Set-CAAuthenticationOptions -Connection $connection -AuthenticationOptions
$AuthenticationOptions
Get-CACoordinator
Use this command to retrieve coordinator-specific (as opposed to installation-wide) status information from the
connected coordinator such as coordinator name, status, deployment name, version, connected agents,
connected legacy agents, connected clients, client port, total events, and buffered events which may be different
on each coordinator.
Example: Gather coordinator information for all coordinators for a specified connection
Get-CACoordinators -Connection $connection
Get-CAInstallation
Use this command to retrieve installation-specific (as opposed to coordinator-specific) status information including
the name of the installation, database server, and database and the database size.
Get-CAAgents
Use this command to view information on all available (and optionally uninstalled) agents.
NOTE: This returns information for workstation, server, and domain controller agents.
Example: Viewing all available and unistalled agents within a specific installation
Get-CAAgents -Connection $connection -IncludeUninstalled
• Install-CAAgent
• Ping-CAAgent
• Uninstall-CAAgent
• Update-CAAgent
• Update-CAAgentConfigurations
• Set-CAAgentConfiguration
• Get-CAAgentSubsystems
• Enable-CAAgentTemplate
• Disable-CAAgentTemplate
• Remove-CAAgentTemplate
• New-CAConfiguration
• Get-CAConfigurations
• Set-CAConfiguration
• Remove-CAConfiguration
Install-CAAgent
Use this command to install an agent.
Table 11. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-MachineName The fully qualified name of a target computer.
-Credential Credentials used to access the target computer.
-OperationTime (Optional) Specifies when to perform this operation.
NOTE: If this is not specified, it defaults to the current time.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-AgentInfo The PSCAAgentInfo retrieved from the Get-CAAgents command.
Uninstall-CAAgent
Use this command to uninstall an agent.
Table 13. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-MachineName The fully qualified name of the target computer.
-Credential Credentials used to access the target computer.
-OperationTime (Optional) Specifies when to perform this operation.
NOTE: If this is not specified, it defaults to the current time.
Update-CAAgent
Use this command to upgrade an agent.
Table 14. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Agent Agents obtained from a previous call to Get-CAAgents.
-Credential Credentials used to access the target computer.
-OperationTime (Optional) Specifies when to perform this operation.
NOTE: If this is not specified, it defaults to the current time.
Update-CAAgentConfigurations
Use this command to update the agent configuration to ensure that the agent is using the most up-to-date
configuration.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Agents Agents obtained from a previous call to Get-CAAgents.
Set-CAAgentConfiguration
Use this command to assign an auditing configuration to an agent.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Agents Agents obtained from a previous call to Get-CAAgents.
-Configuration The configuration obtained by a previous call to Get-CAConfigurations.
Get-CAAgentSubsystems
Use this command to see the list of subsystems included in an agent‘s configuration.
Parameter Description
-AgentInfo The PSCAAgentInfo retrieved from the Get-CAAgents command.
Enable-CAAgentTemplate
Use this command to enable a template.
NOTE: Currently, this is only supported for FluidFS, Azure AD, and Office 365.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template The template to modify.
-Credential (This is only required for Credentials associated with the target agent and template. These vary
the FluidFS module. It is optional for depending on the type of template.
all others.)
Disable-CAAgentTemplate
Use this command to disable a template.
NOTE: Currently, this is only supported for FluidFS, Azure AD, and Office 365.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template The template to modify.
-Credential (This is only required for Credentials associated with the target agent and template. These vary
the FluidFS module. It is optional for depending on the type of template.
all others.).
Remove-CAAgentTemplate
Use this command to remove a template.
NOTE: Currently, this is only supported for FluidFS, Azure AD, and Office 365.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template The template to remove.
-Credential (This is only required for Credentials associated with the target agent and template. These vary
the FluidFS module. It is optional for depending on the type of template.
all others.)
New-CAConfiguration
Use this command to create an agent configuration.
Table 21. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-ConfigurationName The name of the agent configuration to create.
Get-CAConfigurations
Use this command to get list of all agent configurations for a deployment.
Table 22. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Set-CAConfiguration
Use this command to change the agents port used for the coordinator to communicate with the agent and to
configure a proxy server.
NOTE: If you change the agent port number, you must also create a firewall exception for the new port
number on your agent computers.
NOTE: If your organization uses a proxy server to connect to the internet, you must configure the proxy
parameters to audit Azure Active Directory and Office 365 targets. If your proxy server requires
authentication, you must also set the credentials using the -ProxyCredential parameter.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Configuration The name of the configuration to remove.
NOTE: You cannot delete the default configuration template.
Add-CATemplateToConfiguration
Use this command to assign an auditing template to a Change Auditor configuration.
Table 25. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Configuration The configuration to which to add a template. Use Get-CAConfigurations
to obtain the configuration object.
-Templates The templates to apply to the configuration. Use Get-
CAConfigurationTemplates to obtain the templates.
Get-CAConfigurationTemplates
Use this command to get a list of all templates in the installation.
Table 26. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Get-CATemplatesInConfiguration
Use this command to get a list of the templates that are assigned to a configuration.
Table 27. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Configuration Use Get-CAConfigurations to obtain the configuration object.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Configuration The configuration from which to remove a template. Use Get-
CAConfigurations to obtain the configuration object.
-Templates The templates to remove from the configuration. Use Get-
CAConfigurationTemplates to obtain the templates.
Invoke-CASearch
Use this command to run a search.
Table 29. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Search The search to run. Use Get-CASearches to find the PSCASearchInfo
object required to identify the search.
-StartTime (Optional) The start time for the events that will be retrieved. By default this is the
start time defined in the search.
-EndTime (Optional) The end time for the events that will be retrieved. By default this is the
start time defined in the search.
-Limit (Optional) The maximum number of records to retrieve and display. By default this is
the limit defined in the search.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Search 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’
[xml]$xmlString = Get-CASearches $connection | ? {$_.Name –eq “All Events”} | Get-
CASearchDefinition $connection
$xmlString.Save(“C:\definitions\All Events.xml”)
Set-CASearchProperties
Use this command to update the name, default folder, or limit of a public or private search from the installation.
Table 32. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Search The search info object obtained from the Get-CASearches command.
-Name (Optional) An optional parameter specifying a new name for the search.
-DefaultFolderPath (Optional) An optional parameter specifying a new default folder path for the search.
-Limit (Optional) An optional parameter specifying a new limit for the search.
-PassThru (Optional) A switch that specifies to return the updated search after the command
runs.
Example: Changing the display name of a search form “All Owner Mailbox Events” to “Display
my owner mailbox events”
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ?{$_.Name –eq “All Owner Mailbox Events”}
Set-CASearchProperties $connection –Name “Display my owner mailbox events” -PassThru
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Search The search info object obtained from the Get-CASearches command.
-IsPublic (Optional) An optional switch that specifies if the search is public. The default is
private.
-UserSid An optional parameter that is used (when –IsPublic is not used) to specify
the SID of the user that owns the directory where the copy of the search is
placed.
-Path A parameter that specifies a path where the copy is to be placed. The
default is the root folder of the user/public folder specified with
–UserSid /-IsPublic.
-Name (Optional) An optional parameter that specifies a new name for the copy of the
search.
-PassThru (Optional) A switch that specifies to return the updated search after the command
runs.
Example: Copying a search named “New Search for Employee” to a user’s private folder
Searches\New and giving it a new name “All My Events”
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ? {$_.Name –eq “New Search for Employee”}
Copy-CASearch –Connection $connection –Search $search –UserSid S-1-5-21-3623811015-
3361044348-30300820-1013 –Path Private\Searches\New –Name “All My Events” -PassThru
Add-CASearch
Use this command to create a search in the installation.
Table 34. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-XmlSearchDefinition An XML string or object that represents a search definition.
-IsPublic A switch that specifies if the search is public. The default is private.
-UserSid A parameter that is used (when –IsPublic is not used) to specify the SID of
the user who owns the new search.
-Path A parameter that specifies a path where the new search will be placed.
The default is the root folder of the user/public folder specified with –
UserSid /-IsPublic.
-Name A parameter that specifies a new name for the search.
-PassThru (Optional) A switch that specifies to return the new search after the command runs.
Move-CASearch
Use this command to move a search from one folder path to another in the installation.
Table 35. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-IsPublic A switch that specifies if the search is public. The default is private.
-UserSid A parameter that is used (when –IsPublic is not used) to specify the SID of
the user who owns the new search.
-Path A parameter that specifies the path where the search will be placed. The
default is the root folder of the user/public folder specified with –UserSid /-
IsPublic.
-Search The search info object obtained from the Get-CASearches command.
-PassThru (Optional) A switch that specifies to return the updated search after the command
runs.
Example: Moving the search named “All AD Queries in the last 30 days” to the private folder
“Shared\Skype\” of the user with the SID “S-1-5-21-3623811015-3361044348-30300820-1013”
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ? {$_.Name –eq “All AD Queries in the last 30
days”}
Move-CASearch $connection –Search $search –UserSid S-1-5-21-3623811015-3361044348-
30300820-1013 –Path “Shared\Skype”
Remove-CASearch
Use this command to remove a public or private search from the installation.
Table 36. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Search The search info object obtained from the Get-CASearches command.
-Force (Optional) A parameter that removes the prompt before a search is removed.
Example 1: removing any search with the name “All Exchange Admin Events” from the
installation
$connection = Connect-CAClient –InstallationName ‘DEFAULT’
$search = Get-CASearches $connection | ? {$_.Name –eq “All Exchange Admin Events”}
Remove-CASearch $connection –Search $search
Add-CASearchFolder
Use this command to create a search folder in the installation.
Table 37. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-IsPublic A switch that specifies if the search is public. The default is private.
-UserSid A parameter that is used (when –IsPublic is not used) to specify the SID of
the user who owns the new folder.
-Path A parameter that specifies the path to create. The default is the root folder
of the user/public folder specified with –UserSid /-IsPublic.
Remove-CASearchFolder
Use this command to remove a public or private folder from the installation.
Table 38. Available parameters
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-IsPublic A switch that specifies the folder being removed is public.
-UserSid A parameter that is used if –IsPublic is not specified to speci-fy the SID of
the user that owns the private folder being removed.
-Path A parameter that specifies the path to the folder to remove. The default is
the root folder of the user/public folder specified with
–UserSid /-IsPublic.
-Force (Optional) An optional parameter that removes the prompt before a search is
removed.
New-CAWindowsFSAuditObject
Use this command to define a folder or file paths to audit.
NOTE:
• For All Drives - IncludePath is '*', IncludePathType is Folder and IncludeScope is ScopeOneLevel or
ScopeSubtree.
• When IncludePath is set to '[All Shares]', this is a SystemShare.
Example: Monitoring a directory for all file types and all subfolders but excluding one subfolder
New-CAWindowsFSAuditObject -IncludePath "C:\ExampleDirectory" -IncludePathType
SystemFolder -IncludeScope ScopeSubTree -AuditEvents $auditEvents -IncludeMask "*"
–ExcludeFolderPaths "C:\ExampleDirectory\ExcludedDirectory"
Example: Monitoring a directory for one level for all file type except for .tmp files
New-CAWindowsFSAuditObject -IncludePath "C:\ExampleDirectory" -IncludePathType
SystemFolder -IncludeScope ScopeOneLevel -AuditEvents $auditEvents -IncludeMask "*"
–ExcludeFilePaths "*.tmp"
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-TemplateName The template name.
-AuditObjects The folder or file path objects created using
New-CAWindowsFSAuditObject.
-ExcludeProcess (Optional) The list of processes to exclude from auditing. The default is none.
-DiscardTooltipEvents (Optional) Multiple folder open events are generated by tooltips (folder content
information that is displayed when you hover your mouse over a folder)
because Windows Explorer navigates the folder tree for all the sub-folders
when you hover over the parent folder to see the tooltip. To ignore the
folder opened events generated by this action set this parameter to 'true'.
-DiscardBrowsingEvents (Optional) Multiple file open events are generated by file scans because Windows
Explorer opens and reads the header of all files contained in an opened
folder for information to display in the window. To ignore the file open
events generated by this action set this parameter to 'true'.
-Disabled (Optional) Specifies whether the template is enabled or disabled. Default is set to
false.
Remove-CAWindowsFSAuditTemplate
Use this command to delete a Windows File System auditing template.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template The CAWindowsFSAuditTemplate object to remove. Obtain the template
objects using the Get-CAWindowsFSAuditTemplates command and filter
to select the object to remove.
-Force (Optional) Removes template without prompting for a confirmation. The default is
false.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template The CAWindowsFSAuditTemplate object to edit. Obtain the template
objects using the Get-CAWindowsFSAuditTemplates command and filter
to select the object to remove.
-TemplateName (Optional) The template name.
-AuditObjects (Optional) The folder or file path objects created using
New-CAWindowsFSAuditObject.
-ExcludeProcess (Optional) The list of processes to exclude from auditing. The default is none.
-DiscardTooltipEvents (Optional) Multiple folder open events are generated by tooltips (folder content
information that is displayed when you hover your mouse over a folder)
because Windows Explorer navigates the folder tree for all the sub-folders
when you hover over the parent folder to see the tooltip. To ignore the
folder opened events generated by this action set this parameter to 'true'.
-DiscardBrowsingEvents (Optional) Multiple file open events are generated by file scans because Windows
Explorer opens and reads the header of all files contained in an opened
folder for information to display in the window. To ignore the file open
events generated by this action set this parameter to 'true'.
-Disabled (Optional) Set to true or false to enable or disable the template.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Get-CAWindowsFSEventClassInfo
Use this command to get a list of all available Windows File System auditing event classes.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
The following commands are available to manage Fluid File System auditing:
• Get-CAFluidFSClusters
• Get-CAFluidFSEncryptionStatus
• Get-CAFluidFSEventClassInfo
• Get-CAFluidFSTemplates
• Get-CAFluidFSVolumes
• New-CAFluidFSAuditVolume
• New-CAFluidFSTemplate
• Clear-CAFluidFSTemplate
• Set-CAFluidFSTemplate
• Set-CAFluidFSEncryptionCredential
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Get-CAFluidFSEncryptionStatus
Use this command to see if encryption has been set. Encryption protects the data as it passes between the
FluidFS cluster and the Change Auditor agents.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-ClusterName The name of the FluidFS cluster to audit.
-ClusterConfigurationCredential Administrator credentials to access Enterprise Manager.
Example: Determine if FluidFS encryption has been set (True if the encryption status is set;
false otherwise)
Get-CAFluidFSEncryptionStatus -Connection $connection -ClusterName $clustername -
ClusterConfigurationCredential $credential
Get-CAFluidFSEventClassInfo
Use this command to get a list of all available FluidFS event classes.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Get-CAFluidFSVolumes
Use this command to get a list of all volumes on a specified cluster.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-ClusterName The name of the cluster from which to retrieve volume names.
-ClusterConfigurationCredential Administrator credentials to access Enterprise Manager. This allows the
Coordinator to connect with the Enterprise Manager Data Collector
service and populate the list of available volumes to audit.
New-CAFluidFSAuditVolume
Use this command to define which volumes to audit.
• Inclusions allows you to specify what in the selected volume to be audit.
• Exclusions allow you to refine the settings defined on the Inclusions tab. That is, you can optionally specify
the names and paths of any subfolders and files in the selected volume to exclude from auditing.
NOTE: When specifying exclusions with PowerShell, you must specify the volume. This is not required for
inclusion masks.
For example:
$includePaths = "?folder\**"
$excludeFilePaths = "\vol1\*.tmp"
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-ClusterName The name of the cluster to audit.
-Agents The Change Auditor agents that are to receive the FluidFS events.
NOTE: Specifying multiple agents may provide better performance
because the file server will load balance audit events and send each
assigned agent events round-robin style. However, the downside is that
the ‘where’ field for FluidFS events may contain any one of these agents.
Also, if FluidFS event logging is enabled, events are written on multiple
agent servers.
-AuditItems The volumes and their list of exclusions and inclusions.
-ClusterConfigurationCredential Administrator credentials to access Enterprise Manager. This allows the
Coordinator to connect with the Enterprise Manager Data Collector
service and populate the list of available volumes to audit.
-Disabled (Optional) Specifies whether the template is enabled or disabled.
Clear-CAFluidFSTemplate
Use this command to delete a FluidFS to delete a template when a connection cannot be made with the FluidFS
cluster.
NOTE: Auditing settings must then be removed from the cluster using Enterprise Manager.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template The template to delete.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template The template to edit.
-ClusterConfigurationCredential Administrator credentials to access Enterprise Manager. This allows the
Coordinator to connect with the Enterprise Manager Data Collector
service and populate the list of available volumes to audit.
-Agents (Optional) The Change Auditor agents that are to receive the FluidFS events.
-AuditItems (Optional) The volumes and their list of exclusions and inclusions.
-Enable (Optional) Set to true or false to enable and disable the template.
Set-CAFluidFSEncryptionCredential
Use this command to enable or disable encryption for auditing on the Fluid File System cluster. Encryption allows
you to protect the event traffic as it passes between the FluidFS cluster and the Change Auditor agents.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-ClusterName The name of the cluster to audit.
-ClusterConfigurationCredential Administrator credentials to access Enterprise Manager.
-EncryptionCredential The service account credentials for the cluster to use when encrypting
events.
Example: Modify the encryption (required or not) for auditing on the Fluid FS cluster
Set-CAFluidFSEncryptionCredential -Connection $connection -ClusterName $clustername -
ClusterConfigurationCredential $credential -EncryptionCredential $EncryptionCredential
• Set-CAAzureADTemplate
NOTE: When you delete a template (see Remove-CAAgentTemplate), the web application created in Azure
Active Directory remains. You can delete the web application using the Azure management portal. If you do
not have the portal, see https://technet.microsoft.com/en-us/library/dn832618.aspx for instructions.
NOTE: If your organization uses a proxy server to connect to the internet, you must configure the agent
settings to audit Azure Active Directory and Office 365 targets. (See Set-CAConfiguration)
The following sample scripts are available in the Change Auditor client folder. By default they are located here:
C:\Program Files\Quest\ChangeAuditor\Client\PowerShell Sample Scripts:
• CreateAzureADTemplate
• CreateAzureADTemplateUsingWebAppKey
• RemoveAzureADTemplate
• DisableAzureADTemplate
• ModifyAzureADTemplate-ChangeAgent
• GetAzureADTemplates
Parameter Description
-AgentInfo An agent object obtained using the Get-CAAgents command. The agent is
used for Azure Active Directory auditing.
NOTE: The agent must be allowed to connect to Azure Active Directory.
• If the agent is separated from the coordinator by a firewall, you must
create a firewall exception for port 8373 on every agent computer to be
used for Azure Active Directory auditing. This is the default port that
enables the coordinator to communicate with the agent. A different
port number can, however, be specified by running the Set-
CAConfiguration command.
• A firewall outbound exception for remote port 443 (https) must exist for
every agent computer that will be used for Azure Active Directory
auditing. This is the port that is used for communicating with the
tenant.
-Connection A connection obtained by using the Connect-CAClient command.
-WebAppCreationCredential Azure Active Directory credentials required to create an Azure web
application. The credential object is obtained by using the Get-Credential
command.
NOTE: The account must be a user with the Global Administrator role.
NOTE: When using this parameter, you cannot also specify the
–WebAppCreationCredential parameter.
NOTE: If your tenant does not include an Office 365 subscription, use the
-WebAppId and -WebAppKey options described in Create a template using an
existing web application.
-AuditLogs Specifies whether or not to audit the Azure Active Directory audit logs. You
must enable at least one type of activity to audit using the
- AuditLogs or -SignIns parameter.
-SignIns Specifies whether or not to audit Azure Active Directory sign-in activity. You
must enable at least one type of activity to audit using the
- AuditLogs or -SignIns parameter.
-HistoricalEventCollectionHours Specifies how many hours the agent should go back in time to start event
(Optional) collection. The parameter accepts values from 1 to 720.
NOTE: When using this parameter, you cannot also specify the
–HistoricalEventCollectionDays parameter.
NOTE: Using this parameter may cause a duplication of events if the same
events have been previously collected.
-HistoricalEventCollectionDays Specifies how many days the agent should go back in time to start event
(Optional) collection. The parameter accepts values from 1 to 30.
NOTE: When using this parameter, you cannot also specify the
–HistoricalEventCollectionHours parameter.
NOTE: Using this parameter may cause a duplication of events if the same
events have been previously collected.
-Disabled (Optional) Specifies whether auditing is enabled or disabled for Azure Active Directory.
System Permissions
Windows Azure Active Directory Application Permissions:
• Read directory data
Delegated Permissions:
• Read directory data
• Sign in and read user profile
Parameter Description
-AgentInfo An agent object obtained using the Get-CAAgents command. The agent
will be used for Azure Active Directory auditing.
NOTE: The agent must be allowed to connect to Azure Active Directory.
• If the agent is separated from the coordinator by a firewall, you
must create a firewall exception for port 8373 on every agent
computer to be used for Azure Active Directory auditing. This is the
default port that enables the coordinator to communicate with the
agent. A different port number can, however, be specified by
running the Set-CAConfiguration command.
• A firewall outbound exception for remote port 443 (https) must
exist for every agent computer that will be used for Azure Active
Directory auditing. This is the port that is used for communicating
with the tenant.
-Connection A connection obtained by using the Connect-CAClient command.
-Tenant The Azure Active Directory tenant/directory that you want to audit (for
example: yourTenantName.onmicrosoft.com).
-AuditLogs Specifies whether or not to audit the Azure Active Directory audit logs.
You must enable at least one type of activity to audit using the
- AuditLogs or -SignIns parameter.
-SignIns Specifies whether or not to audit Azure Active Directory sign-in activity.
You must enable at least one type of activity to audit using the
- AuditLogs or -SignIns parameter.
-WebAppId An Azure Active Directory web application Id. This application is needed
for Change Auditor to authenticate to your Azure Active Directory tenant.
NOTE: Azure Active Directory and Office 365 must each have their own
dedicated web application.
NOTE: When using this parameter, you cannot also specify
–WebAppCreationCredential parameter.
-WebAppKey The key assigned to the web application specified for the WebAppId
parameter. This application is needed for Change Auditor to authenticate
to your Azure Active Directory tenant.
NOTE: When using this parameter, you cannot also specify
–WebAppCreationCredential parameter.
-HistoricalEventCollectionHours Specifies how many hours the agent should go back in time to start event
(Optional) collection. The parameter accepts values from 1 to 720.
NOTE: When using this parameter, you cannot also specify the
–HistoricalEventCollectionDays parameter.
NOTE: Using this parameter may cause a duplication of events if the
same events have been previously collected.
-HistoricalEventCollectionDays Specifies how many days the agent should go back in time to start event
(Optional) collection. The parameter accepts values from 1 to 30.
NOTE: When using this parameter, you cannot also specify the
–HistoricalEventCollectionHours parameter.
NOTE: Using this parameter may cause a duplication of events if the
same events have been previously collected.
-Disabled (Optional) Specifies whether auditing is enabled or disabled for Azure Active
Directory.
Set-CAAzureADTemplate
Use this command to edit the web application key and ID, and the agent in an existing Azure Active Directory
template. This also allows you to replace an expired or revoked web application.
NOTE:
• You cannot edit the type of activity to audit (audit logs and/or sign-ins) and the WebAppId, WebApp
Key, and agent at the same time. Activity must be edited in a separate command.
Example: Modify Azure Active Directory web application credentials in an auditing template
Set-CAAzureADTemplate -Connection $connection -Template $template -WebAppKey
$webAppKey -WebAppId $webAppId
Get-CAAzureADTemplates
Use this command to see all the Azure Active Directory templates available within your installation.
• Get-CAO365ExchangeTemplateMailboxes
NOTE: When you delete a template (see Remove-CAAgentTemplate), the web application created in Azure
Active Directory remains. You can delete the web application using the Azure management portal. If you do
not have the portal, see https://technet.microsoft.com/en-us/library/dn832618.aspx for instructions.
NOTE: If your organization uses a proxy server to connect to the internet, you must configure the agent
settings to audit Azure Active Directory and Office 365 targets. (See Set-CAConfiguration)
Parameter Description
-AgentInfo An agent obtained by using the Get-CAAgents command.
NOTE: The agent must be able to connect to Azure.
• If the agent is separated from the coordinator by a firewall, you
must create a firewall exception for port 8373 on every agent
computer to be used for Azure Active Directory auditing. This is the
default port that enables the coordinator to communicate with the
agent. A different port number can, however, be specified by
running the Set-CAConfiguration command.
• A firewall outbound exception for remote port 443 (https) must
exist for every agent computer that will be used for Azure Active
Directory auditing. This is the port that is used for communicating
with the tenant.
-Connection A connection obtained by using the Connect-CAClient command.
-WebAppCreationCredential Azure Active Directory account credentials required to create an Azure
web application. The credential object is obtained by using the Get-
Credential command.
NOTE: The account must be a user with the Global Administrator role.
-AuditAdministration (Optional) Specifies whether to audit administration events.
-AuditOrganization (Optional) Specifies whether to audit all Exchange Online mailboxes accessed by
users other than the mailbox owner.
-Disabled (Optional) Specifies whether the auditing template is enabled or disabled.
-EnableOneDrive (Optional) Specifies whether OneDrive for Business auditing is enabled or disabled.
-EnableSharePoint (Optional) Specifies whether SharePoint Online auditing is enabled or disabled.
-HistoricalEventCollectionHours Specifies how many hours the agent should go back in time to start event
(Optional) collection. The parameter accepts values from 1 to 168.
NOTE: When using this parameter, you cannot also specify the
–HistoricalEventCollectionDays parameter.
NOTE: Using this parameter may cause a duplication of events if the
same events have been previously collected.
NOTE: The historical data returned is based on the information in the
Office 365 audit logs. This may not reflect the configuration options in the
current template.
Example: Create a template that audits both Exchange Online administration and mailbox non-
owner events and will collect events generated 7 days in the past.
New-CAO36Template -Connection $connection -WebAppCreationCredential $azureCreds -
AgentInfo $agent -O365ExchangeAdminCredential $o365Creds -AuditAdministration $true
–AuditOrganization $true –HistoricalEventCollectionDays 7
System Permissions
Windows Azure Active Directory Application Permissions:
• Read directory data
Delegated Permissions:
• Read directory data
• Sign in and read user profile
Office 365 Management APIs Application Permissions:
• Read activity reports for your organization
• Read activity data for your organization
• Read service health information for your organization
Delegated Permissions:
• Read activity reports for your organization
• Read activity data for your organization
• Read service health information for your organization
Parameter Description
-AgentInfo An agent object obtained by using the Get-CAAgents command.
NOTE: The agent must be able to connect to Azure.
• If the agent is separated from the coordinator by a firewall, you
must create a firewall exception for port 8373 on every agent
computer to be used for Azure Active Directory auditing. This is the
default port that enables the coordinator to communicate with the
agent. A different port number can, however, be specified by
running the Set-CAConfiguration command.
• A firewall outbound exception for remote port 443 (https) must
exist for every agent computer that will be used for Azure Active
Directory auditing. This is the port that is used for communicating
with the tenant.
-Connection A connection obtained by using the Connect-CAClient command.
-Tenant The Azure AD tenant/Directory that you would like Change Auditor to
audit (for example: yourTenantName.onmicrosoft.com).
-WebAppId An Azure Active Directory web application Id. This application is needed
for Change Auditor to authenticate to your Azure Active Directory tenant.
NOTE: Azure Active Directory and Office 365 must each have their own
dedicated web application.
NOTE: When using this parameter, you cannot also specify the
–WebAppCreationCredential parameter.
-WebAppKey The key assigned to the web application specified for the WebAppId
parameter. This application is needed for Change Auditor to authenticate
to your Azure Active Directory tenant.
NOTE: When using this parameter, you cannot also specify the
–WebAppCreationCredential parameter.
-AuditAdministration (Optional) Specifies whether to audit administration events.
-AuditOrganization (Optional) Specifies whether to audit all Exchange Online mailboxes accessed by
users other than the mailbox owner.
-Disabled (Optional) Specifies whether the auditing template is enabled or disabled.
-EnableOneDrive (Optional) Specifies whether OneDrive for Business auditing is enabled or disabled.
-EnableSharePoint (Optional) Specifies whether SharePoint Online auditing is enabled or disabled.
-HistoricalEventCollectionDays Specifies how many days the agent should go back in time to start event
(Optional) collection. The parameter accepts values from 1 to 7.
NOTE: When using this parameter, you cannot also specify the
–HistoricalEventCollectionHours parameter.
NOTE: Using this parameter may cause a duplication of events if the
same events have been previously collected.
NOTE: The historical data returned is based on the information in the
Office 365 audit logs. This may not reflect the configuration options in the
current template.
Example: Create a template that audits both Exchange Online administration and mailbox non-
owner events and will collect events generated 7 days in the past.
New-CAO365Template -Connection $connection -AgentInfo $agent -
O365ExchangeAdminCredential $o365Creds -WebAppKey $webAppKey -WebAppId $webAppId -
Tenant $tenant -AuditAdministration $true –AuditOrganization $true
–HistoricalEventCollectionDays 7
Set-CAO365Template
Use this command to edit the account used to access Office 365 Exchange Online, the type of service and events
to audit, and select a new agent.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template A template object obtained by using the Get-CAO365Templates
command.
-WebAppCreationCredential Azure Active Directory account credentials required to create an Azure
web application. The credential object is obtained by using the Get-
Credential command.
NOTE: The account must be a user with the Global Administrator role.
NOTE: When you specify this parameter a new web application is created
and assigned to the template.
-WebAppId An Azure Active Directory web application Id. This application is needed
for Change Auditor to authenticate to your Azure Active Directory tenant.
NOTE: Azure Active Directory and Office 365 must each have their own
dedicated web application.
NOTE: When using this parameter, you cannot also specify the
–WebAppCreationCredential parameter.
-WebAppKey The key assigned to the web application specified for the WebAppId
parameter. This application is needed for Change Auditor to authenticate
to your Azure Active Directory tenant.
NOTE: When using this parameter, you cannot also specify the
–WebAppCreationCredential parameter.
Example: Enable auditing all Office 365 Exchange Online mailboxes accessed by non-owners
Set-CAO365Template -Connection $connection -Template $template
-AuditOrganization $true
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Get-CAO365ExchangeMailboxes
Use this command to find specific mailboxes that can be added to an existing Office 365 Exchange Online
template.
NOTE: To run this command, you must first create an Office 365 auditing template. See New-
CAO365Template.
Example: Find all Office 365 mailboxes that start with the letter a
Get-CAO365ExchangeMailboxes -Connection $connection -Tenant $tenant -SearchText "a"
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template A template object obtained by using the Get-CAO365Templates
command.
-Mailboxes Mailbox objects obtained by using the Get-CAO365ExchangeMailboxes
command.
-AuditOwnerEvents (Optional) A switch that indicates that the added mailboxes will be audited for owner
activity in addition to the non-owner activity. By default, the mailboxes will
be audited for non-owner mailbox activity only.
IMPORTANT: It is recommended that you select owner auditing for critical
mailboxes only. Owner auditing for a large number of mailboxes produces
many events that may affect performance.
-OverwriteExisting (Optional) If the mailboxes already exist in the template, this switch indicates that the
mailboxes will have their current owner/non-owner auditing settings
overwritten with new settings.
Example: Add Office 365 mailboxes to the existing Exchange Online template
Add-CAO365TemplateMailboxes -Connection $connection -Template $template -Mailboxes
$mailboxes –AuditOwnerEvents
Remove-CAO365ExchangeTemplateMailboxes
Use this command to remove mailboxes from an existing Office 365 Exchange Online template.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template A template object obtained by using the Get-CAO365Templates
command.
-Mailboxes Mailbox objects obtained by using the Get-CAO365ExchangeMailboxes
command.
-All (Optional) A switch that indicates that all mailboxes will be removed from the
template.
Example: Remove all Office 365 mailboxes from the existing Exchange Online template
Remove-CAO365ExchangeTemplateMailboxes -Connection $connection -Template $template –
All
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template A template object obtained by using the Get-CAO365Templates
command.
-AuditTypeFilter Parameter that allows you to narrow the search based on the type of
activities being audited: non-owner only, owner (non-owner, owner), or
any (non-owner only, owner and non-owner).
-DisplayNameFilter The search criteria specified as the mailbox display name. This can be the
full name of the mailbox to return a specific mailbox or the starting
characters to return a list of mailboxes that start with those characters.
-Skip (Optional) The number of objects to exclude from the list of returned objects, starting
from the top.
-First (Optional) The number of objects to return.
-IncludeTotalCount (Optional) The total number of objects in the data set. Values specified for the First
or Skip parameters do not impact this count.
Example: Get all Office 365 audited mailboxes from the existing Exchange Online template
Get-CAO365ExchangeTemplateMailboxes -Connection $connection -Template $template
Example: This example will return mailboxes that are not enabled for owner auditing where the
display name starts with “John S”
Get-CAO365ExchangeTemplateMailboxes -Connection $connection -Template $template -
DisplayNameFilter "John S" -AuditTypeFilter NonOwnerOnly
Get-CASkypeEventClassInfo
Use this command to see the list of event classes available for the Skype for Business subsystem.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Example: Get a list of all available Skype for Business event classes
Get-CASkypeEventClassInfo –Connection $connection
New-CASkypeTemplate
Use this command to add a Skype for Business template to Change Auditor.
NOTE: It is recommended that the Change Auditor Coordinator Service is running in the same forest as the
Skype for Business Central Management Store (CMS) database server.
Once the template has been created, the agent is notified of the Skype for Business Central Management Store
details and the events to audit.
Get-CASkypeTemplates
Use this command to see all the Skype for Business templates that have been created.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
Set-CASkypeTemplate
Use this command to update the properties of an existing Skype for Business template. Once the template has
been updated, the agent is notified of the Skype for Business Central Management Store details, and the events to
audit.
NOTE: If the Central Management Store database server has changed, you need to redeploy your agent to
the new Central Management Store SQL Server, delete the existing template, then create a new template.
Remove-CASkypeTemplate
Use this command to remove a Skype for Business template. Agents associated with the template would be
notified and Skype for Business configuration events would not be audited anymore.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-TemplateName The name of the template to remove.
New-CAADProtectionTemplate
Use this command to create an Active Directory protection template.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Name The template name.
-ProtectedObjects List of ProtectedObjects. See New-CAProtectedObject for details.
-Attributes (Optional) List of attributes to protect. When AttributeType is not set to “All” this
specifies the attributes for the template. Default is none.
-AttributeType (Optional) This is applied to the list of attributes specified in the Attributes parameter.
Possible values include “All”, “Only” and “AllExcept”. Default is All.
-OverrideAccounts (Optional) Accounts allowed or not allowed to change the protected objects.
-OverrideAccountsDenied Specifies if you want to deny the list of user in the OverrideAccounts
(Optional) access. You can specify either $true or $false.
Default is false which means that the user accounts are not denied
access.
-AdminAccounts (Optional) Accounts that can manage the protection template. Default is none.
-Locations (Optional) IP addresses to protect. Default is none.
-LocationProtectionType (Optional) Applied to the IP addresses specified by the Locations parameter. The
potential values include ProtectAllLocations, ProtectSelectLocations,
AllowSelectLocations, or ProtectUnknownLocations.
Default is ProtectAllLocations.
-Schedule (Optional) It is a list of PSCAScheduledTimeRange objects, created with the
New-CAScheduledTimeRange cmdlet. Default is no specified schedule,
which means that protection is always enabled.
See New-CAScheduledTimeRange for details.
Parameter Description
-ObjectDistinguishName Distinguish name of object to protect.
-ProtectedScope Scope of coverage for the protected object. Specify the scope using one
of the following values:
• ScopeObject
• ScopeOneLevel
• ScopeSubtree
-Operations Operations to be denied for the selected object:
• None
• Create
• Modify
• Delete
• Move
NOTE: You can specify multiple operations.
New-CAScheduledTimeRange
Use this command to schedule when to enforce the protection.
Parameter Description
-Day Spelled out day of the week to begin the protection. For example,
Monday.
-StartTime The time to start the protection. This parameter requires an integer and
validates that the input is between 0 and 24 inclusive. This implies an hour
of the day to start on.
-EndTime The time to end the protection. This parameter requires an integer and
validates that the input is between 0 and 24 inclusive. This implies an hour
of the day to end on.
Get-CAADProtectionTemplates
Use this command to see all the Active Directory Protection templates that have been created.
Remove-CAADProtectionTemplate
Use this command to remove an Active Directory protection template.
Parameter Description
-Connection A connection obtained by using the Connect-CAClient command.
-Template The PSCAProtectionTemplate object to remove.
Obtain the template objects using the Get-CAADProtectionTemplates
command and filter to select the object to remove.
-Force Removes the template without providing confirmation.
Quest provides software solutions for the rapidly-changing world of enterprise IT. We help simplify the challenges
caused by data explosion, cloud expansion, hybrid datacenters, security threats, and regulatory requirements. We
are a global provider to 130,000 companies across 100 countries, including 95% of the Fortune 500 and 90% of
the Global 1000. Since 1987, we have built a portfolio of solutions that now includes database management, data
protection, identity and access management, Microsoft platform management, and unified endpoint management.
With Quest, organizations spend less time on IT administration and more time on business innovation. For more
information, visit www.quest.com.
Contacting Quest
For sales or other inquiries, visit www.quest.com/contact.