Skip to content

File-Removal-PowerShell-Script v1.0

Compare
Choose a tag to compare
@Zoran-Jankov Zoran-Jankov released this 23 Oct 09:35
· 64 commits to master since this release
b675b4f

This is the initial release of the File-Removal-PowerShell-Script.

Description

This script deletes defined files from targeted folders. Target folders, file names and optional number of days files files must be older then are written by user in "Data.csv" file. User can enter partial names of files in FileName column with a wildcard, for example "*.dat". Script generates detailed log file, "Log.log", and report that is sent via email to system administrators. In "Settings.cfg" file are parameters for mail settings, and options to turn on and off output writing, loging, and mail report as the user requires them.