ChamplainTechJournals/automation-sys320/week03/ExternalScript.ps1
2025-04-19 23:42:08 -04:00

9 lines
237 B
PowerShell

(Join-Path $PSScriptRoot .\FunctionsAndEventLogs.ps1)
# get login and logoffs from past 14 days
$loginoutsTable = getWinLogons(14)
$loginoutsTable
# get shutdowns from past 20 days
$shutdownsTable = getShutdowns(20)
$shutdownsTable