Invoke-sqmLogShrink
Backup sqmSQLTool v1.8.2+
Shrinks the transaction log file (LDF) of one or more databases.

Examples

Invoke-sqmLogShrink -Database "MyDB" -ShrinkTargetPercent 20
Invoke-sqmLogShrink -Database "MyDB" -ShrinkTargetPercent 20
Invoke-sqmLogShrink -SqlInstance "SQL01" -All -WhatIf
Invoke-sqmLogShrink -SqlInstance "SQL01" -All -WhatIf