Ing. Michael Tassati, BA MA

Zum Inhalt springen
  • Restructuring underway
  • Impressum

forfiles (remove old logs)

28. April 2015Exchange, Microsoft, Powershell, Windows ManagementExchange, free up, logs, Microsoft, rolloverMichael

forfiles /P C:\inetpub\logs /S /M *.log /C „cmd /c del @path“ /D -1

use with parameter in cmd

forfiles /P %1 /S /M %2 /C „cmd /c del @path“ /D %3

=logRollover.cmd „C:\inetpub\logs“ „*.log“ -1

Beitrags-Navigation

← Must know Office 365 PowerShell commands – TechSultan Limit Diagnostic-Service logs →
Stolz präsentiert von WordPress