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 に答える