Powershell Flashcards

(26 cards)

1
Q

Changes (sets) the current working directory

A

Set-Location

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

Retrieve (gets) the content of a file and displays it in the console

A

Get-Content

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

All available cmdlets, functions, aliases, scripts in current powershell

A

Get-Command

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

Provides detailed information about cmdlets, including usage, parameters, and examples

A

Get-Help

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

Lists all aliases available

A

Get-Alias

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

Lists the files and directories in a location specified with the -Path

A

Get-ChildItem (Like dir or ls)

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

Navigate to a different directory

A

Set-Location (similar to cd)

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

Create a new item

A

New-Item (similar to touch)

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

Removal of directories and files

A

Remove-Item (rmdir and del)

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

Copy or move files and directories

A

Copy-Item
Move-Item (equivalent to move)

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

Read and display contents of a file

A

Get-Content (equivalent to type or cat)

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

To filter objects on specific conditions, returning only those that meet the criteria

A

Where-Object

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

Comparison Operators

A

-eq equal to
-ne not equal
-gt greater than
-ge greater than or equal to
-lt less than
-le less than or equal to
-like

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
16
Q

Select specific properties from objects or limit the number of objects returned

A

Select-Object

17
Q

Text patterns within files

A

Select-String (similar to grep)

18
Q

Comprehensive system information

A

Get-ComputerInfo

19
Q

Managing user accounts and understanding the machine’s security configuration

A

Get-LocalUser

20
Q

System network configuration

A

Get-NetIPConfiguration

21
Q

Details for IP address

A

Get-NetIPAddress

22
Q

Detailed view of all currently running processes

23
Q

Retrieval of information about the status of the machine

24
Q

Monitor active network connections

A

Get-NetTCPConnection

25
Generate file hash
Get-FileHash
26
Executing commands on remote systems
Invoke-Command