first commit
This commit is contained in:
17
Exercise Files/03_04/03_04.ps1
Executable file
17
Exercise Files/03_04/03_04.ps1
Executable file
@@ -0,0 +1,17 @@
|
||||
# Reason for analyzing
|
||||
# Scripts are growing
|
||||
# Human error
|
||||
# Scripts are to be shared
|
||||
# Quality standards are recognized as important
|
||||
|
||||
Install-Module -Name PSScriptAnalyzer
|
||||
|
||||
Get-Command -Module PSScriptAnalyzer
|
||||
|
||||
Get-ScriptAnalyzerRule
|
||||
# PSAvoidUsingCmdletAliases
|
||||
# PSAvoidGlobalFunctions -- read details
|
||||
# PSAvoidUsingComputerNameHardcoded -- error
|
||||
# PSAvoidUsingInvokeExpression -- security hole (code insertion)
|
||||
|
||||
Invoke-ScriptAnalyzer -Path ".\03_04-02.ps1"
|
||||
Reference in New Issue
Block a user