Introduction to Secure PowerShell Scripting

Final Quiz

Connecting to LMS... Progress: in progress

Assessment

1. Why does secure PowerShell scripting matter?
2. Which input should be treated as untrusted?
3. What does ValidateSet help enforce?
4. Why is Invoke-Expression risky?
5. What is splatting useful for?
6. Why should secrets not be hard-coded in scripts?
7. What is PSCredential commonly used for?
8. Why should scripts avoid unnecessary elevation?
9. What is a useful purpose of PowerShell remoting controls?
10. Why should logs avoid sensitive data?
11. What is the difference between terminating and non-terminating errors at a high level?
12. What can PSScriptAnalyzer support?
13. What can Pester support?
14. Why is WhatIf support useful where appropriate?
15. Which statement best summarizes secure PowerShell scripting?