I am trying to map a read-only network share. I can successfully map using the net use command:
However, when I use vbscript:
I get the following error message: "The network name cannot be found."
This is happening on all systems on this particular subnet. Other shares (r+w) on the same server are mapping fine. Thanks.
Paul
Work on Windows, play on Linux.
Code:
C:\net use Z: \\myserver\myshare
The command completed successfully.
However, when I use vbscript:
Code:
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "Z:", "\\myserver\myshare\"
Set objNetwork = Nothing
I get the following error message: "The network name cannot be found."
This is happening on all systems on this particular subnet. Other shares (r+w) on the same server are mapping fine. Thanks.
Paul
Work on Windows, play on Linux.