cheers all,
Its been a long time since I've asked you all a question about a script. but here goes, I am running windows 2000pro machines on a 2000 AD domain with KiXtart 2001. My users run a bat file to start the script.
Here is my Script:
Code:
;**** Created with KiXscripts Editor | http://KiXscripts.com ****
;**** Last Modified on 7/11/2003 at 12:21:56 PM by jdewith ****
Shell ("c:\program files\cisco systems\vpn client\ipsecdialer.exe")
$svr=GetFileTime(\\cicero\cnd\lotus\cndgroup.nsf)
$local=GetFileTime(c:\notes\data\cndgroup.nsf)
del %windir%\system32\drivers\etc\hosts
del %windir%\system32\drivers\etc\lmhosts
Use g: "\\cicero\cnd\@primarygroup\@primarygroup_priv"
Use p: "\\cicero\cnd\@primarygroup\@primarygroup_pub"
Use U: "\\cicero\cnd\users\@USERID"
If ReadValue("hkcu\software\microsoft\office\9.0\common\general","SharedTemplates")<>"c:\templates"
$RK=WriteValue("hkcu\software\microsoft\office\9.0\common\general","SharedTemplates","c:\templates","REG_EXPAND_SZ")
If @ERROR = 0
; ? "9.0 value written" ;if you are having issues with this key being entered run the script in debug mode AND remove the ";" At the beginning of this line
EndIf
EndIf
MD("\\cicero\cnd\lotus\@WKSTA\@USERID") ; The directory that stores all individual system's Lotus Notes .id files
If $local<>$svr ; Copies ONLY the most current cndgroup.nsf to the workstation
Copy "\\cicero\cnd\lotus\cndgroup.nsf" "c:\notes\data"
EndIf
If NOT Exist("\\cicero\cnd\lotus\@WKSTA\@USERID\*.id")
Copy "C:\notes\data\*.id" "\\cicero\cnd\lotus\@WKSTA\@USERID"
EndIf
If NOT Exist("\\cicero\cnd\lotus\@WKSTA\@USERID\names.nsf")
Copy "C:\notes\data\names.nsf" "\\cicero\cnd\lotus\@WKSTA\@USERID"
EndIf
$svrname=GetFileTime('\\cicero\cnd\lotus\@WKSTA\@USERID\names.nsf')
$localname=GetFileTime(c:\notes\data\names.nsf)
If $localname<>$svrname ; Copies the latest Lotus local address book to the server based on the modification date
Copy "C:\notes\data\names.nsf" "\\cicero\cnd\lotus\@WKSTA\@USERID"
EndIf
Call c:\logon\aw.kix
if not exist("C:\Program Files\Dynamic Connect\Session\wanda.dcs")
copy "\\cicero\is_pub\wanda.dcs" "C:\Program Files\Dynamic Connect\Session"
endif
if not exist("c:\documents and settings\@userid\favorites\Creative Nail Design Helpdesk.lnk")
copy "\\cicero\is_pub\Creative*" "c:\documents and settings\@userid\favorites\"
endif
The problem is when the script is run it "shells" to the client just fine but after they enter their password info the rest of the script doesn't go. But if I run the script AGAIN and close the resulting status window everything goes as expected. What can I do to make the script run correctly the first time?
As always,
Thanks for your help!
P.S. I have eliminated the possibility tat it could be a Permissions issue by running the script as an admin as well as a normal user.
thnx