PS Item Flashcards

1
Q

Gets the item at the specified location.

A

Get-Item

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

Creates a new item.

A

New-Item

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

Copies an item from one location to another.

A

Copy-Item

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

Moves an item from one location to another.

A

Move-Item

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

Deletes the specified items.

A

Remove-Item

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

Renames an item in a Windows PowerShell provider namespace.

A

Rename-Item

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

Changes the value of an item to the value specified in the command.

A

Set-Item

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

Performs the default action on the specified item.

A

Invoke-Item

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

Clears the contents of an item (an alias or a variable), but does not delete the item.

A

Clear-Item

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

Gets the items and child items in one or more specified locations.

A

Get-ChildItem

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

Specifies the path to an item.

A

-Path

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

Get-Item / Get-ChildItem parameter that omits the specified items.

A

-Exclude

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

Get-Item / Get-ChildItem parameter that retrieves only the specified items.

A

-Include

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

Get-Item / Get-ChildItem parameter that specifies a filter in the provider’s format or language.

A

-Filter

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

Get-Item / Get-ChildItem parameter that allows the cmdlet to get items that cannot otherwise be accessed, such as hidden items.

A

-Force

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

New-Item parameter that specifies the name of the new item.

17
Q

Get-ChildItem parameter that gets the items in the specified locations and in all child items of the locations.

18
Q

The parent object of DirectoryInfo and FileInfo Object Classes

A

System.IO.FileSystemInfo

19
Q

PowerShell object type returned when Get-Item is given a path to a directory

A

System.IO.DirectoryInfo

20
Q

PowerShell object type returned when Get-Item is given a path to a file.

A

System.IO.FileInfo

21
Q

Attributes for the current file or directory.

A

Attributes

22
Q

Creation time of the current file or directory.

A

CreationTime

23
Q

Creation time, in coordinated universal time (UTC), of the current file or directory.

A

CreationTimeUtc

24
Q

The parent directory of a file.

25
A string representing the full path of the parent directory of a file.
DirectoryName
26
A value indicating whether the file or directory exists.
Exists
27
The string representing the extension part of the file.
Extension
28
The full path of the directory or file.
FullName
29
A value that determines if the current file is read only.
IsReadOnly
30
The time the current file or directory was last accessed.
LastAccessTime
31
The time, in coordinated universal time (UTC), that the current file or directory was last accessed.
LastAccessTimeUtc
32
The time when the current file or directory was last written to.
LastWriteTime
33
The time, in coordinated universal time (UTC), when the current file or directory was last written to.
LastWriteTimeUtc
34
The size, in bytes, of the current file.
Length
35
The name of the file.
Name
36
The parent directory of a specified subdirectory.
Parent
37
The root portion of the directory.
Root