2

When connecting to a shared folder on the network, it is asking for network credentials (username and password), even though I have password protected sharing disabled. What is especially odd is that we can type in random text as the username and password and it works fine.

Is this an error? If not, how can I enter in the fake credentials from a batch file?

I'm using Windows 10 home (latest update). I disabled password protected sharing in sharing options in the control panel.

Mark Deven
  • 1,488
  • 9
  • 40
  • 71

1 Answers1

1

Not really sure how exactly you disabled the "password protected sharing". But what should solve the problem is to allow read (and write, depending on you're goal) for everyone (which I assume you did correctly) and also change the security settings for everyone:

enter image description here

The access via command line I think this is it (but I'm not 100%):

\\<server>\<sharename> /USER:<domain>\<username> <password>
Albin
  • 9,307
  • 11
  • 50
  • 89
  • Hmm okay, for some of the files I can’t do that I can give read but not write. Would the net use command work? – Mark Deven Sep 28 '18 at 15:15
  • @MarkDodsons In this case you don't have the right to access/change the the security settings. You need to log on as a user having enough rights, or change the ownership. If you know why you can not change them on the GUI I can tell you the right command (or just look it up yourself there are about a million of howtos on the web), otherwise it will be a guessing game. – Albin Sep 28 '18 at 15:20
  • No lol I have access to the host computer physically. – Mark Deven Sep 28 '18 at 15:21
  • But some files I don’t want users who connect to be able to write too, but view without having to type credentials. – Mark Deven Sep 28 '18 at 15:22
  • then unfortunately I don't understand you're problem... :S could you please be a little bit more specific, maybe an example? – Albin Sep 28 '18 at 15:27
  • When I type \\computerhostname\ on another pc I want to have instant access to all files (except a few that are read only). However, atm it is asking for credentials. These credentials can be anything (doesn’t have to be valid credentials you can just type 1234,1234) and then it works. – Mark Deven Sep 28 '18 at 15:29
  • I added it to my answer – Albin Sep 28 '18 at 15:36
  • Thanks, will I have to do this every time or only once? – Mark Deven Sep 28 '18 at 15:37
  • The GUI has a option to save the credentials, so the commend line should have the option as well... at least try to search for it before asking, it's not hard to find! ; ) it might be /persistent:yes I'm not 100% sure. – Albin Sep 28 '18 at 15:38
  • Yeah that should be easy to figure out. Thanks for your help. – Mark Deven Sep 28 '18 at 15:39
  • sure thing... it might be /persistent:yes I'm not 100% sure. maybe i confuse it with another command. Let me know if it worked or not. – Albin Sep 28 '18 at 15:41