PS Item Flashcards
Gets the item at the specified location.
Get-Item
Creates a new item.
New-Item
Copies an item from one location to another.
Copy-Item
Moves an item from one location to another.
Move-Item
Deletes the specified items.
Remove-Item
Renames an item in a Windows PowerShell provider namespace.
Rename-Item
Changes the value of an item to the value specified in the command.
Set-Item
Performs the default action on the specified item.
Invoke-Item
Clears the contents of an item (an alias or a variable), but does not delete the item.
Clear-Item
Gets the items and child items in one or more specified locations.
Get-ChildItem
Specifies the path to an item.
-Path
Get-Item / Get-ChildItem parameter that omits the specified items.
-Exclude
Get-Item / Get-ChildItem parameter that retrieves only the specified items.
-Include
Get-Item / Get-ChildItem parameter that specifies a filter in the provider’s format or language.
-Filter
Get-Item / Get-ChildItem parameter that allows the cmdlet to get items that cannot otherwise be accessed, such as hidden items.
-Force
New-Item parameter that specifies the name of the new item.
-Name
Get-ChildItem parameter that gets the items in the specified locations and in all child items of the locations.
-Recurse
The parent object of DirectoryInfo and FileInfo Object Classes
System.IO.FileSystemInfo
PowerShell object type returned when Get-Item is given a path to a directory
System.IO.DirectoryInfo
PowerShell object type returned when Get-Item is given a path to a file.
System.IO.FileInfo
Attributes for the current file or directory.
Attributes
Creation time of the current file or directory.
CreationTime
Creation time, in coordinated universal time (UTC), of the current file or directory.
CreationTimeUtc
The parent directory of a file.
Directory