Prove the share answers before mapping it
**Test-Path** on the UNC path fails fast and tells you whether the problem is the network or the mapping. **net view** lists what the server publishes, which catches a mistyped share name.
net view \\nas01
Test-Path \\nas01\projects
Resolve-DnsName nas01