IIS logs on a busy webserver can use up a lot of disk space. I wrote this little powershell script that I schedule to run on all of my web servers. It goes in and deletes out any IIS logs older than 1 year. Then it compresses any IIS logs that are left which are older than 1 day and are not already compressed. You can change the length of time for these to suit your needs by changeing the numbers in the "AddDays(-123)" parts of the script. Just make sure it's a negative number, or else you won't have any logs left.
Showing posts with label reclaim disk space. Show all posts
Showing posts with label reclaim disk space. Show all posts
Wednesday, January 30, 2013
IIS Log Management Script in Powershell
Labels:
disk space,
free disk space,
IIS,
Log Management,
LogFiles,
powershell,
reclaim disk space,
script,
scripting,
Server Administration,
Windows 2000,
Windows 2003,
Windows 2008,
Windows 2008 R2,
WMI
Sunday, January 13, 2013
Tips on How to Free Disk Space on Your PC or Server
I have noticed a lot of people on the internet having issues with their hard drives filling up "mysteriously" and they are not sure what to do to reclaim some of that disk space. I've already written a handful of articles that touch on various consumers of disk space, so I am going to bring all of them together in one place for your convenience. I will keep adding to this page as I write more articles that are along these same lines.
Labels:
$TOPS,
disk space,
free disk space,
hard drive,
hiberfil.sys,
hibernation,
no disk,
page file,
pagefile,
pagefile.sys,
reclaim disk space,
shadow copy storage,
transaction resource manager,
Windows
Subscribe to:
Posts (Atom)