3 options
Learn PowerShell Core 6.0 : automate and control administrative tasks using DevOps principles / David das Neves, Jan-Hendrik Peters.
- Format:
- Book
- Author/Creator:
- das Neves, David, author.
- Peters, Jan Hendrik, author.
- Language:
- English
- Subjects (All):
- Windows PowerShell (Computer program language).
- Information technology--Management.
- Information technology.
- Physical Description:
- 1 online resource (543 pages) : illustrations
- Edition:
- 1st edition
- Place of Publication:
- Birmingham ; Mumbai : Packt Publishing, 2018.
- System Details:
- text file
- Biography/History:
- das Neves David: David das Neves lives with his wife and a small Norwich Terrier close to Dachau, Germany. He was born and grew up in Germany, but his name is Portuguese and means "from the snows. ". He is a typical IT guy and started his career as a software engineer. Afterward, he moved into consultancy and customer-facing roles at companies like Microsoft and Google, with the latest stop being Media Markt Saturn. There he works as a Principal Engineer focusing on the Cloud topics, directly reporting to the VP level. Besides his work, he is strongly connected to the community, writes articles, frequently posts on LinkedIn, organizes several User Groups and events in EMEA, and speaks at international conferences. Acknowledgement: I want to thank my wife, who is tolerating my huge time investments towards my work and this book. You are allowing me to do so. Peters Jan-Hendrik: Jan-Hendrik Peters is an automation and DevOps professional by day, and a developer for the AutomatedLab framework by night. After working at an international retailer automating distributed POS support systems, he started working as a premier field engineer for Microsoft Germany, where he helps customers automate their infrastructure on-premises and in the cloud. When he is not working, he likes to spend his time brewing his own beer, curing his own bacon, and generally doing manual labor.
- Summary:
- Enhance your skills in expert module development, deployment, security, DevOps, and cloud Key Features A step-by-step guide to get you started with PowerShell Core 6.0 Harness the capabilities of PowerShell Core 6.0 to perform simple to complex administration tasks Learn core administrative concepts such as scripting, pipelines, and DSC Book Description Beginning with an overview of the different versions of PowerShell, Learn PowerShell Core 6.0 introduces you to VSCode and then dives into helping you understand the basic techniques in PowerShell scripting. You will cover advanced coding techniques, learn how to write reusable code as well as store and load data with PowerShell. This book will help you understand PowerShell security and Just Enough Administration, enabling you to create your own PowerShell repository. The last set of chapters will guide you in setting up, configuring, and working with Release Pipelines in VSCode and VSTS, and help you understand PowerShell DSC. In addition to this, you will learn how to use PowerShell with Windows, Azure, Microsoft Online Services, SCCM, and SQL Server. The final chapter will provide you with some use cases and pro tips. By the end of this book, you will be able to create professional reusable code using security insight and knowledge of working with PowerShell Core 6.0 and its most important capabilities. What you will learn Get to grips with Powershell Core 6.0 Explore basic and advanced PowerShell scripting techniques Get to grips with Windows PowerShell Security Work with centralization and DevOps with PowerShell Implement PowerShell in your organization through real-life examples Learn to create GUIs and use DSC in production Who this book is for If you are a Windows administrator or a DevOps user who wants to leverage PowerShell to automate simple to complex tasks, then this book is for you. Whether you know nothing about PowerShell or just enough to get by, this guide will give you what you need to go to take your scripting to the next level. You'll also find this book useful if you're a PowerShell expert looking to expand your knowledge in areas such as PowerShell Security and DevOps. Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
- Contents:
- 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 reading
- Chapter 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
- 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 operators
- Bitwise 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
- Chapter 4: Advanced Coding Techniques
- Working with credentials
- Working with external utilities
- Pipeline and performance
- Performance
- Parallel execution.
- Working with APIs
- Creating a REST endpoint
- Create
- Read
- Update
- Delete
- Interacting with a RESTful API
- Working with events
- Object events
- WMI events
- Engine events
- Remote events
- Custom formatting
- Custom type extensions
- 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
- Header or disclaimer
- Functions
- Function declaration
- The parameter attribute
- Parameter sets
- Pipeline input
- Cmdlet binding attribute
- Scopes
- Dot-sourcing code
- Help 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
- TFS
- Git
- SVN
- PSScriptAnalyzer
- Chapter 6: Working with Data
- Registry
- Files
- CSV
- XML
- CLIXML
- JSON
- Classes
- Chapter 7: Understanding PowerShell Security
- Current situation around PowerShell
- Is PowerShell a vulnerability?
- Principle of Least Privilege
- The community
- Version 5
- Evergreen
- Secure coding
- Double hop
- ExecutionPolicy
- Bypassing the ExecutionPolicy
- Executing PowerShell without PowerShell.exe
- Constrained language mode
- AppLocker.
- How the Constrained Language Mode is enforced
- Windows Defender Application Control
- Obfuscation
- Logging
- AMSI
- Prioritizing technical security controls
- Chapter 8: Just Enough Administration
- Technical overview
- Session authoring
- Role capabilities
- Merging role capabilities
- Cmdlet visible in one role
- Cmdlet visible in multiple roles
- Validation is used in one role
- Validation is used in multiple roles
- ValidateSet and ValidatePattern are mixed
- Session configurations
- Language mode and session type
- Transcripts
- Accounts
- Connecting users
- Virtual account
- Group-managed service account
- User drive
- Deploying session configurations
- Individual activation
- Distributed activation
- Desired State Configuration
- Use cases
- Chapter 9: DevOps with PowerShell
- What is DevOps?
- WinOps
- DevSecOps
- Why DevOps
- Traceability
- Reliability
- Speed
- Test-driven development
- Continuous integration
- Continuous deployment
- Challenges of DevOps
- The value of PowerShell
- Chapter 10: Creating Your Own PowerShell Repository
- Package management
- Centralization
- Interacting with repositories
- Knowledge management
- Documentation with PlatyPS
- PowerShell repository
- Setup
- Signing
- PowerShellGet
- Execution
- Dedicated user
- JEA
- Deploying and upgrading
- End user updates
- Automatic updates
- JEA servers
- Chapter 11: VSCode and PowerShell Release Pipelines
- Configuration
- Interface
- Extensibility
- Preparing for a release pipeline
- Working with different hosts
- Plaster
- Creating templates
- Packaging templates
- PSScriptAnalyzer.
- Pester
- Mock
- Mock .NET calls
- Describe
- Context
- It
- Running tests
- Centralized workflow
- Forking workflow
- CI tools
- Bringing it all together
- Chapter 12: PowerShell Desired State Configuration
- Introducing DSC
- Why Desired State Configuration?
- Configurations
- Local Configuration Manager - LCM
- Push
- When to use
- Pull
- Security
- Resources
- Built-in resources
- Community
- Custom
- Composite
- DSC Core
- Chapter 13: Working with Windows
- Retrieving the latest PowerShell version
- WMI CIM
- Delivery Optimization
- Retrieving all log events and files for update issues
- Turning off energy-saving mechanisms
- Verifying installed updates
- Working with apps
- EventLog
- ETL parsing
- Convert-PPTX to PDF
- Chapter 14: Working with Azure
- Azure 101
- Resource groups
- Tags
- PowerShell in Azure Cloud Shell
- The Azure drive
- Resource group deployment
- Finding templates
- Parameters and variables
- Functions in templates
- Individual deployments
- Chapter 15: Connecting to Microsoft Online Services
- Office 365
- Exchange Online
- Using some cmdlets
- SharePoint Online
- Microsoft Teams
- Chapter 16: Working with SCCM and SQL Server
- System Center Configuration Manager
- PowerShell App Deployment Toolkit
- SQL Server
- Working with the SqlServer module
- The SQL Provider
- Connecting to SQL instances
- Running manual queries
- Working with availability groups
- Masterkeys, encryption, and credentials
- Working with the dbatools module
- Discovering SQL instances.
- Connecting to SQL instances - the SqlInstance parameter
- PowerShell to SQL
- Navigating the module
- Backup, restore, and test
- Deploying maintenance insight tools
- Migrations made easy
- Working with the Reporting Services module
- Connecting to the Reporting Services server
- Administrating the service
- Managing the data in the service
- Working with content
- Navigating the structure
- Exporting content
- Importing content
- Configuring SSRS servers
- Working with the dbachecks module
- Feel the power
- Chapter 17: PowerShell Deep Dives
- Creating XAML GUIs with PSGUI
- Scalable DSC configuration
- The problem
- The setup
- Configuration data
- Build
- ConvertFrom-String
- LINQ
- OpenFileDialog
- Username to Security Identifier (SID)
- SHiPS
- PSDefaultParameterValues and PSBoundParameters
- PSDefaultParameterValues
- PSBoundParameters
- ConvertTo-Breakpoint
- Appendix A: PowerShell ISE Hotkeys
- Keyboard shortcuts for editing text
- Keyboard shortcuts for running scripts
- Keyboard shortcuts for customizing the view
- Keyboard shortcuts for debugging scripts
- Keyboard shortcuts for Windows PowerShell tabs
- Keyboard shortcuts for starting and exiting
- References
- VSCode Hotkeys
- Default keyboard shortcuts
- Basic editing
- Rich languages editing
- Navigation
- Editor/Window management
- File management
- Display
- Search
- Preferences
- Debug
- Tasks
- Extensions
- Assessments
- Other Books You May Enjoy
- Index.
- Notes:
- Includes bibliographical references.
- Description based on print version record.
- ISBN:
- 9781788835473
- 1788835476
- OCLC:
- 1048771764
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.