Start Using PowerShell Cmdlets

PowerShell Cmdlets can be used to preview a selection of events, alerts or auditing data and then delete them if the database is growing too large.

  1. Install and configure the Management Center.

  2. Run PowerShell as an Administrator.

  3. On the PowerShell command prompt, use the Import-ApsInstanceModule cmdlet to select the ManagementServer instance to execute the cmdlets against.
    Import-ApsInstanceModule -IsDefault -ProductName "Management Server"
    Refer to the Server Configuration Portal Scripting Guide for further information.

To delete the events or alerts data run any of the Invoke-<OperationName> cmdlets. Or to preview, run Test-<OperationName> cmdlets.

To manage the scheduled maintenance tasks refer to Scheduled Maintenance Cmdlets.

Related topics