diff --git a/CrashCourse.md b/CrashCourse.md index 918506e..8910e0e 100644 --- a/CrashCourse.md +++ b/CrashCourse.md @@ -69,6 +69,8 @@ And run like this: ```powershell name_and_age.ps1 -name "Rose" -age "27" +# or, arguments are also positional! +name_and_age.ps1 "Rose" "27" ``` # functions diff --git a/update_and_clean.ps1 b/update_and_clean.ps1 index f1b25ab..c43b540 100644 --- a/update_and_clean.ps1 +++ b/update_and_clean.ps1 @@ -14,7 +14,7 @@ If (!(New-Object Security.Principal.WindowsPrincipal $( ) } # otherwise just exit. - exit + Exit-PSHostProcess } Get-WindowsUpdate -AcceptAll -Install