Overclock.net › Forums › Software, Programming and Coding › Networking & Security › File Server authentication
New Posts  All Forums:Forum Nav:

File Server authentication

post #1 of 2
Thread Starter 
I'm attempting to automate my local logons by creating a batch file to connect to various resources in the network at my job. I'm attempting to utilize the net use command in order to authenticate with a file server, but I don't think I have it correctly. The code is as follows:

net use \\servername\sharedfolder /USER:domain\user /SAVECRED /PERSISTENT:NO

To my understanding, this should use my account with my password to authenticate with the fileserver so that I can then access the fileserver without having to go through the annoying security box. This batchfile is also doing more than this one action, obviously, but this is the only place where I've gotten stuck. I also don't have much experience with net use other than capturing a .wim file in WinPE to a shared folder. Perhaps I've misunderstood net use?
Edited by static2009 - 6/3/13 at 4:56pm
post #2 of 2
Thread Starter 
So I had the syntax slightly wrong. I've fixed it now and have several forms of it for use
Code:
net use \\<servername>\<sharedfolder> /USER:<domain>/<user> <password> /SAVECRED /PERSISTENT:NO

Well, obviously I found out that
Code:
/SAVECRED
and
Code:
/PERSISTENT:NO
conflicted with each other. Fiddling around with it got me past the conflicting switch error. My only problem now is that when I go to
Code:
start \\<servername>\<sharedfolder>
it still brings up the security box.

I'm not certain if it's the permissions on the server that is not allowing me to authenticate, and then open the folder in windows explorer, or if it's the fact that opening the path in windows explorer is a separate instance and therefore needs authentication.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › File Server authentication