Powershell - Quiz 7

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

A PowerShell module typically is composed of one or more  ____________.

functions

2
New cards

Which of the commands below would help you to find modules dealing with printing?

Find-Module -name "*print*"

3
New cards

Once a module folder path is in the PSModulePath environment variable, you have to import the module into the current session to use it. Because of PowerShell’s auto-importing feature, if you have a module installed, you can usually call the function you want first, and PowerShell will auto-import the module it belongs to.

True

4
New cards

PowerShell Modules all have the extension _____________

.psm1

5
New cards

To manually import a module xyz, use the ____________________ command.

import-Module -name xyz

6
New cards

______________ are groups of similar functions that are packaged together and distributed for others to use across many scripts. 

Modules

7
New cards

A module can be imported either manually or automatically.

True

8
New cards

Get-Module -_________ displays a list of all of the modules currently available to you within your session.

listavailable

9
New cards

Before using a module, you must 

install it and then import it.

10
New cards

The ___________________ command allows you to see all the modules on your system available to you in your current session.

Get-Module

11
New cards

The ______________________ is a repository of thousands of PowerShell modules and scripts that anyone with an account can freely upload to or download from.

PowerShell Gallery

12
New cards

To add a directory  such as C:\Scripts to the path, for the current PowerShell session only, enter the following

$env:PSModulePath + ';C:\Scripts'

13
New cards

As of PowerShellv3,  PowerShell auto-imports modules when a command is referenced.

True

14
New cards

PowerShel comes with many modules installed by default.

True

15
New cards

Uninstalling and Removing a module both accomplish the same thing.

False

16
New cards

A __________________ function is a function that isn't exported to a user and only works inside a script or module.

private

17
New cards
  • A typical PowerShell module consists of 

  • A. a .psmod1 file (the module)

  • B. a .psmm file

  • C. a .psm1 file (the module)

  • D. a .psd1 file (the module manifest)

  • E. a Folder

C, D & E

18
New cards

Modules that are installed by default are typically stored in

C:\Windows\System32\WindowsPowerShell\1.0 \Modules

19
New cards

You can tell PowerShell to add a new module path by using the ______________ environment variable, which defines each module folder separated by a semicolon

$PSModulePath

20
New cards

To create a .psd1 file template, you can use the ________________ command.

New-ModuleManifest