Bag om PowerShell 7 Workshop
Leverage PowerShell 7 to write code on Windows, Linux, and Raspberry Pi to accomplish real-world tasks with this practical guide
Key FeaturesMaster the art of coding with Microsoft's free, open-source cross-platform languageUnderstand essential programming concepts such as loops and objects through practical examplesPractice using PowerShell 7 with websites, APIs, and physical computing devices like Raspberry PiPurchase of the print or Kindle book includes a free PDF eBookBook DescriptionDiscover the capabilities of PowerShell 7 for your everyday tasks with this carefully paced tutorial that will help you master this versatile programming language.
The first set of chapters will show you where to find and how to install the latest version of PowerShell, providing insights into the distinctive features that set PowerShell apart from other languages. You'll then learn essential programming concepts such as variables and control flow, progressing to their applications. As you advance, you'll work with files and APIs, writing scripts, functions, and modules. You'll also gain proficiency in securing your PowerShell environment before venturing into different operating systems.
Enriched with detailed practical examples tailored for Windows, Linux, macOS, and Raspberry Pi, each chapter weaves real-world scenarios to ignite your imagination and cement the principles you learn. You'll be able to reinforce your understanding through self-assessment questions and delve deeper into the principles using comprehensive reading lists.
By the end of this book, you'll have the confidence to use PowerShell for physical computing and writing scripts for Windows administration.
What you will learnGrasp the distinctive object-oriented nature of PowerShell 7Explore the practical applications of standard programming concepts, such as control flowFind out how to interact with websites and APIsImplement best practices to secure your PowerShell environment and write secure codeGet to grips with writing scripts, functions, and modulesDevelop the skills to troubleshoot your codeDeploy PowerShell on various operating systemsWho this book is forThis book is for system administrators, PowerShell developers, and cloud and DevOps engineers seeking comprehensive insights into PowerShell 7 and its applications in daily tasks. Anyone getting started with PowerShell will also find this book useful. Familiarity with at least one programming language will help you follow along more easily.
Table of ContentsIntroduction to PowerShell 7 - What It Is and How to Get ItExploring PowerShell Cmdlets and SyntaxThe PowerShell Pipeline - How to String Cmdlets TogetherPowerShell Variables and Data StructuresPowerShell Control Flow - Conditionals and LoopsPowerShell and Files - Reading, Writing, and Manipulating DataPowerShell and the Web - HTTP, REST, and JSONWriting Our First Script - Turning Simple Cmdlets into Reusable CodeDon't Repeat Yourself - Functions and ScriptblocksError Handling - Oh No! It's Gone Wrong!Creating Our First ModuleSecuring PowerShellWorking With PowerShell 7 and WindowsPowerShell 7 for Linux and macOSPowerShell 7 and the Raspberry PiWorking with PowerShell and .NET
Vis mere