Hi @Anonymous
try this vbs script using VBS script action. Here %photo_file% represent the file path of the file you need to get date taken defined in power automate desktop
Option Explicit
Dim photoPath, folder, filename, shell, folderItems, photoFile, dateTaken,filenameExt
' Replace with the path to your photo file
photoPath = "%photo_file%"
' Get the folder object that contains the photo file
folder = Left(photoPath, InStrRev(photoPath, "\") - 1)
' Get the photo file name
filename = Mid(photoPath, InStrRev(photoPath, "\") + 1)
' Load the shell.application COM object
Set shell = CreateObject("Shell.Application")
' Get the folder items for the folder object
Set folderItems = shell.Namespace(folder).Items()
' Find the photo file in the folder items
For Each photoFile In folderItems
filenameExt= Mid(photoFile.Path, InStrRev(photoFile.Path, "\") + 1)
If filenameExt = filename Then
' Get the photo's date taken property
dateTaken = photoFile.ExtendedProperty("{14B81DA1-0135-4D31-96D9-6CBFC9671A99} 36867")
Exit For
End If
Next
' Output the date taken
WScript.Echo dateTaken
Mark it as solution if it helps !