![]() ![]() ![]() Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "K:","\\Server1\Share" ObjNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive "K:","\\Server1\Share" You can also create a simple batch to dump all drives mapped before you attempt to map the 'K' drive to see what is happening.Īnother thing to note is that your scritp as posted can never have worked withut giving an object error so you are mising som epiece of critical information. If NET USE works then the script will work. There is nothing magical about the script. If you try just those two lines in a login script with a new test user account does it work? I suspect that the drive is really in use. The cahnces are that you have a permanently mapped 'K' drive or you have a broken GP engine on your network. If the message is that the drive is in use then the drive is in use.
0 Comments
Leave a Reply. |