PowerShell: Scripting for Server Administration

PowerShell: Scripting for Server Administration

1h 54mBeginner2018-08-17

Authors

Scott M Burrell

Scott M Burrell

Teacher specializing in HR, marketing, and small business management

Course details

Speed up Windows Server administration with PowerShell. This course covers the basics of PowerShell scripting, an important skill for any IT professional working with Windows Server. Instructor Scott Burrell shows how to create new scripts in the editor of your choice, demonstrating options such as Visual Studio Code. He shows how to read and write data from a variety of file types, load prebuilt script modules, program functions, and perform basic administrative tasks using PowerShell and Windows Management Instrumentation (WMI), such as extracting information about remote machines. Using the skills you learn in this training course, you will be able to harness PowerShell to script routine server administration tasks, such as software updates and user management.

Learning objectives
Creating a PowerShell script
Creating scripts in IDE or Visual Studio Code
Working with files
Loading modules
Using functions
Managing servers with WMI
Adding users to a domain

Skills covered

ServerIT AutomationServer AdministrationNetwork and System AdministrationMicrosoftDeep Dive (X:Y)

Concepts

Introduction

  • Create PowerShell scripts
  • What you should know

Create a PowerShell Script

  • About execution policies
  • Manage execution policies
  • Anatomy of a PowerShell script
  • Create scripts in ISE
  • Create scripts in Visual Studio Code

Work with External Files

  • Write to text files
  • Read from text files
  • Work with CSV tables
  • Work with XML and CliXml files

Building Blocks of PowerShell Scripts

  • Install and load modules
  • Build functions
  • Variables in functions and scripts
  • Use functions in scripts

Administer Servers

  • WMI basics
  • Use WMI objects
  • CIM enhancements
  • Import-HotelUsers - Challenge
  • Import-HotelUsers - Solution

Conclusion

  • Next steps
40,000 Toman