Functions and Event Logs
Part 1: Login/Logoff records for Windows Events
Unsolved:

Solved:

Processing Event Logs into a Custom Object
Verify that events exist:
Create the script:

Part 2: User ID Translation
Find the SID for your user (champuser)


Adding User SID translation to our 14-day log script

Part 3: Turn Script into a Function that takes user input
Hard code the number of days
Allow users to input the number of days

Part 4: Computer start-up/shut-down function
We are changing the following for the function:

Combining the Functions into One Script

Part 5: Using dot notation to call our functions from the script we've made
What is dot notation?
Dot notation in our script

PreviousWeek 3: Powershell Flow ControlNextWeek 4 & 5 PowerShell and Accessing File Content, Web Scraping, and Regex
Last updated