click below
click below
Normal Size Small Size show me how
PowerShell
| Question | Answer |
|---|---|
| What are the three types of PowerShell functions? | Basic Pipeline or filtering Advanced |
| When you run a script, Windows PowerShell executes each command: sequentially? in parallel? | sequentially |
| When a script contains a function, Does Windows PowerShell run the function ? Does Windows PowerShell only note the location of the function? | Windows PowerShell only note the location of the function |
| When Windows PowerShell reaches the end of a script, it forgets all the functions that were defined in the script? True False | True |
| To test a function, you must? | Call the function from inside the script |
| A script module is ? | 1. A Windows PowerShell script that contains one or more functions 1. Has an extension of .psm1 |
| The PSModulePathWindows environment variable lists | The locations where script modules should be saved |
| Modules can be stored in | $Home\Documents\WindowsPowerShell\Modules(for you) c:\Program Files\Windows PowerShell\Modules (for all users) $PSHome\Modules (usually for Microsoft provided modules) |