O'Reilly logo

PowerShell Troubleshooting Guide by Michael Shepard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Preparing the Scripting Environment

Writing scripts carefully and leveraging the PowerShell language is important, but deploying those scripts into an uncertain environment can cause any number of headaches. Validating that the scripting environment is configured as expected will eliminate many of the potential errors that might otherwise occur. Several methods to check the existing configuration will be presented in this chapter. Many of these techniques are also useful for routine validation after maintenance (patching, upgrading, and so on). In this chapter, we will cover the following topics:

  • Validating the operating system (OS) version and 32/64-bit
  • Validating the service status
  • Validating disk and memory availability
  • Validating network ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required