Using the Test-Path command in powershell, how can I tell the difference between a \"folder doesn\'t exist\" and \"access denied\"?
Resolve-Path will do the job, if path not found, will throw an error.
Resolve-Path
https://technet.microsoft.com/en-us/library/hh849858.aspx