- Browse
- » Mastering PowerShell scripting: automate and manage your environment using PowerShell 7.1
Mastering PowerShell scripting: automate and manage your environment using PowerShell 7.1
Author
Publisher
Packt Publishing
Publication Date
2021.
Language
English
Description
Loading Description...
Table of Contents
From the eBook - Fourth edition.
Intro
Copyright
Contributors
Table of Contents
Preface
Chapter 1: Introduction to PowerShell
What is PowerShell?
PowerShell editors
Getting help
Updatable help
The Get-Help command
Syntax
Examples
Parameter
Detailed and Full switches
Save-Help
Update-Help
About_* help files
Command naming and discovery
Verbs
Nouns
Finding commands
Aliases
Parameters, values, and parameter sets
Parameters
Optional parameters
Optional positional parameters
Mandatory parameters
Mandatory positional parameters
Switch parameters
Parameter values
Parameter sets
Common parameters
Confirm and WhatIf
Confirm and ConfirmPreference
WhatIf and WhatIfPreference
Force parameter
PassThru parameter
Introduction to providers
Drives and providers
Introduction to splatting
Splatting to avoid long lines
Conditional use of parameters
Splatting to avoid repetition
Splatting and positional parameters
Parser modes
Experimental features
Summary
Chapter 2: Modules and Snap-Ins
Introducing modules
The Get-Module command
The Import-Module command
The Remove-Module command
PSModulePath in PowerShell
Using Windows PowerShell modules in PowerShell 7
Finding and installing modules
What is the PowerShell Gallery?
The Find-Module command
The Install-Module command
The Update-Module command
The Save-Module command
PowerShellGet 3.0
Repositories
Version ranges
PowerShell repositories
Creating an SMB repository
NuGet repositories
About snap-ins
Summary
Chapter 3: Working with Objects in PowerShell
Pipelines
Standard output
Non-standard output
The object pipeline
Members
The Get-Member command
Accessing object properties
Access modifiers
Using methods
The Add-Member command
Enumerating and filtering
The ForEach-Object command
Begin and End parameters
The Parallel parameter
The MemberName parameter
The Where-Object command
Selecting and sorting
The Select-Object command
Calculated properties
The ExpandProperty parameter
The Unique parameter
Property sets
The Sort-Object command
Grouping and measuring
The Group-Object command
The Measure-Object command
Comparing
Importing, exporting, and converting
The Export-Csv command
The Import-Csv command
Export-Clixml and Import-Clixml
The Tee-Object command
Summary
Chapter 4: Operators
Arithmetic operators
Operator precedence
Addition and subtraction operators
Addition operator
Subtraction operator
Multiplication, division, and remainder operators
Multiplication operator
Division operator
Remainder operator
Assignment operators
Assign, add and assign, and subtract and assign
Multiply and assign, divide and assign, and modulus and assign
Statements can be assigned to a variable
Comparison operators
Case sensitivity
Excerpt
Loading Excerpt...
Author Notes
Loading Author Notes...
More Details
ISBN
9781800206540
9781800208575
180020857
9781800208575
180020857
Staff View
Loading Staff View.

