Sign up, and you'll be able to vote in polls. Sign up
Feb 12, 2016
3:45:04am
kapcreations Playmaker
One way
In general, you can access any extended property for a file shown in explorer through the shell GetDetailsOf method. Here's a short example, adapted from another answer:

$file = Get-Item IMG_0386.jpg
$shellObject = New-Object -ComObject Shell.Application
$directoryObject = $shellObject.NameSpace( $file.Directory.FullName )
$fileObject = $directoryObject.ParseName( $file.Name )

$property = 'Date taken'
for(
$index = 5;
$directoryObject.GetDetailsOf( $directoryObject.Items, $index ) -ne $property;
++$index ) { }

$value = $directoryObject.GetDetailsOf( $fileObject, $index )


That being said, it would be helpful if you posted your code
kapcreations
Bio page
kapcreations
Joined
Aug 17, 2010
Last login
Apr 28, 2024
Total posts
4,635 (19 FO)