Slide 6
Slide 6 text
CODE DEFENSIVELY
What could go wrong with this line/what happens if …
Check return codes/values
$?
-PassThru
Try/catch
(Script) Users do the stupidest things – code for it, don’t assume sanity
How could this be misused by a bad actor?
Will this work in another language?
Nobody would be stupid enough to … yes, they would
Protect credentials, secrets, etc
SecureString & PSCredendtial types
Azure Key Vault
Is this date/time local or UTC ?
Parameter validation – ValidateRange, ValidateSet, ParameterSetName, check