UNC Paths
Cheat sheet · https://pcornel.dk/topic.php?topic=2975
Answer
A UNC path names a network resource as \\server\share\folder\file, without a drive letter. It works in Explorer, cmd and scripts, and \\server\c$ reaches administrative shares.
Remember
- Using the server name allows Kerberos; an IP address forces NTLM.
- Administrative shares like C$ require local admin rights.
- UNC paths work in scripts without mapping a drive.
First checks
Get-ChildItem <path> -Force— contents including hiddenTest-Path <path>— exists?Resolve-Path <path>— full pathGet-Item <path> | fl *— attributes and timestamps
Verify in this order
\\server\share\path → DNS → SMB 445 → authentication → share and NTFS permissions
Where it usually breaks
First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2975