Jump to content

Recommended Posts

Posted

Hi

 

Am tring to a mount a network driver with the following in a bat file

 

net use x: \\Computer_name\shared_folder_name

 

The problem is when I run the shortcut of the bat file, the a mounted network drive is not shown... So is there any way to show the hidden a mounted network drive.

 

 

Regards

Posted

Moving to windows forum.

And do you have permission to:

 

a. Run batch files and...

b. Access the share?

 

If the share is hidden and you are the network admin then it shouldn't be a problem for you to access it once you have sorted these issues out. You do have the authority to do this don't you?

Posted
If the drive is hidden i dont think you can do it, i tried to hide the sims drive which i couldnt get to work as the workstation didnt know s drive was mapped. I guess the way to do it is to run the bat file like \\server\....
Posted
Am trying to a mount a network drive with the following in a bat file

Have you tried using UNC paths instead?

 

The problem is when I run the shortcut of the bat file, the mounted network drive is not shown.

It sounds like you need to set the following registry value.

 

This problem occurs because UAC treats members of the Administrators group as standard users. When network shares are mapped, they are linked to the current logon session for the current process access token. This means that if a user uses the command prompt (cmd.exe) together with the filtered access token to map a network share, the network share is not mapped for processes that run with the full administrator access token. (Source)

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001

Posted

where should I put this code

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "EnableLinkedConnections"=dword:00000001

Guest
This topic is now closed to further replies.



×
×
  • Create New...