cmdlet included in this SnapIn:
Get-ItemMetadata

SYNOPSIS
Gets metadata associated with file system items.

SYNTAX
Get-ItemMetadata -Path <String[]> -WarningAction <ActionPreference> -WarningVariable <String>

DETAILED DESCRIPTION
The Get-ItemMetadata cmdlet retrieves extended metadata associated with file system items (i.e., files and directories). Many of the associated properties are usually only user-accessible via Windows Explorer. The Get-ItemMetadata cmdlet enables these properties to be easily accessible from the Windows PowerShell commandline.

The number of available properties will vary according to the version of Windows. Windows Vista, for example, has a total of 268 properties that may be associated with a given file system item, while Windows XP has only 37. The current source has been updated to work with Windows 8.

PARAMETERS
-Path <String[]>
Specifies a path to one or more locations. Wildcards are permitted.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-WarningAction <ActionPreference>


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable <String>


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

INPUT TYPE
String

EXAMPLES

-------------------------- Example 1 --------------------------

C:\PS>get-itemmetadata C:\Users

This command gets the metadata of the Users directory.

Name : Users
Parent : C:\
Exists : True
Root : C:\
FullName : C:\Users
Extension :
CreationTime : 1/13/2008 2:54:42 AM
CreationTimeUtc : 1/13/2008 8:54:42 AM
LastAccessTime : 5/16/2008 3:01:40 AM
LastAccessTimeUtc : 5/16/2008 8:01:40 AM
LastWriteTime : 5/16/2008 3:01:40 AM
LastWriteTimeUtc : 5/16/2008 8:01:40 AM
Attributes : Directory

-------------------------- Example 2 --------------------------

C:\PS>get-itemmetadata "C:\Users\Public\Public Pictures\Sample Pictures\Forest.jpg" | format-list -property *

This command gets all of the metadata associated with the Forest.jpg image. The result is piped to the Format-List cmdlet. The command uses the Property parameter with a value of * (all) to display all properties. Because the name of the -property parameter is optional, you can omit it, and type the command as: "format-list *".

Size : 648 KB
Type : JPEG Image
Date modified : 11/2/2006 10:05 AM
Date created : 11/2/2006 10:06 AM
Date accessed : 11/2/2006 10:05 AM
Perceived type : Image
Owner : SYSTEM
Kinds : Picture
Date taken : ‎4/‎25/‎2005 ‏‎2:00 AM
Rating : 3 Stars
Authors : Darrell Gulin
Copyright : (c) Darrell Gulin/Photodisc Red/Getty Images
Dimensions : ‪1024 x 768‬
Computer : SEVEN (this computer)
Filename : Forest
Bit depth : 24
Horizontal resolution : ‎96 dpi
Width : ‎1024 pixels
Vertical resolution : ‎96 dpi
Height : ‎768 pixels
Importance : Normal
Shared : No
Folder name : Sample Pictures
Folder path : C:\Users\Public\Public Pictures\Sample Pictures
Folder : Sample Pictures (C:\Users\Public\Public Pictures)
Path : C:\Users\Public\Public Pictures\Sample Pictures\Forest
Link status : Unresolved
PSPath : C:\Users\Public\Pictures\Sample Pictures\Forest.jpg
PSProvider : Microsoft.PowerShell.Core\FileSystem
PSChildName : Forest.jpg
PSIsContainer : False
ReparsePoint :
Name : Forest.jpg
Length : 664489
DirectoryName : C:\Users\Public\Pictures\Sample Pictures
Directory : C:\Users\Public\Pictures\Sample Pictures
IsReadOnly : False
Exists : True
FullName : C:\Users\Public\Pictures\Sample Pictures\Forest.jpg
Extension : .jpg
CreationTime : 11/2/2006 10:06:33 AM
CreationTimeUtc : 11/2/2006 3:06:33 PM
LastAccessTime : 11/2/2006 10:05:42 AM
LastAccessTimeUtc : 11/2/2006 3:05:42 PM
LastWriteTime : 11/2/2006 10:05:42 AM
LastWriteTimeUtc : 11/2/2006 3:05:42 PM
Attributes : Archive