Powershell General Notes Flashcards

1
Q

What is the powershell that is available cross-platform?

A

Powershell Core

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Cmdlets use a _ naming convention

A

Cmdlets use a Verb-Noun naming convention

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The _ identifies the action for the cmdlet to perform, and the _ identifies the resource on which the cmdlet will perform its action.

A

verb, noun

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What framework was powershell built on?

A

.NET Framework

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the two main PowerShell platforms?

A

Windows PowerShell
PowerShell (originally referred to as PowerShell Core)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What Execution Policy is this :

Limits script execution on all signed scripts. This setting requires that all scripts are signed by a trusted publisher, including scripts that you write on the local computer. It prompts you before running scripts from publishers that you haven’t yet classified as trusted or untrusted. However, verifying the signature of a script doesn’t eliminate the possibility of that script being malicious. It simply provides an extra check that minimizes this possibility.

A

AllSigned

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What Execution Policy is this :

This is the default execution policy for Windows server computers. Scripts can run, but the policy requires a digital signature from a trusted publisher on scripts and configuration files that have been downloaded from the internet. This setting doesn’t require digital signatures on scripts that are written on the local computer.

A

RemoteSigned

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What Execution Policy is this :

This is the default execution policy for Windows client computers. It permits running individual commands, but it doesn’t allow scripts.

A

Restricted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What Execution Policy is this :

This is the default execution policy for non-Windows computers, which you can’t change. It allows unsigned scripts to run. This policy warns the user before running scripts and configuration files that aren’t from the local intranet zone.

A

Unrestricted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

You want to start PowerShell 7 from the command line. Which command will you run?

A

pwsh.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

You want to start PowerShell 5.1 from the command line. Which command will you run?

A

powershell.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

_____ are groups of related PowerShell capabilities that are bundled together into a single unit.

A

Modules.

Modules help with organizing cmdlets into distributable units. Microsoft and other software companies provide modules as part of the management tools for their applications and service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What powershell command that verifies the powershell install?

A

$PSVersionTable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What powershell command shows the powershell version?

A

$PSVersionTable.PSVersion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly