Skip to content

Instantly share code, notes, and snippets.

View TimMillerDyck's full-sized avatar

Tim Miller Dyck TimMillerDyck

  • Kitchener-Waterloo, Ontario, Canada
  • 10:25 (UTC -05:00)
View GitHub Profile
@TimMillerDyck
TimMillerDyck / GeneratePrintJobAccountingReports.ps1
Created April 21, 2022 19:56
Windows Server Print Job Accounting script: This script reads event log ID 307 and ID 805 from the log "Applications and Services Logs > Microsoft > Windows > PrintService" from the specified server and for the specified time period and then calculates print job and total page count data from these event log entries. It then writes the output to…
<#
GeneratePrintJobAccountingReports.ps1
ver. 2014-09-26-01
This script reads event log ID 307 and ID 805 from the log "Applications and Services Logs > Microsoft > Windows > PrintService"
from the specified server and for the specified time period and then calculates print job and total page count data from these
event log entries.
It then writes the output to two .CSV files, one showing by-print job data and the other showing by-user print job data.
@TimMillerDyck
TimMillerDyck / WindowsBackupEMailEvents.ps1
Created May 29, 2022 21:55
E-mail recent Windows Backup Event Log events to monitor backup status
<#
E-mail recent Windows Backup Event Log events to monitor backup status
This script is intended to run via an OS scheduled task using Windows Task Scheduler.
The script runs under the local computer account e.g. "myuser".
This account needs to have local admin rights to access the Windows Event Log.
To run the script manually:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -ExecutionPolicy bypass -File "C:\Scripts\WindowsBackupEMailEvents.ps1"