Abstract
In this chapter, you are going to learn how to change the color of text written out to the console. We will look at all of the text color options available including background colors and then explore how to customize the background color of the PowerShell console itself. Adding a splash of color to your scripts can help make the text more readable and specific items stand out more. If you need to display an error message, then make it red. If a script has successfully performed a task, then let the user know by using some green text. Let’s dive in.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Waters, I. (2021). Getting Colorful. In: PowerShell for Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7064-6_12
Download citation
DOI: https://doi.org/10.1007/978-1-4842-7064-6_12
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-7063-9
Online ISBN: 978-1-4842-7064-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)