log on script help

watts3000

Senior member
Aug 8, 2001
619
0
0
Can someone tell me why this is not working. To be exact the accounting and shipping drives map but the home folders do not work.

Dim WSHNetwork
Set WSHNetwork = WScript.CreateObject("WScript.Network")

WSHNetwork.MapNetworkDrive "m:", "\\dc1\accounting"
WSHNetwork.MapNetworkDrive "S:", "\\dc1\shipping"
WSHNetwork.MapNetworkDrive "k:", "\\dc1\home folders\%username%"