Chapter 25 Running Scripts

In this chapter, you will learn to:

  • What Is a Script?
  • Executing a Script
  • Creating a Script
  • Scheduling a Script
  • Script Tips and Hints
  • Loading PowerCLI
  • Logging
  • Commenting Code
  • Passing Credentials
  • Getting Help

PowerShell is an incredibly flexible language that is capable of doing many different things, ranging from managing Active Directory to administering many storage arrays, even providing configuration and change management using the Desired State Configuration features. Many VMware administrators are primarily familiar with PowerShell from the perspective of managing virtual infrastructures, and consequently they aren’t necessarily familiar with all the intricacies of managing and executing scripts across ...

Get VMware vSphere PowerCLI Reference 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.