PowerShell Grundkursus

Formål

At give deltagere viden og færdigheder til at kunne bruge Windows PowerShell til scripting og automatisering af administrationen af ​​Windows-baserede servere.

Beskrivelse

Dette tre-dages kursus giver dig en kompakt indføring i PowerShell - herunder scripting og automatisering af de daglige administrative opgaver.

PowerShell er det fælles værktøj til automatisering (og fjernstyring) af fx Windows Server, Windows Client, Exchange Server, SharePoint Server, SQL Server, System Center, og meget mere.

Videre forløb

Materialer

  • Microsoft Official Curriculum (MOC) materiale

Indhold

Module A: Getting Started with Windows PowerShell

This module introduces students to Windows PowerShell, its purpose and history. The module will also cover the basics of using the shell, including the help system, command syntax, command discovery explaining the use of the two built-in host applications.

  • Lessons
    • Overview and Background
    • Finding and Learning Commands
    • Running Commands
  • Lab :
    • Configuring Windows PowerShell
    • Configure the Windows PowerShell Console Application
    • Configure the Windows PowerShell ISE Application
  • Lab :
    • Finding and Running Basic Commands
    • Finding Commands
    • Finding and Running Commands
    • Using 'About' Files
  • After completing this module, students will be able to:
    • Open and configure Windows PowerShell
    • Discover, learn, and run Windows PowerShell commands
    • Run commands by using correct command and parameter syntax

Module B: Working with the Pipeline

This module covers the Windows PowerShell pipeline along with a number of additional techniques and commands, including customizing command output, exporting and converting data, sorting objects, filtering objects, and enumerating objects allowing for the overall retrieval, manipulation and displaying of data.

  • Lessons
    • Understanding the Pipeline
    • Selecting, Sorting, and Measuring Objects
    • Converting, Exporting, and Importing Objects
    • Filtering Objects Out of the Pipeline
    • Enumerating Objects in the Pipeline
  • Lab :
    • Using the Pipeline
    • Selecting and Sorting Data
  • Lab :
    • Converting, Exporting, and Importing Objects
    • Converting Objects
    • Importing and Exporting Objects
  • Lab :
    • Filtering Objects
    • Filtering Objects
  • Lab :
    • Enumerating Objects
    • Enumerating Objects
  • After completing this module, students will be able to:
    • Describe the purpose of the Windows PowerShell pipeline
    • Manipulate objects in the pipeline
    • Convert, export, and import objects
    • Filter objects out of the pipeline
    • Enumerate objects in the pipeline

Module C: Understanding How the Pipeline Works

This module explains the underlying details of how Windows PowerShell passes objects from command to command within the pipeline. Having seen it in action in the previous module will now get to see some of the theory under the hood. The emphasis will be on two specific techniques used by the shell and students will learn to explain the pipeline operation, predict command behavior and allows them construct more useful, predictable commands.

  • Lessons
    • Passing Data in the Pipeline By Value
    • Passing Data in the Pipeline By Property Name
  • Lab :
    • Working with Pipeline Parameter Binding
    • Predicting Pipeline Behavior
  • After completing this module, students will be able to:
    • Pass data by using the ByValue technique
    • Pass data by using the ByPropertyName technique

Module D: Preparing for Scripting

This module prepares students for writing scripts with Windows PowerShell, covering the Windows PowerShell security model and the use of variables.

  • Lessons
    • Using Variables
    • Scripting Security
  • Lab :
    • Working with Security in Windows PowerShell
    • Configure Security
  • After completing this module, students will be able to:
    • Create, use, and manage variables
    • Configure shell scripting security

Module E: Moving From a Command to Script to Module

This module shows students how to take a command that runs well in the console and turn it into a parameterized, reusable script, and how to evolve that script into a standalone script module. Students will learn the foundations needed to create their own reusable tools.

  • Lessons
    • Moving From Command to Script
    • Moving From Script to Function to Module
    • Implementing Basic Error Handling
    • Using Basic Scripting Constructs
    • Exploring Other Scripting Features
  • Lab :
    • Moving From Command to Script
    • Test the Command
    • Parameterize Changing Values
    • Add Verbose Output
    • Add Comment-Based Help
  • Lab :
    • Moving From Script to Function to Module
    • Convert the Script to a Function
    • Save the Script as a Script Module
    • Add Debugging Breakpoints
  • Lab :
    • Implementing Basic Error Handling
    • Add Error Handling to a Function
    • Add Error Handling to a New Function
  • Lab :
    • Creating an Advanced Function
    • Test an Existing Command
    • Create a Parameterized Function
    • Handle Multiple Targets
    • Add Error Handling
  • After completing this module, students will be able to:
    • Move from Command to Script
    • Move from Script to Function to Module
    • Implement basic error handling
    • Implement basic scripting constructs
    • Explain additional advanced Windows PowerShell scripting features

Module F: Using Profiles and Advanced PowerShell Techniques

This module covers a variety of additional advanced Windows PowerShell features and techniques including additional comparison operators, use of alternate credentials, creation of profile scripts, manipulation of strings and date objects.

  • Lessons
    • Using Advanced PowerShell Techniques
    • Creating Profile Scripts
    • Working With Alternative Credentials
  • Lab :
    • Practicing Advanced Techniques
    • Using Advanced Techniques
    • Using Alternative Credentials
    • Create a Profile Script
  • After completing this module, students will be able to:
    • Manipulate data and objects by using advanced techniques and operators
    • Create and manage profile scripts
    • Connect to remote computers by using alternative credentials