nit
This commit is contained in:
parent
420e93482e
commit
20966bc476
|
@ -69,6 +69,8 @@ And run like this:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
name_and_age.ps1 -name "Rose" -age "27"
|
name_and_age.ps1 -name "Rose" -age "27"
|
||||||
|
# or, arguments are also positional!
|
||||||
|
name_and_age.ps1 "Rose" "27"
|
||||||
```
|
```
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
|
|
|
@ -14,7 +14,7 @@ If (!(New-Object Security.Principal.WindowsPrincipal $(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
# otherwise just exit.
|
# otherwise just exit.
|
||||||
exit
|
Exit-PSHostProcess
|
||||||
}
|
}
|
||||||
|
|
||||||
Get-WindowsUpdate -AcceptAll -Install
|
Get-WindowsUpdate -AcceptAll -Install
|
||||||
|
|
Loading…
Reference in a new issue