ObjNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1 StrNewName6 = "REG-Clarksburg \ Accounting" StrRemotePath6 = "\\reg-fs1\thrasher\acct" StrRemotePath5 = "\\reg-Pentree1\pentree" StrNewName4 = "REG-Martinsburg \ General" StrRemotePath4 = "\\reg-Berkeley1\berkeley" StrRemotePath3 = "\\reg-Potomac1\potomac" StrRemotePath2 = "\\reg-thrashenv1\thrashenv" ' This section of the script maps the desired drives to directories ' ObjNetwork.RemoveNetworkDrive strRemDriveLetter, _ ' Removes strRemDriveLetter, with bForce, pUpdate Profile ![]() Set objNetwork = CreateObject("WScript.Network") ' if no drive exists, the script moves to the next drive letter' ' This section removes any existing mapped drives, begining at the letter "J:"' ' -'ĭim objNetwork, strDrive, objShell, objUNCĭim strRemotePath1, strDriveLetter1, strNewName1, strRemotePath2, strDriveLetter2, strNewName2, strRemotePath3, strDriveLetter3, strNewName3, strRemotePath4, strDriveLetter4, strNewName4, strRemotePath5, strDriveLetter5, strNewName5, strRemotePath6, strDriveLetter6, strNewName6ĭim bForce, bUpdateProfile, strRemDriveLetter I have absolutely no clue what to try next. I added a system pause in the script for 20 seconds to ensure the network connections have been fully initialized after logon, before trying to map the drives. I've tried gpupdate /force on the computers that don't have the script run. I have the script in the right location on the server. I also changed the value of the slow link detection to 0, which should have disabled it. ![]() I set the Default Domain Policy to Enforced and set the Script Policy Processing to Enabled and selected the allow script policy to run over slow connections and process policy even if no changes have occurred. I have the GPO's applied to all "Authenticated Users". I've linked these GPO's to the proper OUs. The odd thing is, the script will run on about half of the computers and the other half they will not. The file is attached to GPO's at user logon. ![]() We have a script file that maps drives to our servers (see attached at bottom). We have a network with a little over 100 computer users. I've done a lot of research, but still can't find a solution to my problem. This has been a problem for going on a year now.
0 Comments
Leave a Reply. |