Link to home
Start Free TrialLog in
Avatar of Allan_Fernandes
Allan_Fernandes

asked on

Authentication of Shared Drive Programatically

My application requires to copy data to \\yourUNC\path which is password protected
My application is aware of the UserName and Password.
If I use

Net Use \\yourUNC\path /username password

then that Share will be accessible from Windows Explorer too until it is deleted which is a security lapse.
Avatar of McKnife
McKnife
Flag of Germany image

Setup a scheduled task and let the system account do it. network drives are per-user, it won't be accessible by others.
ASKER CERTIFIED SOLUTION
Avatar of ThomasMcA2
ThomasMcA2

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
Use my suggestion and you're protected all the time.