Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Mastering Windows PowerShell Scripting (Second Edition)
  • Toc
  • feedback
Mastering Windows PowerShell Scripting (Second Edition)

Mastering Windows PowerShell Scripting (Second Edition)

By : Chris Dent, Brenton J.W. Blawat
3.3 (8)
close
Mastering Windows PowerShell Scripting (Second Edition)

Mastering Windows PowerShell Scripting (Second Edition)

3.3 (8)
By: Chris Dent, Brenton J.W. Blawat

Overview of this book

PowerShell scripts offer a handy way to automate various chores. Working with these scripts effectively can be a difficult task. This comprehensive guide starts from scratch and covers advanced-level topics to make you a PowerShell expert. The first module, PowerShell Fundamentals, begins with new features, installing PowerShell on Linux, working with parameters and objects, and also how you can work with .NET classes from within PowerShell. In the next module, you’ll see how to efficiently manage large amounts of data and interact with other services using PowerShell. You’ll be able to make the most of PowerShell’s powerful automation feature, where you will have different methods to parse and manipulate data, regular expressions, and WMI. After automation, you will enter the Extending PowerShell module, which covers topics such as asynchronous processing and, creating modules. The final step is to secure your PowerShell, so you will land in the last module, Securing and Debugging PowerShell, which covers PowerShell execution policies, error handling techniques, and testing. By the end of the book, you will be an expert in using the PowerShell language.
Table of Contents (18 chapters)
close

What this book covers

Chapter 1, Introduction to PowerShell, introduces PowerShell and why it is applicable to the IT community. This chapter discusses the types of Microsoft systems that leverage PowerShell and why it's important to learn this scripting language.

Chapter 2, Working with PowerShell, talks about finding and using commands and parameters.

Chapter 3, Modules and Snap-Ins, shows how to use PowerShell modules and snap-ins.

Chapter 4, Working with Objects in PowerShell, shows how to work with objects in PowerShell.

Chapter 5, Operators, shows how to use operators to test and manipulate data.

Chapter 6, Variables, Arrays, and Hashtables, explains the different mechanisms within PowerShell that are able to store data. These include variables, hashes, and arrays.

Chapter 7, Branching and Looping, shows how to explore conditional statements and how to implement loops in PowerShell.

Chapter 8, Working with .NET, shows how to work with existing classes from the .NET framework in PowerShell.

Chapter 9, Data Parsing and Manipulation, explains different methods to manipulate simple types in PowerShell.

Chapter 10, Regular Expressions, shows the usage of regular expressions in PowerShell scripts. This will provide the user with the ability to provide quick data comparisons.

Chapter 11, Files, Folders and the Registry, explores different methods to interact with common items on the file system and registry.

Chapter 12, Windows Management Instrumentation, explores PowerShell’s ability to interact with WMI. This includes methods by which users can manipulate the WMI to obtain information pertaining to an operating system.

Chapter 13, HTML, XML, and JSON, explores the XML structure and how PowerShell can interact with XML files. This chapter will also explore how to use XML files as answer files for PowerShell scripts.

Chapter 14, Working with REST and SOAP, shows how to use REST or SOAP interfaces.

Chapter 15, Remoting and Remote Management, explores the use of Windows remoting and remote sessions to execute against remote systems.

Chapter 16, Testing, shows how to use PSScriptAnalyzer and Pester to improve the quality of your code.

Chapter 17, Error Handling, shows how to leverage PowerShell’s error handling to work with errors.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete