10961A: Automating Administration with Windows PowerShell® xv Contents Module 1: Getting Started with Windows PowerShell Lesson 1: Overview and Background Lab A: Configuring Windows PowerShell Lesson 2: Finding and Learning Commands Lesson 3: Running Commands Lab B: Finding and Running Basic Commands 1-2 1-9 1-11 1-19 1-25 Module 2: Working with the Pipeline Lesson 1: Understanding the Pipeline Lesson 2: Selecting, Sorting, and Measuring Objects Lab A: Using the Pipeline Lesson 3: Converting, Exporting, and Importing Objects Lab B: Converting, Exporting, and Importing Objects Lesson 4: Filtering Objects Out of the Pipeline Lab C: Filtering Objects Lesson 5: Enumerating Objects in the Pipeline Lab D: Enumerating Objects 2-2 2-6 2-13 2-16 2-21 2-24 2-30 2-33 2-36 Module 3: Understanding How the Pipeline Works Lesson 1: Passing Data in the Pipeline By Value Lesson 2: Passing Data in the Pipeline By Property Name Lab: Working with Pipeline Parameter Binding 3-2 3-7 3-11 Module 4: Using PSProviders and PSDrives Lesson 1: Using PSProviders Lesson 2: Using PSDrives Lab: Using PSProviders and PSDrives 4-2 4-5 4-9 Module 5: Formatting Output Lesson 1: Using Basic Formatting Lesson 2: Using Advanced Formatting Lesson 3: Redirecting Formatted Output Lab: Formatting Output 5-2 5-5 5-8 5-11 Module 6: Querying Management Information by Using WMI and CIM Lesson 1: Understanding WMI and CIM Lesson 2: Querying Data by Using WMI and CIM Lesson 3: Making Changes by Using WMI and CIM 6-2 6-6 6-13 xvi 10961A: Automating Administration with Windows PowerShell® Lab: Working with WMI and CIM 6-17 Module 7: Preparing for Scripting Lesson 1: Using Variables Lesson 2: Scripting Security Lab: Working with Security in Windows PowerShell 7-2 7-9 7-14 Module 8: Moving from Command to Script to Module Lesson 1: Moving from Command to Script Lab A: Moving from Command to Script Lesson 2: Moving from Script to Function to Module Lab B: Moving from Script to Function to Module Lesson 3: Implementing Basic Error Handling Lab C: Implementing Basic Error Handling Lesson 4: Using Basic Scripting Constructs Lab D: Creating an Advanced Function Lesson 5: Exploring Other Scripting Features 8-2 8-7 8-11 8-16 8-20 8-24 8-26 8-30 8-34 Module 9: Administering Remote Computers Lesson 1: Using Basic Remoting Lesson 2: Using Advanced Remoting Techniques Lab A: Using Basic Remoting Lesson 3: Using Remoting Sessions Lab B: Using Remoting Sessions Lesson 4: Using Remoting for Delegated Administration Lab C: Using Remoting for Delegated Administration 9-3 9-13 9-16 9-19 9-24 9-27 9-30 Module 10: Putting it All Together Lesson 1: Provisioning a New Server Core Instance Lab: Provisioning a New Server Core Instance 10-2 10-6 Module 11: Using Background Jobs and Scheduled Jobs Lesson 1: Using Background Jobs Lab A: Using Background Jobs Lesson 2: Using Scheduled Jobs Lab B: Using Scheduled Jobs 11-2 11-8 11-11 11-16 Module 12: Using Profiles and Advanced Windows PowerShell Techniques Lesson 1: Using Advanced Windows PowerShell Techniques Lesson 2: Creating Profile Scripts Lesson 3: Working with Alternative Credentials Lab: Practicing Advanced Techniques Lesson 4: Course Evaluation 12-2 12-10 12-14 12-17 12-22 10961A: Automating Administration with Windows PowerShell® xvii Lab Answer Keys Module 1 Lab A: Configuring Windows PowerShell Module 1 Lab B: Finding and Running Basic Commands Module 2 Lab A: Using with the Pipeline Module 2 Lab B: Converting, Exporting, and Importing Data Module 2 Lab C: Filtering Objects Out of the Pipeline Module 2 Lab D: Enumerating Objects Module 3 Lab: Working with Pipeline Parameter Binding Module 4 Lab: Using PSProviders and PSDrives Module 5 Lab: Formatting Output Module 6 Lab: Working with WMI and CIM Module 7 Lab: Working with Security in PowerShell Module 8 Lab A: Moving from Command to Script Module 8 Lab B: Moving From Script to Function to Module Module 8 Lab C: Implementing Basic Error Handling Module 8 Lab D: Creating an Advanced Function Module 9 Lab A: Using Basic Remoting Module 9 Lab B: Using Remoting Sessions Module 9 Lab C: Using Remoting for Delegated Administration Module 10 Lab: Provisioning a New Server Core Instance Module 11 Lab A: Using Background Jobs Module 11 Lab B: Using Scheduled Jobs Module 12 Lab C: Practicing Advanced Techniques L01-1 L01-4 L02-11 L02-14 L02-18 L02-21 L03-23 L04-27 L05-33 L06-37 L07-43 L08-45 L08-51 L08-57 L08-60 L09-67 L09-71 L09-75 L10-81 L11-97 L11-99 L12-101