question

SanyogBhardwaj-3736 avatar image
0 Votes"
SanyogBhardwaj-3736 asked DaisyZhou-MSFT commented

Windows cannot access {share path}. You do not have permission to access {share path}. Contact your network administrator to request access.

Hello All!

I hope you're doing good.

I have Active Directory set-up on Windows Server 2019 and a NAS (on a separate server) with SMB shares, authenticated using Active directory.

As long as the systems (Joined in the Domain) are connected to the network, they are able to access the shared drives and roaming profiles without any hassle.

When we disconnect a system from the network for any random purpose, the offline files stay intact (most of the times). However when we reconnect the system to the network after some time, all the network connected drives and the Redirected folders (documents, pictures, downloads etc) pop up this below error message.
102819-ad-error.png

Shouldnt the Network drives and redirected folders automatically detect the network reconnection and establish communication with Drives and locations? What is wrong here? Is there any configuration I am supposed to change to make the drives automatically connect once the system reconnects to the network? Please help. I always need to log out and login to the account in order to make it work.

Thank you!


windows-active-directory
ad-error.png (9.9 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Latest observation:

I use local DNS service in LAN.
I have a hostname setup for NAS and Active directory servers each.
The drives and folder redirection are setup using the hostnames in the path of the NAS SMB share.
When reconnecting to the LAN, I can ping the NAS server using the hostname. But the drives again produce the same error.
But when I try to open the drives using the IP address of NAS in the path, it opens instantly.
So is it a DNS issue? If its a DNS issue, then why can I still ping the NAS with the hostname but cannot access Network drives?
Do I need to change any DNS settings in Active directory? I am not using Active directory as DNS controller. But I have added up Active directory as domain in the DNS settings of my DNS server (separate server), so the clients identify the domain as the active.directory (example)

0 Votes 0 ·

Hello @SanyogBhardwaj-3736,
How are things going on your end? Please keep me posted on this issue.
If you have any further questions or concerns about this question, please let us know.
I appreciate your time and efforts.

Best Regards,
Daisy Zhou

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.

0 Votes 0 ·

Hi @DaisyZhou-MSFT
Thank you for your response. Actually I tried opening up the same AD profile on other systems and it worked flawlessly.
I removed my system from the domain and added it back to test my profile, same issue.
Other profiles works flawlessly on the same system.

I could never understand why it was happening so I ended up creating a new profile for me and deleting the old one and transferring SMB share access to the new profile. Its now working as expected.

Thanks & regards
Sanyog Bhardwaj

0 Votes 0 ·

Hello @SanyogBhardwaj-3736,

Thank you for your update and sharing.

I'm glad you used an alternate method to solve the problem.



Best Regards,
Daisy Zhou

0 Votes 0 ·

1 Answer

DaisyZhou-MSFT avatar image
0 Votes"
DaisyZhou-MSFT answered SanyogBhardwaj-3736 commented

Hello @SanyogBhardwaj-3736,

Thank you for posting here.

To better understand your question, please confirm the following information at your convenience.

1.Based on "When we disconnect a system from the network and then reconnect the system to the network", did you mean you unplug the network cable? Or take the device to a place outside the domain network or disjoin the device from the domain and then re-join the device to domain?

2.Did you mean there will be such issue for all the shared paths or only one shared path when you disconnect a system from the network and then reconnect the system to the network?

3.Will the Network drives and redirected folders automatically detect the network reconnection and establish communication with Drives and locations after you wait some time? Or no matter how many time you wait, the issue persists?


Meanwhile, please try to capture a network monitor to check if you can find any clue.

Working case (on one machine with one user logged on):

1.Choose the version for your system to download, install it as typical:
https://www.microsoft.com/en-US/download/details.aspx?id=4865
2.Run Network Monitor as administrator.
3.In the bottom left-hand, choose the NIC or NICs you want to capture.
5.Then click “New Capture” and “Start” button,.
6.Run command: run command ipconfig /flushdns to clean DNS cache, run command nbtstat -RR to clean NETBIOS cache, and run command klist purge to clear credential cache.
7.Reproduce the issue (accsee the shared path), when you access successfully, go back to network monitor tool, click "Stop" on the Capture menu, and click "File"->"Save as" to save the captured files (Tip: Please remember the IP address, computer name of the source machine and target machine, the time that the issue reoccurs).


Non-working case (on the same machine with the same user logged on):

2.Run Network Monitor as administrator.
3.In the bottom left-hand, choose the NIC or NICs you want to capture.
5.Then click “New Capture” and “Start” button,.
6.Run command: run command ipconfig /flushdns to clean DNS cache, run command nbtstat -RR to clean NETBIOS cache, and run command klist purge to clear credential cache.
7.Reproduce the issue (accsee the shared path), when you receive the error message above, go back to network monitor tool, click "Stop" on the Capture menu, and click "File"->"Save as" to save the captured files (Tip: Please remember the IP address, computer name of the source machine and target machine, the time that the issue reoccurs).

Compare the working capture and non-working capture ( view the log at the point in time when the problem occurred ).

Tip: As security or privacy information may be involved, the forum does not collect any logs and network packets. It is recommended that you or your team try to compare and analyze the network packets to see if you can find any clues.

Thank you for your understanding and support.

Hope the information above is helpful.

Should you have any question or concern, please feel free to let us know.


Best Regards,
Daisy Zhou

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi! Thank you for the response!

  1. I meant unplugging the network cable from the system.

  2. The issue is with all the shared paths.

  3. They do not reconnect after reconnecting the network. I've waited for hours.

I will try to capture the packets and analyze them. Thank you for the instructions!

Best Regards,
Sanyog



0 Votes 0 ·