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 connectivity