Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

dereknutile/powershell-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powershell Scripts

Overview

List of assorted PowerShell scripts. The main purpose of this repository is to create a library of PowerShell tools that can be reused in my Windows environment. Secondary purposes are both learning PowerShell and establishing a convention for creating easy to follow PowerShell code.

Structure

All directories in this repository are individual modules. Those modules are mainly self contained if the .\_common folder is included with them. except for the following:

.\_dev

Development scripts for learning and trail-testing. Each script should use a name that eases the understanding the functionality of that script. All scripts should contain details of the script in the header of the ps1 file.

.\_common

This is where all common reusable code and data should be kept.

Modules


IIS Rewrite Rules

Tags: iis-rewrite-rules Purpose: Reads a csv file with IIS rules, applies those rules to supplied server and website.

Log Ripper

Tags: log-ripper Purpose: Reads config.json to gather an array of attributes to search for, then opens a log file and reads it line-by-line writing out only the matching criteria to an output file.

Log Roller

Tags: log-roller Purpose: Reads config.json to get the target directory where log files would be kept as well as the value for how many days back to start removing items.

Service Flush

Tags: service-flush, service, log, json Purpose: Parses a configuration file (config.json) and restarts a list of services and logs activity to a log file.

About

Assorted Powershell Scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published