Jump to content

Unraid 6.11.5 Shares w/ Win10 requires rejoining every login/reboot, even when set to remember credentials


Recommended Posts

Hey all, I've tried sifting through tons of information about users with share/smb issues, but didn't see mine. Maybe my search terms weren't good enough, either way I could use some help!

 

I have an unraid server running on 6.11.5, I created shared folders, joined them just fine on windows and mac devices, but on windows 10 after you logout they lose access! The drives are still mapped but the credentials are "incorrect". Works fine on Windows 11, what gives? I have a buddy with an unraid server with the exact same issue at their home, so I shouldn't be isolated in this. I've had other NAS's where the shares worked fine for years, so I'm lost at this point.

 

I had to give access to multiple users over a windows server, so I created a batch script to map it on login as a work around, which worked fine but not being a batch wizard it gave access to all users on our domain. It isn't ideal having the user/pass in plain text, but it is fine in this situation. I tried this batch both as below, and if statements with the same command per user. Below worked great, except somehow it gave EVERYBODY on the domain access, not just the users I identified in the If statements. I also tried setting another login script for the several users manually, and using group policy management to try to map drives on login, both are much less convenient.

 

___________________________________________________________________________

Example of my batch:

if '%username%' == 'user1' (call :DrvMap) else GoTo :ENDFOR
if '%username%' == 'user2 (call :DrvMap) else GoTo :ENDFOR

 

:DrvMap
ECHO Please wait... Mapping Drives
net use Z: \\ip.address\Storage /user:UnraidServer\SharedFolder password

GoTo :ENDFOR

:ENDFOR
cls
@exit

___________________________________________________________________________

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...