Overview
This Windows PowerShell script scans a selected folder and all subfolders for JPEG photos and generates:
- photo_metadata.csv with GPS, date taken, parsed Title fields, and Excel hyperlinks
- photo_map.kml for Google Earth with embedded images
Portable by design:
All paths are relative. Move the folder anywhere and everything still works.
Download PowerShell Script (.ps1)
General Workflow
- Take photos using the SKHighway Locator app
- Transfer photos to Windows without compression
- Ensure photos are .jpg / .jpeg
- Place all photos into one root folder (subfolders allowed)
- Run the PowerShell script and select the root folder
- Open the CSV in Excel and the KML in Google Earth
Running the Script
PowerShell Console
- Download the script
- Right-click → Properties → Unblock
- Run the following:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Unblock-File "C:\Path\To\SKHighway Locator Powershell Script.ps1"
powershell -ExecutionPolicy Bypass -File "C:\Path\To\SKHighway Locator Powershell Script.ps1"
PowerShell ISE
- Open PowerShell ISE
- File → Open → select the script
- Press F5
- Select your photo root folder
If the folder dialog does not appear, ensure PowerShell ISE is the active window and press F5 again.