|
i appreciate your help in this..
1) I reference logon.bat in the user manager under the profile on each account.
2) When I execute locally: It says "Script error: failed to find/open script!."
3) i double click logon.bat from explorer.. I tried it from the cmd prompt and it says "Script error: error in USE statement!." and then right below that in red text it says "Select".. nothing else..
4) No
5) Yes, what I posted is the entire batch file. I will post the code at the end of this message.
Note: I did not write this.. I am not savvy in this 'language'. LOGON.KIX:
break off
; Syncronize Client's clock with NT Domain
;SETTIME "@lserver"
; Set user's home directory
USE h: @homeshr
; Set SHARE drive based on location of user
Select Case INGROUP("Corporate") use k: "\\server01\public" use z: "\\server01\msds$" Case INGROUP("Fortville") use k: "\\fort01\public" use z: "\\fort01\msds$" Case INGROUP("Marietta") use k: "\\Mar_bo01_nt\public" use z: "\\server01\msds$" Case INGROUP("Midway") use k: "\\Midway\public" use z: "\\midway\msds$" Case INGROUP("St Catherines") use k: "\\SC_BDC_NT\public" use z: "\\sc_bdc_nt\msds$" Case INGROUP("Washougal") use k: "\\Washougal\public" use z: "\\washougal\msds$" Case INGROUP("Wesleyan") use k: "\\Wesleyan\public" use z: "\\server01\msds$" Case INGROUP("West Oak") use k: "\\Westoak\public" use z: "\\server01\msds$" ENDSELECT
; Set group drives based on business fuction
IF INGROUP("Customer Service") use j: "\\mar_bo01_nt\CustServ$" ENDIF IF INGROUP("Executive Assistants") use x: "\\server01\ExecAssist$" ENDIF IF INGROUP("Executives") use n: "\\server01\Executives$" ENDIF IF INGROUP("HR_Payrol") use p: "\\server01\HR_Payrol$" use g: "\\serverhr\adpprog" use n: "\\serverhr\adp$" ENDIF IF INGROUP("HS & E") use s: "\\mar_bo01_nt\HS&E$" ENDIF IF INGROUP("Labs") use L: "\\mar_bo01_nt\labs$" ENDIF IF INGROUP("Marketing") use O: "\\server01\Marketing$" ENDIF IF INGROUP("Notes Users") use T: "\\mar_bo01_nt\Notes Users$" ENDIF IF INGROUP("Plant_Managers") use U: "\\server01\plantmgr$" ENDIF IF INGROUP("QA") use Q: "\\mar_bo01_nt\QA$" ENDIF IF INGROUP("R&D") use R: "\\mar_bo01_nt\R&D$" ENDIF IF INGROUP("Accounting") use V: "\\server01\acct$" ENDIF IF INGROUP("MSDS") use I: "\\mar_bo01_nt\i\groups" ENDIF IF INGROUP("SalesForce") use s: "\\server01\groups\SalesForce" ENDIF
quit
END OF LOGON.KIX
|