I have created the network logon script below, however it gives an error on:
Error: Expected end of statement
Can't figure out correct syntax for it.
Dim objNetwork, strRemotePath1, strRemotePath2
Dim strDriveLetter1, strDriveLetter2
strDriveLetter1 = "F:"
strDriveLetter2 = "P:"
strDriveLetter3 = "S:"
strRemotePath1 = "\Alpha-DC1Fax"
strRemotePath2 = "\Alpha-DC1Public"
strRemotePath3 = "\Alpha-DC1Software"
Set objNetwork = CreateObject("WScript.Network")
' Section which maps two drives, F: and P: and S:
objNetwork.MapNetworkDrive = strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive = strDriveLetter2, strRemotePath2
objNetwork.MapNetworkDrive = strDriveLetter3, strRemotePath3
' Extra code just to add a message box
WScript.Echo "Map drives " & strDriveLetter1 & " & " & strDriveLetter2 & " & " & strDriveLetter3
Thanks for the help!