4396 links
38 private links
  • Strak.ch | Actu et liens en vrac
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
  • Managing IIS Log File Storage | Microsoft Docs

    Un script vbs pour nettoyer les logs IIS.

    sLogFolder = "c:\inetpub\logs\LogFiles"
    iMaxAge = 30   'in days
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    set colFolder = objFSO.GetFolder(sLogFolder)
    For Each colSubfolder in colFolder.SubFolders
            Set objFolder = objFSO.GetFolder(colSubfolder.Path)
            Set colFiles = objFolder.Files
            For Each objFile in colFiles
                    iFileAge = now-objFile.DateCreated
                    if iFileAge > (iMaxAge+1)  then
                            objFSO.deletefile objFile, True
                    end if
            Next
    Next
    January 8, 2019 at 8:47:27 AM GMT+1 * - permalink -
    QRCode
    - https://docs.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/managing-iis-log-file-storage
    Windows IIS Script
Links per page: 20 50 100
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Help/documentation