|
Hello everyone - this is my first post, and I hope you guys can help me.
I've only been working on Kixtart on and off for two days now, and need to have a script to map users drives etc. by the end of the week. Now, here is one I tried - it maps the drives OK, but not sure of the syntax - is this correct? As I say, bear in mind I'm a total beginner with this....
OK - to begin with me are using a Windows 2000 Active Directory Network. 90% of our users are using Windows 2000 Pro on their PC's, and the remainder are Windows 98 (I've not put scripting in for 98' yet).
In the user profile settings, their logon file is Logon.bat:
@ECHO OFF
REM Kixtart batch file to call Kixlogon.kix
%0\..\KIX32.exe KIXLOGON.kix
EXIT
The Kixlogon.kix script that is called looks like this:
DEBUG ON
;LOGON SCRIPT NOV 6TH 2002
;------------------ ;Set server details ;------------------
$LSERVER1 = "SERVER1"
$LSERVER2 = "SERVER2"
;---------------------------------------------- ;This displays a message to the user logging on ;----------------------------------------------
SETCONSOLE ("SHOW")
MESSAGEBOX("Welcome to the Network. Please wait while drives are connected",64,8)
;------------------------------------------------------------------------- ;Checks to ensure all files are located on the clients Windows 2000 system ;-------------------------------------------------------------------------
IF NOT EXIST ("C:\WINNT\KIX32.EXE")
COPY "@SERVER2+\NETLOGON\KIX32.EXE" "c:\WINNT" ENDIF
IF NOT EXIST ("c:\WINNT\KXRPC.EXE")
COPY "@SERVER2+\NETLOGON\KXRPC.EXE" "C:\WINNT" ENDIF
IF NOT EXIST ("c:\WINNT\SYSTEM32\KX32.DLL")
COPY "@SERVER2+\NETLOGON\KX32.DLL" "C:\WINNT\SYSTEMS32" ENDIF
IF NOT EXIST ("c:\WINNT\SYSTEM32\KX16.DLL")
COPY "@SERVER2+\NETLOGON\KX16.DLL" "c:\WINNT\SYSTEM32" ENDIF
IF NOT EXIST ("c:\WINNT\SYSTEM32\KX95.DLL")
COPY "@SERVER2+\NETLOGON\KX95.DLL" "C\WINNT\SYSTEM32" ENDIF
;----------------------------------------------- ;Test beep - if you hear this the script has run (so far!) ;-----------------------------------------------
BEEP
;IF INGROUP ("Admin")
; USE J: /DELETE
; USE J: "\\FILESERV\Administration" ;ENDIF
;IF INGROUP ("Buisiness Admin")
; USE J: /DELETE
; USE J: "\\FILESERV\Business Admin" ;ENDIF
;IF INGROUP ("ZONE1")
; USE J: /DELETE
; USE J: "\\FILESERV\Zone1" ;ENDIF
;IF INGROUP ("ZONE2")
; USE J: /DELETE
; USE J:\ "\\FILESERV\Zone2" ;ENDIF
;IF INGROUP ("ZONE3")
; USE J: /DELETE
; USE J: "\\FILESERV\Zone3" ;ENDIF
;IF INGROUP ("ZONE4")
; USE J: /DELETE
; USE J: "\\FILESERV\Zone4" ;ENDIF
;IF INGROUP ("ZONE5")
; USE J: /DELETE
; USE J: "\\FILESERV\Zone5" ;ENDIF
;--------------------------------------------------- ;This deletes all currently connected drive mappings ;---------------------------------------------------
USE J: /DELETE
USE T: /DELETE
;-------------------- ;This maps the drives ;--------------------
USE J: "\\FILESERV\Work"
;-------- ;Test map ;--------
USE T: "\\FILESERV\Profiles"
EXIT
OK - So there is my current 'testing' script.
I have a couple of questions though:
i. How long can a share be that kixtart maps drives to? (For example, if I had: USE "\\FILESERV\Business Management Department" would it work ok?
ii. Also, the part that copies files to your local PC- is that required? I've noticed that even though it runs, no files are present on the client PC....very odd behaviour - or is it supposed to be like that?
Anyway, thanks for any time you can spare on this - it's greatly appreciated.
Many thanks
Regards
Pilot
|