Kaseya Community

disk clean up script

  • hey guys i am hunting down a script well acctualy a set of instruction.
    pritty much this is what im looking for..

    detect 15% drive space free on C:\ (using monitor)
    run disk cleanup
    cheak free drive space
    if
    if >15% finish

    i tihnk thats right it looks it.
    thanks for any help given.


    Mind my noobness with kaseya

    Legacy Forum Name: disk clean up script,
    Legacy Posted By Username: Iggy1328
  • I have seen issues before when people have attempted to get disk information using Kaseya view variables as it always gives the A: drive properties. I have used the following command to check for free space percentage on a server but nothing in a kaseya script, maybe it will help.

    defrag C: -a > "defragresults.txt"

    Results will look like this.

    Windows Disk Defragmenter
    Copyright (c) 2003 Microsoft Corp. and Executive Software International, Inc.

    Analysis Report
    930 GB Total, 826 GB (88%) Free, 4% Fragmented (8% file fragmentation)

    You do not need to defragment this volume.


    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: djennings