Beyond the Basics



In This Chapter


  • Capitalization
  • Commenting
  • Mind Your Brackets!

Command Output

  • Cmdlet Output Formatting
  • Filtering
  • Splitting
  • Scripting in Color


  • Quotes
  • CIM / WMI
  • Obfuscated Information
  • Code Signing



A good working PowerShell script can be written quickly and without any formal formatting or standards. The script will probably function and perform the tasks it was coded for. However, a useful well-coded script should have more. A script should be easily read by another person, there should be a description of the script at the top and plenty of commenting in the script to provide information about its workings. ...

Get Practical PowerShell Exchange Server 2019 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.