Windows Server Cleanup Scripts

Sort:
You are not authorized to post a reply.
Author
Messages
Chris12
Veteran Member
Posts: 150
Veteran Member
    Does anyone have any Windows server cleanup batch programs that they would not mind sharing.   For log cleanup, etc ...

    Thanks in advance
    Greg Moeller
    Veteran Member
    Posts: 1498
    Veteran Member
      I've used ccleaner before... ccleaner.com
      John Henley
      Senior Member
      Posts: 3348
      Senior Member
        Are you looking to figure out WHAT needs to be cleaned, or just a means by which to do it?
        Thanks for using the LawsonGuru.com forums!
        John
        mikeP
        Veteran Member
        Posts: 151
        Veteran Member
          I'll second CCleaner, I use it on 2008 R2.  Also, if you haven't been keeping up on it, you can safely delete the contents of

          C:\Windows\SoftwareDistribution\Download

          for a one time bump.

          What would really be helpful would be for MS to port KB2852386 to 2008R2, to clean out the Winsys folder.  First time I ran that on my Win 7 box, I got back nearly 2Gb....
          Chris12
          Veteran Member
          Posts: 150
          Veteran Member
            I am looking for a batch script or something else which can be scheduled to clean up Lawson logs files (ladb.log, etc) as well as perhaps run Lawson commans (deljobhst, etc.) ....

            Thank you
            Carl.Seay
            Veteran Member
            Posts: 109
            Veteran Member
              This will cleanup batch jobs and temp work files on UNIX. Also, Process Flow has some nodes that will clean up the LOGAN database tables.

              # Delete completed jobs, expired recurring jobs and print files older than 180 days
              . cv
              deljobhst -vcjr 'curdate' - 180 > deljobhst.log

              # Delete temp and work files older than 30 days
              find $LAWDIR/prod/work -mtime +30 -name "tmp*" -ls -type f > delwork.log
              find $LAWDIR/prod/work -mtime +30 -name "GLT*" -ls -type f >> delwork.log
              find $LAWDIR/prod/work -mtime +30 -name "tmp*" -type f -exec rm -f {} \;
              find $LAWDIR/prod/work -mtime +30 -name "GLT*" -type f -exec rm -f {} \;
              Daryle
              New Member
              Posts: 1
              New Member
                I would love a list of logs that can be cleaned up. We are post install but on hold and trying to put processes together while we have time. Thank you
                John Henley
                Senior Member
                Posts: 3348
                Senior Member
                  https://www.lawsonguru.co...intenance-Tasks.aspx
                  Thanks for using the LawsonGuru.com forums!
                  John
                  You are not authorized to post a reply.