Book Image

Mastering Windows PowerShell Scripting

By : Brenton J.W. Blawat
Book Image

Mastering Windows PowerShell Scripting

By: Brenton J.W. Blawat

Overview of this book

Table of Contents (22 chapters)
Mastering Windows PowerShell Scripting
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


This chapter explores the many methods you can use to manipulate and parse data with PowerShell. You learned techniques that will help you better work with data and provide a richer experience for individuals using your scripts.

The string manipulation section taught you many different methods to work with strings. This included changing the case, splitting and replacing strings, counting and trimming strings, searching strings, and viewing substrings. The number manipulation section taught you how to use mathematical operations within PowerShell. This section displayed different ways to format numbers, round numbers, and calculating complex mathematical operations. The date time section of this chapter provided you with tools to use when you need to gather date and time information from a system. You learned how to format the get-date cmdlet, manipulate the results, and add or subtract from date values.

This chapter also explored the forcing of data types while working with variables...