• Complain

Chris Dent - Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition

Here you can read online Chris Dent - Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: Packt Publishing, genre: Children. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Chris Dent Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition
  • Book:
    Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2021
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Grasp advanced PowerShell 7.1 functionalities for effective automation of your environment

Key Features
  • Automate complex tasks, manipulate data, and secure your environment
  • Work with dual code for PowerShell 7 and Windows PowerShell to maintain compatibility with older versions
  • See PowerShell in action, from learning the fundamentals to creating classes, scripts, and modules
Book Description

PowerShell scripts offer a convenient way to automate various tasks, although working effectively with these scripts can be challenging. Mastering PowerShell Scripting helps you to navigate through PowerShells capabilities. This extensively revised edition includes new chapters on debugging and troubleshooting and creating GUIs (online chapter). Learn the new features of PowerShell 7.1 by working with parameters, objects, and .NET classes from within PowerShell 7.1.

This comprehensive guide starts with the basics before moving on to advanced topics, including asynchronous processing, desired state configuration, using more complex scripts and filters, debugging issues, and error-handling techniques. Explore how to efficiently manage substantial amounts of data and interact with other services using PowerShell 7.1. This book will help you to make the most of PowerShells automation features, using different methods to parse data, manipulate regular expressions, and work with Windows Management Instrumentation (WMI).

What you will learn
  • Optimize code with functions, switches, and looping structures
  • Test and debug your scripts as well as raising and catching errors
  • Work with objects and operators to test and manipulate data
  • Parse and manipulate different data types
  • Use jobs, runspaces, and runspace pools to run code asynchronously
  • Write .NET classes with ease within PowerShell
  • Create and implement regular expressions in PowerShell scripts
  • Make use of advanced techniques to define and restrict the behavior of parameters
Who this book is for

This book is for system administrators who want to automate and speed up their processes using PowerShell and Windows PowerShell. Some familiarity with operating systems would be useful, but not essential.

Table of Contents
  1. Introduction to PowerShell
  2. Modules and Snap-Ins
  3. Working with Objects in PowerShell
  4. Operators
  5. Variables, Arrays, and Hashtables
  6. Conditional Statements and Loops
  7. Working with .NET
  8. Strings, Numbers, and Dates
  9. Regular Expressions
  10. Files, Folders, and the Registry
  11. Windows Management Instrumentation
  12. Working with HTML, XML, and JSON
  13. Web Requests and Web Services
  14. Remoting and Remote Management
  15. Asynchronous Processing
  16. Graphical User Interfaces
  17. Scripts, Functions, and Script Blocks
  18. Parameters, Validation, and Dynamic Parameters
  19. Classes and Enumerations
  20. Building Modules
  21. Testing
  22. Error Handling
  23. Debugging and Troubleshooting

Chris Dent: author's other books


Who wrote Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition? Find out the surname, the name of the author of the book and a list of all author's works by series.

Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Mastering PowerShell Scripting Fourth Edition Automate and manage your - photo 1

Mastering PowerShell Scripting

Fourth Edition

Automate and manage your environment using PowerShell 7.1

Chris Dent

BIRMINGHAMMUMBAI Mastering PowerShell Scripting Fourth Edition Copyright 2021 - photo 2

BIRMINGHAMMUMBAI

Mastering PowerShell Scripting

Fourth Edition

Copyright 2021 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Producer: Tushar Gupta

Acquisition Editor Peer Reviews: Divya Mudaliar

Project Editor: Janice Gonsalves

Content Development Editor: Bhavesh Amin

Copy Editor: Safis Editing

Technical Editor: Aniket Shetty

Proofreader: Safis Editing

Indexer: Rekha Nair

Presentation Designer: Pranit Padwal

First published: April 2015

Second edition: October 2017

Third edition: February 2019

Fourth edition: June 2021

Production reference: 1220621

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham

B3 2PB, UK.

ISBN 978-1-80020-654-0

www.packt.com

Contributors
About the author

Chris Dent is an automation specialist with a deep interest in the PowerShell language. Chris has been learning and using PowerShell since 2007 and is often found answering questions in the Virtual PowerShell User Group.

My thanks, as always, go to my wife and kids. Writing a book is an involved project, and this book would not be possible without their forbearance.

About the reviewers

Thomas Lee is a consultant/trainer/writer from England and has been in the IT business since the late 1960s. He has worked for a variety of firms, including ICL, Accenture, Microsoft, Global Knowledge, and QA. He has authored and contributed to numerous books on PowerShell, TCP/IP, Windows, and Windows Server. Thomas holds numerous Microsoft certifications, was an active MCT (for 26 years), and has been awarded Microsoft's MVP award 17 times. He was also a Fellow of the British Computer Society. He has written extensively for the UK trade press, including PC Pro.

Having traveled the world extensively, he entered semi-retirement in 2016 and is spending more time at his cottage in the English countryside, along with his wife, Susan, and their daughter, Rebecca. He continues to write/edit books and articles as well as give back to the community. He is a group administrator for the PowerShell forum on Spiceworks, where he is also a site moderator. He is also an administrator and contributor to the Microsoft PowerShell Community blog.

Mike Roberts is a seasoned IT ninja with experience in automation and tool making.

He maintains https://gngr.ninja to help people get started with and answer questions about PowerShell (as well as C#/.NET).

I would like to thank my family and Holly for their support and encouragement.

Preface

PowerShell is an object-oriented scripting language aimed at Systems Administrators that was invented by Jeffrey Snover. PowerShell was first conceived as far back as 2002 and entered mainstream use in 2006. Exchange 2007 was one of the first major systems to adopt it as an administration language.

PowerShell has come a long way over the years. PowerShell 7 smooths over a lot of the rough edges in the original releases of the cross-platform PowerShell Core (PowerShell 6).

Like any good scripting language, PowerShell is the glue that ties automated processes together. It is a vital part of the Microsoft ecosystem and is great in heterogeneous environments.

Who this book is for

This book is for PowerShell developers, system administrators, and script authors, new and old, who wish to explore the capabilities and possibilities of the language.

What this book covers

Chapter 1, Introduction to PowerShell, introduces you to editors, the help system, command naming, and more.

Chapter 2, Modules and Snap-Ins, explores finding, installing, and using modules in PowerShell. Snap-ins are not part of PowerShell 7 but are briefly explored as a legacy feature of PowerShell 5.

Chapter 3, Working with Objects in PowerShell, looks at the concept of objects in PowerShell and the generic commands available for selecting, filtering, and manipulating values.

Chapter 4, Operators, explores the large variety of operators available in PowerShell.

Chapter 5, Variables, Arrays, and Hashtables are an important topic in PowerShell. The chapter explores the use of variables, as well as the capabilities of collections.

Chapter 6, Conditional Statements and Loops are the tools used to make decisions in scripts in PowerShell. This chapter explores keywords like If, and the different loop styles available.

Chapter 7, Working with .NET, is used to dive into .NET, which was used to create the PowerShell language and is available within PowerShell.

Chapter 8, Strings, Numbers, and Dates are a vital part of any scripting language, and PowerShell is no exception. This chapter explores the different techniques available for working with such values.

Chapter 9, Regular Expressions are an incredibly useful inclusion in PowerShell. You can use regular expressions to make short work of string parsing tasks. The chapter ends by walking through several practical parsing examples.

Chapter 10, File, Folders, and the Registry, explores the use of providers in PowerShell, most used to access the file system and, in Windows, the registry.

Chapter 11, Windows Management Instrumentation, explores WMI in PowerShell, a significant part of the Windows operating system since Windows NT.

Chapter 12, Working with HTML, XML, and JSON, looks at the PowerShell commands and .NET types that you can use to work with these different text-based formats.

Chapter 13, Web Requests and Web Services, explores basic web requests before diving into using PowerShell to work with REST APIs, using the API for GitHub as an example. Support for SOAP in PowerShell 7 is less complete than in PowerShell 5.1. SOAP is explored by way of a web service project via Visual Studio.

Chapter 14, Remoting and Remote Management, examines the configuration and use of PowerShell Remoting in both Windows and Linux.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition»

Look at similar books to Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition»

Discussion, reviews of the book Mastering PowerShell Scripting: Automate and manage your environment using PowerShell 7.1, 4th Edition and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.