O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PowerShell Toolmaking

Video Description

Build tools with PowerShell that you will use every day

About This Video

  • Design and build tools that you will use every day.
  • Use industry standard tools like Visual Studio Code and PowerShell 5.1
  • Automate basic tasks on premise as well as on Azure using Azure functions (serverless computing).

In Detail

Routine tasks that you perform on a daily basis takes up all of your time that could be spent designing new solutions rather than maintaining the old ones. PowerShell is a simple and powerful toolset that allows you to automate workloads that were previously handled by large teams.

This course will show you how to build tools that will allow you to automate various aspects of your daily routines. It takes actions that you could easily delegate to the end user that will take up hours of your time daily.

By the end of the course, gain strong knowledge on how automation and tool building works, so that you can create your own solutions. Automation is the future of IT, you can’t manage large-scale environments these days without substantial automated.

All the code and supporting files for this course are available on GitHub at https://github.com/PacktPublishing/PowerShell-Toolmaking

Table of Contents

  1. Chapter 1 : Setting Up Your Environment
    1. The Course Overview 00:01:45
    2. Azure Setting Up a Demo Account 00:01:50
    3. Creating Virtual Machines for the Course 00:02:43
    4. Installing VSCode 00:01:35
    5. Setting Up VSCode Add-ons 00:01:24
    6. VSCode and Some Common Features 00:03:46
    7. Setting Up PowerShell 00:01:49
    8. PowerShell Objects 00:05:46
    9. Arrays, Array Lists, and Hash Table 00:06:58
  2. Chapter 2 : Copying a File to Multiple Sources
    1. Design 00:01:52
    2. Copying File to a Single Target 00:04:55
    3. Reading a List of Targets 00:03:46
    4. Targeting Multiple Endpoints 00:03:17
    5. Error Handling 00:08:37
    6. Logging and Output 00:05:42
  3. Chapter 3 : Build a PowerShell-Based Azure Function
    1. Design Setup 00:02:47
    2. Powering On/Off a Single Virtual Machine 00:04:54
    3. Security and Authentication 00:04:45
    4. Manage Any Virtual Machine 00:03:17
    5. Error Handling and Logging 00:01:42
  4. Chapter 4 : Creating a Registry Key on Remote Machines
    1. Design 00:01:08
    2. Create Registry Key on a Local Machine 00:04:27
    3. Create Registry Key on a Remote Machine 00:06:30
    4. Generalize the Script 00:06:43
    5. Error Handling 00:04:51
    6. Logging and Output 00:04:45
  5. Chapter 5 : Automating the Inventory List of Your Servers
    1. Collect Data from a Single Machine 00:07:23
    2. Read a List of Machines and Iterate 00:05:19
    3. Format the Data 00:01:27
    4. Export the Data 00:03:10
    5. Email the Report 00:02:52
    6. Error Handling and Logging 00:03:34
    7. Singing Your Script 00:06:15
  6. Chapter 6 : Automating Database Operations
    1. Design 00:02:08
    2. Creating an Azure Database 00:02:15
    3. Connecting to the Database 00:05:14
    4. Update/Insert/Delete Data 00:12:14
    5. Querying the Database 00:02:30
    6. Automating Report Generation 00:04:40