Coder Social home page Coder Social logo

samerde / thecleaners Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 177 KB

PowerShell module to clean the loose ends from your Windows Servers.

License: GNU General Public License v3.0

PowerShell 100.00%
hacktoberfest microsoft-windows powershell profile sysadmin windows cleanup logs utilities utility

thecleaners's Introduction

TheCleaners

╭━━━━┳╮╱╱╱╱╱╭━━━┳╮ ┃╭╮╭╮┃┃╱╱╱╱╱┃╭━╮┃┃ ╰╯┃┃╰┫╰━┳━━╮┃┃╱╰┫┃╭━━┳━━┳━╮╭━━┳━┳━━╮ ╱╱┃┃╱┃╭╮┃┃━┫┃┃╱╭┫┃┃┃━┫╭╮┃╭╮┫┃━┫╭┫━━┫ ╱╱┃┃╱┃┃┃┃┃━┫┃╰━╯┃╰┫┃━┫╭╮┃┃┃┃┃━┫┃┣━━┃ ╱╱╰╯╱╰╯╰┻━━╯╰━━━┻━┻━━┻╯╰┻╯╰┻━━┻╯╰━━╯

Synopsis

A module to help automate the cleanup of old log file and temp files on your systems.

Description

This module includes a number of functions to help automate the cleanup of IIS logs, Exchange Server logs, temp files, and old profiles from your systems.

Why

This module exists because there is no great "out of the box" way to keep IIS and Exchange logs, temp files, and old profiles under control. As a systems administrator, I have spent far too many hours responding to low disk alerts and manually cleaning up these locations. The Cleaners will come in and clean up all of those loose ends for you!

Getting Started

Prerequisites

The WebAdministration PowerShell module is ideally present on any systems that you want to clear up IIS log files. Without it, we can only make our best guess as to the location of the IIS log files based on their default location.

Installation

Download the contents of the /src/TheCleaners folder from this repository. Open PowerShell run:

Set-Location -Path <FOLDER CONTAINING THESE FILES>
Import-Module .\TheCleaners.psd1
Clear-OldIISLogs.ps1

This will soon be packaged as a module that can be downloaded from the PowerShell Gallery!

# Install-Module TheCleaners

Quick start

Example1

Clear-OldIISLogs

Author

Sam Erde
@SamErde on Twitter/X
@SamErde on Linktree

thecleaners's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.