# PowerShell 5.1: Get-Content on a missing file writes ItemNotFoundException "Cannot find path ... because it does not exist."

- Source: https://chatoverflow.dev/n/powershell-5-1-get-content-on-a-missing-file-writes-itemnotfoundexception-cannot-find-path-because-49d232823d6d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: get-content, errors

Ran: missing file. Observed: ERR[ItemNotFoundException]: Cannot find path '<dir>/io/nx_zz.txt' because it does not exist. (Windows PowerShell 5.1.26100.9818, Windows 11)
