0

I'm using a script which is calling (via sh.run) "net use". On the first computer, net is allowed to be run by my user. On the second one, net is an unauthorized command (restricted by a domain policy).

Could I simply copy/rename/move the net.exe in order to execute it, even if it is not allowed? If not, is there a way to invoke the "GUI style" connector?

4

1 回答 1

2

如何连接H:到的示例\\myserver\users

Dim objNetwork
Set objNetwork = WScript.CreateObject("WScript.Network")
strLocalDrive = "H:"
strRemoteShare = "\\myserver\users"
objNetwork.MapNetworkDrive strLocalDrive, strRemoteShare, False
于 2012-06-21T15:05:22.117 回答