Chapter 4. Using PowerShell Scripts

After completing this chapter, you will be able to:

  • Understand the reasons for writing Windows PowerShell scripts

  • Make the configuration changes required to run Windows PowerShell scripts

  • Understand how to run Windows PowerShell scripts

  • Understand how to break lines

  • Understand the use of variables and constants

  • Create objects in a Windows PowerShell script

  • Call methods in a Windows PowerShell script

With the ability to perform so many actions from inside Windows PowerShell in an interactive fashion, you may wonder, "Why do I need to write scripts?" For many network administrators, one-line PowerShell commands will indeed solve many routine problems. This can become extremely powerful when the commands are combined into ...

Get Microsoft® Windows PowerShell™ Step By Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.