PowerShell Series [Part 18] Improving Scripts

preview_player
Показать описание
Welcome to Orensha Tech's PowerShell Series! In [Part 18], we go over improving PowerShell scripts.

We created a basic script in [Part 17], and now we are going to cover ways that we can add more functionality.

The primary way we do this is by adding Cmdlet Binding, which activates native PowerShell features and applies them to your scripts.

We look at adding Mandatory Parameters, Validating Input, Declaring Types and adding Parameter Aliases.

Lastly, we cover Write-Verbose and how to add commentary to the Verbose information stream.

#powershell #powershelltraining #scripting #visualstudiocode #coding #informationtechnology #technology #systemadministration #sysadmin #devops #automation

00:00 Introduction
00:58 Returning Objects
03:12 Cmdlet Binding
04:23 Mandatory Parameters
06:28 Declaring Types
07:57 Parameter Aliases
09:21 Input Validation
12:00 Write-Verbose
Рекомендации по теме
join shbcf.ru