Skip to main content
SnapCenter 4.7 cmdlets

Set-SmAuditSettings

Contributors

Set the audit file retention, size and location.

Syntax

Set-SmAuditSettings [-MaxFileSize]  <String>  [-MaxSizeRollBackups]  <EntityType>  [-AuditLogDirectory]  <String>  [-UniversalTime]  <Severity>

Detailed Description

Sets the audit file maximum size, the maximum number of audit file backups to retain, and location for audit file.

Parameters

Name Description Required? Pipeline Input Default Value

MaxFileSize

The audit file size that triggers a roll over.

true

false

MaxSizeRollBackups

The number of roll over audit files that are retained.

true

false

AuditLogDirectory

The location where audit files are generated.

true

false

UniversalTime

Enables message logging in UTC time for installations in different geographical locations. Use $True to enable UniversalTime or $False to disable UniversalTime.

false

false

Examples

Example 1: Setting audit log settings

 Set-SmAuditSettings -MaxFileSize 10MB -MaxSizeRollBackups 10 -AuditLogDirectory C:\auditing\

This example sets audit log settings.

MaxFileSize MaxSizeRollBackups UniversalTime LogDirectory
----------- ------------------ ------------- ------------
10485760 10 False C:\auditing\