12 Things that Powershell can do (so you don't have to)
12 Things that Powershell can do (so you don't have to) Refactoring powershell to delete code.
Garbage in, Garbage out
- CmdLetBinding Write-Verbose Write-Debug Write-error
Write-Host Write-Output
-
What If
-
Switch
-
Parameter Sets
-
Parameter validation ValidateNotNullOrEmpty()]
-
Validation Set ["Prod", "Staging", "Dev"] Validation script
-
Write Output Objects
-
Functional style - using pipes
-
Measure Command
-
Binding Command
-
Execution of script, function or command line tool & - not using strings
-
External functions - psm1 or ps1 Easy imports - dot sourcing
13 Test - Pester to test your code.
Import from dll.
Write .Net dll to consume from powershell
Application
Core library Console application GUI application Web application Powershell interface