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.

A

-Name

17
Q

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

A

-Recurse

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.

A

Directory

25
Q

A string representing the full path of the parent directory of a file.

A

DirectoryName

26
Q

A value indicating whether the file or directory exists.

A

Exists

27
Q

The string representing the extension part of the file.

A

Extension

28
Q

The full path of the directory or file.

A

FullName

29
Q

A value that determines if the current file is read only.

A

IsReadOnly

30
Q

The time the current file or directory was last accessed.

A

LastAccessTime

31
Q

The time, in coordinated universal time (UTC), that the current file or directory was last accessed.

A

LastAccessTimeUtc

32
Q

The time when the current file or directory was last written to.

A

LastWriteTime

33
Q

The time, in coordinated universal time (UTC), when the current file or directory was last written to.

A

LastWriteTimeUtc

34
Q

The size, in bytes, of the current file.

A

Length

35
Q

The name of the file.

A

Name

36
Q

The parent directory of a specified subdirectory.

A

Parent

37
Q

The root portion of the directory.

A

Root