Cargando…

Learn PowerShell Core 6. 0 : Automate and Control Administrative Tasks Using DevOps Principles.

Derived from the .NET Framework, Windows PowerShell is a command-line shell and scripting language designed specifically to automate almost every task. PowerShell helps IT professionals and power users to make system administration simple and handy on Windows. This book will be your end-to-end guide...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Das Neves, David
Otros Autores: Peters, Jan Hendrik
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing Ltd, 2018.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Current PowerShell Versions; Technical requirements; Historical background; Overview of different versions of Powershell; PowerShell Editions ; Windows PowerShell 5.1; PowerShell Core 6; PowerShell Open Source; Downloading the source code; Developing and contributing; The goals of PowerShell Core 6; Dependencies and support; Compatibility; Cross-platform remoting; Azure Cloud Shell; Features of PowerShell in Cloud Shell; Future of PowerShell; Summary; Questions.
  • Further readingChapter 2: PowerShell ISE Versus VSCode; Introduction to currently available tools; Recap; PowerShell ISE; Visual Studio Code; Introduction; Download; Installation; First start; Basics; ISE versus VSCode; Summary; Questions; Further reading; Chapter 3: Basic Coding Techniques; Comments; Regions; Types; Variables; Commands and parameters; Approved verb list; PSDrives and PSProviders; PowerShell's scripting language; Script blocks; Operators; Pipeline operator; Type operators; Arithmetic operators; Assignment operators; Comparison operators ; Logical operators.
  • Split and join operatorsBitwise logical operators; Replace operator; Unary operators; Language constructs; Indentation; If ... ElseIf, and Else; Switch; Loops; for loop; do loop; while loop; foreach loop; break and continue loops; Error handling; Non-terminating; Terminating errors; Remoting; Types of remoting; Summary; Questions; Further reading; Chapter 4: Advanced Coding Techniques; Technical requirements; Working with credentials; Working with external utilities; Pipeline and performance; Performance; Parallel execution; Working with APIs; Creating a REST endpoint; Create; Read; Update.
  • DeleteInteracting with a RESTful API; Working with events; Object events; WMI events; Engine events; Remote events; Custom formatting; Custom type extensions; Summary; Questions; Further reading; Chapter 5: Writing Reusable Code; Best practice guidelines; Code layout; Brace placement; Naming conventions; Aliases and parameter names; Readability; Function design; Output; Cmdlet output; Conveying messages; Compatibility; Comments; Header or disclaimer; Functions; Script blocks; Function declaration; The parameter attribute; Parameter sets; Pipeline input; Cmdlet binding attribute; Scopes.
  • Dot-sourcing codeHelp files; Help-driven development; Code signing; Possible solutions; Digital certificates; Public key Infrastructure; Self-signed certificates for testing; Preventing changes and execution; Proving that changes were made; Modules; Module architecture; Combining multiple functions; The module manifest; Managing complexity; Deployment and upgrade; Version control; Changelog; Recovery; Revert; Checkout; Reset; Branching; Merging; Possible solutions; TFS; Git; SVN; PSScriptAnalyzer; Summary; Questions; Further reading; Chapter 6: Working with Data; Registry; Files; CSV; XML.