Media

Script: Media_2026-0923-04.ps1 (dotsource from your Media project folder under Chief of Staff / PowerShell / Projects)
Entry point: Get-MediaInfo
Requires: Windows PowerShell 5.1 or PowerShell 7+ with Shell.Application COM (Windows)

Retrieves properties and metadata for picture and video files — dimensions, camera, GPS coordinates (and reverse-geocoded place when available), duration for video, timestamps, and related Shell / EXIF-style fields. This page documents the media-info helper only; Photo_Project management workflows are not covered here yet.

What it returns

Get-MediaInfo returns a cMedia04 object with fields such as:

Parameters

NameRequiredDefaultPurpose
FullPathYes—Full path to an image or video file
UseBitmapNooffForce System.Drawing.Bitmap decode for resolution / PixelFormat when Shell metadata is thin

Examples

# Dotsource once per session
. "C:\Scripts\Media\Media_2026-0923-04.ps1"

# Basic: properties for one photo
$File = Get-MediaInfo "D:\Photos\sample.jpg"
$File | Format-List

# Video duration + frame size
$Clip = Get-MediaInfo "D:\Video\clip.mp4"
$Clip.Duration
$Clip.Width; $Clip.Height

# Force Bitmap decode when Shell dims are missing
$File = Get-MediaInfo "D:\Photos\sample.jpg" -UseBitmap

How it works

Supported kinds (by extension)

Notes

See also