Showing posts with label WMI. Show all posts
Showing posts with label WMI. Show all posts
Tuesday, March 19, 2013
List all of the Microsoft Hotfixes Installed on a System
If you need to list all of the Microsoft hotfixes/patches that are installed on a system, you can run the command below from a command prompt. Add/Remove Programs does not list them all.
Wednesday, January 30, 2013
IIS Log Management Script in Powershell
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.
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
Subscribe to:
Posts (Atom)