View the current settings:
Get-ImapSettings -Server sr-XXXXX | select *log* LoginType : PlainTextLogin ProtocolLogEnabled : False LogFileLocation : C:\Program Files\Microsoft\Exchange Server\V14\Logging\Imap4 LogFileRollOverSettings : Daily LogPerFileSizeQuota : 0 B (0 bytes)
Enable IMAP logging with an overwrite setting of weekly and max log file size of 500mb:
Set-ImapSettings -Server sr-XXXXX -ProtocolLogEnabled $true -LogPerFileSizeQuota 500mb -LogFileRollOverSettings weekly
View the settings are actually set:
Get-ImapSettings | fl ProtocolName : IMAP4 ProtocolLogEnabled : True LogFileLocation : C:\Program Files\Microsoft\Exchange Server\V14\Logging\Imap4 LogFileRollOverSettings : Weekly LogPerFileSizeQuota : 500 MB (524,288,000 bytes)
To disable IMAP protocol logging:
Set-ImapSettings -Server sr-XXXXX -ProtocolLogEnabled $false
No comments:
Post a Comment