💻 Software
Get the current UNC path from a local path in powershell
Fresh5 days ago
Mar 15, 202638469 viewsConfidence Score0%
0%
Problem
Assuming I have a mapped drive to and in powershell I'm in the folder how do I convert that to a UNC path, i.e. .
Error Output
M:\
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Get the current UNC path from a local path in powershell
Low Risk
I'm fairly new to PowerShell, so the code below may be poor quality. However, it should get the information you want: $uncPath should contain the UNC path that you are looking for.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix