Link to home
Start Free TrialLog in
Avatar of visualjazz
visualjazz

asked on

Pass unc username and password with unc path

Is it possible to pass the unc username and password with unc path

like how ftp and smb support this

eg.

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

I am trying to get a (non domain pc) service access to DFS path.

Is there another way around this? Yes I could bind the PC to the domain and run the service as a domain user but what if I was using linux ?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of visualjazz
visualjazz

ASKER

Don't want it as a drive map - I need to run a service.
where does the service reside?  

if on your machine then you need to run that service as a user with appropriate permissions that can access the unc share
if it is on another machine one solution is to get psexec from sysinternals
psexec \\computername  -u username -p password program arguements
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Im glad we could answer your question. FYI, I have requested assistance to have this thread reopened and split, as I was only trying to add on to your comment ve3ofa....