PowerShell Videregående

Formål

At sætte deltageren i stand til at bruge PowerShell-værktøjer, som hjælper til automatisering af dagligdags opgaver.

Beskrivelse

Dette to-dages kursus lærer dig om nogle af de PowerShell-værktøjer, som hjælper til automatisering af mange dagligdags opgaver. 

Vi arbejder fx med PSProviders og PSDrives, formatering af output samt hvordan man kan forespørge på systeminformation med WMI og CIM, således at PowerShell kan bruge disse data.

Derudover gennemgår vi administration af remote computere, og ser hvordan man håndterer baggrundsjob og kalender-skedulerede jobs.

Kurset er meget hands-on orienteret undervejs og slutter med en stor praktisk case, hvor man bruger alt man har lært undervejs.

Kurset er en naturlig fortsættelse af SU-530 PowerShell Grundkursus.

Forudsætninger

Materialer

  • Microsoft Official Curriculum (MOC) materiale

Indhold

Module A: Using PSProviders and PSDrives

This module introduces the PSProviders and PSDrives adapters. A PSProvider is basically a Windows PowerShell adapter that makes some form of storage resemble a disk drive. A PSDrive is an actual connection to a form of storage. You can use these two adapters to work with various forms of storage by using the same commands and techniques that you use to manage the file system.

Lessons 

  • Using PSProviders
  • Using PSDrives

Lab: Using PSProviders and PSDrives

  • Creating files and folders on a remote computer
  • Creating a registry key for your future scripts
  • Create a new Active Directory group

Module B: Advanced scripting

This module introduces you to more advanced techniques that you can use in scripts. These techniques includes gathering user input, reading input from files, documenting scripts with help information and error handling.

Lessons 

  • Accepting user input
  • Overview of script documentation
  • Troubleshooting and error handling
  • Functions and modules

Lab: Accepting data from users

  • Querying disk information from remote computers
  • Updating the script to use alternate credentials
  • Documenting a script

Lab: Implementing functions and modules

  • Creating a logging function
  • Adding error handling to a script
  • Converting a function to a module

Module C: Administering Remote Computers

This module introduces you to the Windows PowerShell remoting technology that enables you to connect to one or more remote computers and instruct them to run commands on your behalf.

Lessons 

  • Using basic Windows PowerShell remoting
  • Using advanced Windows PowerShell remoting techniques
  • Using PSSessions

Lab: Using basic remoting

  • Enabling remoting on the local computer
  • Performing one-to-one remoting
  • Performing one-to-many remoting

Lab: Using PSSessions

  • Using implicit remoting
  • Managing multiple computers

Module D: Using background jobs and scheduled jobs

This module provides information about the job features of Windows PowerShell. Jobs are an extension point in Windows PowerShell, and there are many different kinds of jobs. Each kind of job can work slightly differently, and has different capabilities.

Lessons 

  • Using background jobs 
  • Using scheduled jobs

Lab: Using background jobs and scheduled jobs

  • Starting and managing jobs
  • Creating a scheduled job

Module E: Using advanced Windows PowerShell techniques

This module covers several advanced Windows PowerShell techniques and features. Many of these techniques and features extend functionality that you have learned about in previous modules. Some of these techniques are new and provide additional capabilities.

Lessons 

  • Creating profile scripts 
  • Using advanced techniques

Lab: Practicing advanced techniques

  • Creating a profile script
  • Verifying the validity of an IP address
  • Reporting disk information
  • Configuring NTFS permissions
  • Creating user accounts with passwords from a CSV file