” You don’t have permission to access the file or folder” on shared folder

file-sharing

I'm not exactly new to this, but this a new problem for me.

The shared folder is configured to be accessed only by one administrator account. I was able to access it before, but now I'm getting this error :

enter image description here

Same thing happens with shared folders on some other computers, but not all of them. Also I am able to access \\XXX-PC\Desktop from a second computer, so it's not a share configuration problem.

I know you can have only one network session so I restarted this computer (it has worked before when I tried to connect with a second account), but no change.

The windows credential manager is empty:

enter image description here

and I am able to access the computer itself :

enter image description here

It looks like my computer is trying to connect with another account, but I dont know why or how to stop it.

OS in this computer is windows 7.

Best Answer

net use \\XXX-PC\Desktop /delete in cmd ended the previous connection and it was then possible to connect using the administrator account. Current connections can be listed in cmd by simply typing net use. It's also possible to use net use * /delete to end all connections. This last one should be similar to a simple restart.

For some reason I had to play with these commands for a while until I was able to establish connections to the shared folders.

Related Question