Course Overview

This course is the final part of the Build Your Own Tools series. If you are already familiar with the basics of PowerShell (you can use the pipeline, know about the objects, proficient in flow control elements of the PowerShell programming language and you have already written basic functions and scripts) then this course is for you to step up to the next level. In this course, you can learn through a lot of demos how to write enterprise-grade logging functions in a module that creates new log files and purge old ones automatically, does proper logging that makes troubleshooting easy, indicates and log progress, is capable of logging object-related data, log information about the parameter use. After the course completion, you will be known as a PowerShell developer who writes elegant and easy-to-use code with informative logging.

What You Will Learn

  • How to write a logging function for your functions and scripts
  • How to create a module
  • How to use logs to troubleshoot your functions and scripts
  • How to access information about the execution of a script from a function defined in a module
  • We’ll discuss the different ways of executing and terminating a script

Program Curriculum

  • Overview of Logging, Define Our Expectations
  • Create an Initialization Function for Logging that Handles Log Files Automatically – Part 1
  • Create an Initialization Function for Logging that Handles Log Files Automatically – Part 2
  • Create an Initialization Fu

  • Executing and Exiting a Script, Extend Logging with Exiting Entry Types – Part 1
  • Executing and Exiting a Script, Extend Logging with Exiting Entry Types – Part 2 
  • Leverage $Error for Logging Unhandled Errors 
  • Review the Different Error Types and the Use of

  • Determine the Line Number of the Execution Point
  • Create a Function to Display and Log Progress – Part 1
  • Create a Function to Display and Log Progress – Part 2
  • Create a Function to Display and Log Progress – Part 3
  • Determine the Explicit and Implicit Parame

Instructor

Tibor Soós

Tibor Soós worked as a Microsoft Certified Trainer and had been awarded to be a Most Valuable Professional for PowerShell by Microsoft between 2008 and 2013. He has written a free online PowerShell book and developed multiple PowerShell courses. Tibor has worked as a Systems Engineer and as an IT Architect at major financial and manufacturing companies. Tibor now works as a freelance PowerShell developer and expert mainly participating in Identity and Access Management automation and integration projects.

Join over 1 Million professionals from the most renowned Companies in the world!

certificate

Fastest Way to Level Up Your Cybersecurity Skills

Invest in your future with flexible subscription plans that give you access to the world’s largest online cybersecurity course library. Whether you're exploring cybersecurity courses for beginners or advancing your expertise,
access in-demand courses, practical labs, and CTF challenges designed to support continuous learning.

Monthly Plans
Annual Plans
Save 20% with our annual plans!

Pro

Build your cybersecurity skills with 900+ bite-sized courses and curated learning paths designed for continuous learning.

$ 69.00
Billed monthly or $599.00 billed annually

What is included

  • 880+ Premium Short Courses
  • 70+ Structured Learning Paths
  • Validation of Completion with all courses and learning paths
  • New Courses added every month
Early Access Offer

Pro +

Develop real-world cybersecurity skills through hands-on labs and CTF challenges designed for practical learning.

$ 79.00
Billed monthly or $699.00 billed annually

Everything in Pro, Plus:

  • 1600+ Hands-on lab exercises with guided instructions
  • 150+ CTF Challenges with detailed walkthroughs
  • New Hands-on Labs and Challenges added every month

Related Courses

1 of 50