#130012 - 2004-11-22 02:51 PM
Drive Mapping not working when new ADC added t
|
JamesSawle
Lurker
Registered: 2004-11-22
Posts: 2
|
Your software has worked great up until we added a new Windows 2003 ADC to our network. our Previous server (Windows 2003) called 'link' which is a ADC also have all of the users directories on it. we added a new server, another Windows 2003 server called 'zion', but noticed that when users log into the network, if link see them and they log in via link all is OK, but if Zion see them first and they access the login script from zion then they can not access the user directories, even though the login script has drive mapping for \\link\ etc, it seems to want to exchange \\link\ for \\zion\. why is this????? and how do i get around this problem.
|
|
Top
|
|
|
|
#130013 - 2004-11-22 02:59 PM
Re: Drive Mapping not working when new ADC added t
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Could you please post the code so we can have a look? Be sure to use the "Code" tags and submit properly formatted code so we can more easily read and understand it.
|
|
Top
|
|
|
|
#130014 - 2004-11-22 03:18 PM
Re: Drive Mapping not working when new ADC added t
|
JamesSawle
Lurker
Registered: 2004-11-22
Posts: 2
|
Here is the login script:
Code:
; +---------------------------------------+ ; | Logon Script | ; +---------------------------------------+
;========================================================= ; RESERVED DRIVE MAPPINGS ;========================================================= ; Drive Used for ; F Everyone - App-Procedure ; G Everyone - Main Department Share ; H Everyone - User Directory ; I Everyone - Users Root ; J Application - JobStream ; K Everyone - Apps ScanLink ; L Application - Progress (Remapped Users folder) ; M Spare ; N Spare ; O Spare ; P Spare ; Q Area - Minutes ; R Application - Progress ; S Application - Progress ; T Area / Application - Sunterra ; U Spare ; V Application - ViewPoint ; W Everyone - Apps Root ; X Managers - Managers Share ; Y Directors - Directors Share ; z NETLOGON for Win9x Clients - DO NOT MAP! ;=========================================================
IF @USERID = "ADMINISTRATOR" USE G: "\\LINK\Dept-ITSupport" "Mapping G: as member of ITSupport"? USE I: "\\LINK\Users" "Mapping I: for access to other peoples User Directories"? USE W: "\\LINK\Apps" "Mapping J: for access to Applications"? USE K: "\\LINK\Depts" "Mapping K: for access to Departments"? EXIT ; Administrator won't run any more of this Script ENDIF
IF @USERID = "DK" USE c: "\\client\c$" "Mapping C: for your local machine"? USE F: "\\LINK\App-Procedure" "Mapping F: for your Procedures"? USE H: "\\LINK\User-@USERID" "Mapping H: as your own User Directory"? USE W: "\\LINK\Apps" "Mapping J: for access to Applications"? USE K: "\\LINK\App-ScanLink" "Mapping K: for ScanLink"? USE X: "\\LINK\Dept-Directors" "Mapping X: as you are a Director"? USE V: "\\LINK\App-ViewPoint" "Mapping V: as you use ViewPoint"? USE j: "\\link\Dept-NewBusiness" "Mapping M: as you use PA area"? ENDIF
IF INGROUP("_Dept-Minutes") USE q: "\\LINK\dept-Minutes" "Mapping Q: for Minutes folder"? ENDIF
IF INGROUP("_Dept-Scheme") USE y: "\\LINK\dept-Scheme" "Mapping Q: for Share Scheme share with london"? ENDIF
IF @USERID = "ANDYB" USE c: "\\client\c$" "Mapping C: for your local machine"? USE H: "\\LINK\USER-ANDYB" "Mapping F: for your Procedures"? EXIT ENDIF
IF @USERID = "DIMAZ" USE c: "\\client\c$" "Mapping C: for your local machine"? USE H: "\\LINK\USER-ANDYB" "Mapping F: for your Procedures"? EXIT ENDIF
IF INGROUP("_Users-IsleOfMan") USE F: "\\LINK\App-Procedure" "Mapping F: for your Procedures"? USE H: "\\LINK\User-@USERID" "Mapping H: as your own User Directory"? USE I: "\\VALMET-NT\JStream" "Mapping I: for access to Jobstream Drive"? USE W: "\\LINK\Apps" "Mapping J: for access to Applications"? USE K: "\\LINK\App-ScanLink" "Mapping K: for ScanLink"? ENDIF
IF INGROUP("_DeptMain-London") USE G: "\\LINK\Dept-London" "Mapping G: as Main Member of London"? ENDIF IF INGROUP("_DeptMain-Personnel") USE G: "\\LINK\Dept-Personnel" "Mapping G: as Main Member of Personnel"? ENDIF IF INGROUP("_DeptMain-ITSupport") USE G: "\\LINK\Dept-ITSupport" "Mapping G: as Main Member of ITSupport"? ENDIF IF INGROUP("_DeptMain-SWare") USE G: "\\LINK\Dept-SWare" "Mapping G: as Main Member of SWare"? ENDIF IF INGROUP("_DeptMain-Filing") USE G: "\\LINK\Dept-Filing" "Mapping G: as Main Member of Filing"? ENDIF IF INGROUP("_DeptMain-Operations") USE G: "\\LINK\Dept-Operations" "Mapping G: as Main Member of Operations"? ENDIF IF INGROUP("_DeptMain-Corporate") USE G: "\\LINK\Dept-Corporate" "Mapping G: as Main Member of Corporate"? ENDIF IF INGROUP("_DeptMain-CorpTech") USE G: "\\LINK\Dept-CorpTech" "Mapping G: as Main Member of CorpTech"? ENDIF IF INGROUP("_DeptMain-ReSales") USE G: "\\LINK\Dept-ReSales" "Mapping G: as Main Member of ReSales"? ENDIF IF INGROUP("_DeptMain-Finance") USE G: "\\LINK\Dept-Finance" "Mapping G: as Main Member of Finance"? ENDIF IF INGROUP("_DeptMain-Sales") USE G: "\\LINK\Dept-Sales" "Mapping G: as Main Member of Sales"? ENDIF IF INGROUP("_DeptMain-Typing") USE G: "\\LINK\Dept-Typing" "Mapping G: as Main Member of Typing"? ENDIF IF INGROUP("_DeptMain-Accounts") USE G: "\\LINK\Dept-Accounts" "Mapping G: as Main Member of Accounts"? ENDIF IF INGROUP("_DeptMain-NewBusiness") USE G: "\\LINK\Dept-NewBusiness" "Mapping G: as Main Member of NewBusiness"? ENDIF
IF INGROUP("_App-JobStream") USE I: "\\VALMET-NT\JStream" "Mapping J: as you use JobStream"? ENDIF
IF INGROUP("_Dept-London") USE * "\\LINK\Dept-London" "Mapping ANYDRIVE as also Member of London"? ENDIF IF INGROUP("_Dept-Personnel") USE * "\\LINK\Dept-Personnel" "Mapping ANYDRIVE as also Member of Personnel"? ENDIF IF INGROUP("_Dept-ITSupport") USE * "\\LINK\Dept-ITSupport" "Mapping ANYDRIVE as also Member of ITSupport"? ENDIF IF INGROUP("_Dept-SWare") USE * "\\LINK\Dept-SWare" "Mapping ANYDRIVE as also Member of SWare"? ENDIF IF INGROUP("_Dept-Filing") USE * "\\LINK\Dept-Filing" "Mapping ANYDRIVE as also Member of Filing"? ENDIF IF INGROUP("_Dept-Operations") USE * "\\LINK\Dept-Operations" "Mapping ANYDRIVE as also Member of Operations"? ENDIF IF INGROUP("_Dept-Corporate") USE * "\\LINK\Dept-Corporate" "Mapping ANYDRIVE as also Member of Corporate"? ENDIF IF INGROUP("_Dept-CorpTech") USE * "\\LINK\Dept-CorpTech" "Mapping ANYDRIVE as also Member of CorpTech"? ENDIF IF INGROUP("_Dept-ReSales") USE * "\\LINK\Dept-ReSales" "Mapping ANYDRIVE as also Member of ReSales"? ENDIF IF INGROUP("_Dept-Finance") USE * "\\LINK\Dept-Finance" "Mapping ANYDRIVE as also Member of Finance"? ENDIF IF INGROUP("_Dept-Sales") USE * "\\LINK\Dept-Sales" "Mapping ANYDRIVE as also Member of Sales"? ENDIF IF INGROUP("_Dept-Typing") USE * "\\LINK\Dept-Typing" "Mapping ANYDRIVE as also Member of Typing"? ENDIF IF INGROUP("_Dept-Accounts") USE * "\\LINK\Dept-Accounts" "Mapping ANYDRIVE as also Member of Accounts"? ENDIF IF INGROUP("_Dept-NewBusiness") USE * "\\LINK\Dept-NewBusiness" "Mapping ANYDRIVE as also Member of NewBusiness"? ENDIF IF INGROUP("_Dept-Sunterra") USE T: "\\LINK\Dept-Sunterra"
ENDIF
IF INGROUP("_Dept-Directors") USE X: "\\LINK\Dept-Directors" "Mapping X: as you are a Director"? ENDIF IF INGROUP("_Dept-Managers") USE Y: "\\LINK\Dept-Managers" "Mapping Y: as you are a Manager"? ENDIF
IF INGROUP("_App-ViewPoint") USE V: "\\LINK\App-ViewPoint" "Mapping V: as you use ViewPoint"? "Copying ViewPoint Icons"? $desktoppath = READVALUE("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop") $startmenupath = READVALUE("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Start Menu") SLEEP 1 copy "\\link\desktop-icons$\viewpoint\*.lnk" $desktoppath copy "\\link\desktop-icons$\viewpoint" $startmenupath\ViewPoint copy "\\link\desktop-icons$\viewpoint" "$startmenupath\Programs\ViewPoint\" ENDIF
IF INGROUP("_App-Progress") USE I: /delete USE R: /delete USE S: /delete USE I: "\\TANK\VOL5\DEV\PROGRESS\SPOOLQ" USE R: "\\TANK\VOL5\DEV\PROGRESS\DLCAPP" USE S: "\\TANK\VOL5\DEV\PROGRESS\IFGDB" "Mapping I: R: and S: to \\TANK for Progress System"? USE L: "\\LINK\Users" "Remapping USERS to L: as I: used for PROGRESS"? ENDIF
IF @USERID = "SDS" USE c: "\\client\c$" "Mapping C: for your local machine"? USE *: "\\LINK\User-DJC" "Mapping ANYDRIVE for access to DJC"? USE *: "\\LINK\User-PGB" "Mapping ANYDRIVE for access to PGB"? ENDIF
IF @USERID = "PMB" USE c: "\\client\c$" "Mapping C: for your local machine"? ENDIF
IF INGROUP("_Users-IsleOfMan") $desktoppath = READVALUE("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop") $startmenupath = READVALUE("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Start Menu") $allusersdesktoppath = READVALUE("HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Common Desktop") $allusersstartmenupath = READVALUE("HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Common Start Menu") "Copying various Icons onto your Computer"?
;##### ScanLink del "$allusersdesktoppath\ScanLink Client.lnk" del "$allusersstartmenupath\Programs\ScanLink Client\" copy "\\link\desktop-icons$\scanlink\ScanLink Client.lnk" $desktoppath copy "\\link\desktop-icons$\scanlink\ScanLink Client.lnk" "$startmenupath\Programs\ScanLink Client\"
;##### EBank del "$allusersdesktoppath\*.reg" copy "\\link\desktop-icons$\ebank\*.reg" c:\ copy "\\link\desktop-icons$\ebank\*.lnk" $desktoppath
copy "\\link\desktop-icons$\eq\eQ.url" $desktoppath
;#### AntiVirus Software copy "\\link\desktop-icons$\antivirus\ino.sam" "C:\Progra~1\CA\eTrust\InoculateIT" RUN "\\link\desktop-icons$\antivirus\inoid.exe"
ENDIF
I have only remove some routes that were in this script, but besides them this is the comoplete script.
Thanks
|
|
Top
|
|
|
|
#130016 - 2004-11-22 05:28 PM
Re: Drive Mapping not working when new ADC added t
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
You should add some error checking (@error, @serror) after the USE statements and check the results. This will give you a better idea of why the drive is not mapping. Writing this information to a logfile would give you the ability to review the results.
|
|
Top
|
|
|
|
#130017 - 2004-11-22 05:31 PM
Re: Drive Mapping not working when new ADC added t
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Also, using "USE *" is a not a good thing to do as it can cause confusion and other problems if another drive letter before this that changes the letter this would normally map to.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1046 anonymous users online.
|
|
|