REFERENCE / 01

UNC path vs. mapped drive

They can point to the same folder, but they are not equally portable. The difference matters most when work leaves your desktop.

Two names for one resource

A mapped drive gives a network share a local drive letter such as Z:. A UNC path names the host and share directly, such as \\fileserver\finance. On your computer, both may open the same location.

PROPERTYUNC PATHMAPPED DRIVE
Example\\server\shareZ:\
ScopeNetwork addressUser and session
Good for scriptsYesUsually no
Easy for peopleExplicitShort and familiar

Why mapped drives disappear

Drive mappings are created inside a particular user’s sign-in session. A scheduled task, Windows service, elevated process, or another user may not inherit them. That is why a script can report that Z: does not exist even while File Explorer opens it normally.

Practical rule

Mapped drives are convenient shortcuts for interactive work. Use UNC paths in automation, configuration, documentation, and anything another machine or account must run.

# Prefer this in a script
Copy-Item '\\fileserver\finance\report.xlsx' 'C:\Reports'
Analyze or convert a path →Troubleshoot a connection →