FG

Passing UNC username and password within a UNC path

Fresh3 days ago
Mar 15, 2026137859 views
Confidence Score0%
0%

Problem

Is it possible to pass the UNC username and password within a UNC path? Similar to how FTP and SMB support this: I am trying to get a (non domain PC) service access to a DFS path. Is there another way around this? I could bind the PC to the domain and run the service as a domain user but what if I …

Error Output

smb://user:pass@destination.com/share
ftp://user:pass@destination.com/share

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Passing UNC username and password within a UNC path

Low Risk

On Windows, you cannot put credentials in UNC paths. You must provide them using , , or when asked by Windows. You can also store the password as a "domain credential" using , or using the CredWrite() function in C, both of which are equivalent to c…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment