#128777 - 2004-11-02 04:00 PM
Urgent Help Required
|
JordansGhost
Fresh Scripter
Registered: 2004-11-02
Posts: 8
Loc: Yorkshire, England
|
I have an issue in that I have no idea how to use kixtart and i dont have time to learn it, I have spent all today trying to get to grips with it and getting no where. I need one of the following.
Simple easy to follow logon scripts that allow me to search the c: drive for any files of normal.dot and delete them. Also to add a custom registry entry in HKCU\Software\Microsoft\Office\10.0\Common\General\
and set the value of USerTemplates to c:\mytemplates
further to that to delete all files in c:\mytemplates1 and then remove the directory.
Either that or easy to follow documents teaching me how to do this very quickly.
Can anyone help PLEASE!!!!
|
|
Top
|
|
|
|
#128779 - 2004-11-02 04:26 PM
Re: Urgent Help Required
|
JordansGhost
Fresh Scripter
Registered: 2004-11-02
Posts: 8
Loc: Yorkshire, England
|
yeah we only need to run this once. we have a package to be deployed by GPO but we need to remove all normal.dot files first to ensure they pcik up the newly deployed one
|
|
Top
|
|
|
|
#128781 - 2004-11-02 04:36 PM
Re: Urgent Help Required
|
JordansGhost
Fresh Scripter
Registered: 2004-11-02
Posts: 8
Loc: Yorkshire, England
|
Please bear in mind I know nothing about kixtart other than some confusion over what I have read today and knowledge of the fact we implement it in the company. Please treat me like a complete idiot.
Can you explain exactly what I need to do to implement this as a script?
|
|
Top
|
|
|
|
#128782 - 2004-11-02 04:48 PM
Re: Urgent Help Required
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Well, here's a complete script:
Code:
BREAK ON
SHELL '%COMSPEC% /C DEL C:\NORMAL.DOT /S >NUL 2>NUL'
$= WRITEVALUE("HKCU\Software\Microsoft\Office\10.0\Common\General", "UserTemplates", "c:\mytemplates", "REG_SZ")
SHELL '%COMSPEC% /C RD /S /Q C:\MYTEMPLATES1'
EXIT 0
Just copy/paste these lines into a file called LOGIN.KIX and run it with KIX32.EXE like this:
C:\> KIX32 LOGIN.KIX
But before you do that ... I get the impression that there is much more to the story here so hang-on before you run it ;0)
Will this be a login script by itself or part of a bigger login script ? You said you want to run this only once for a user ? What OS's are you running this on ? You need help in terms of setting-up this login script in the domain ? Will there be any group checking needed to be done ? Many questions.
If there is someone in your organization that knows Kixtart (get the impression that there is), then I would get on the blower and have them give you the skinny on how things are setup in your org. Maybe even get them to give you the low-down on what more needs to be done.
|
|
Top
|
|
|
|
#128783 - 2004-11-02 04:53 PM
Re: Urgent Help Required
|
JordansGhost
Fresh Scripter
Registered: 2004-11-02
Posts: 8
Loc: Yorkshire, England
|
The person who knew kixtart has left the company so its down to me to sort it.
There is already a logon script setup there so can I add this script to the other one?
Also I only need to run it once but it doesnt matter if it runs more than once, then the script will be removed from the logon script and any final users sorted manually.
Thank you so much for you help so far, is there any teach yourself from the ground up articles I can do when I get time?
|
|
Top
|
|
|
|
#128784 - 2004-11-02 04:55 PM
Re: Urgent Help Required
|
JordansGhost
Fresh Scripter
Registered: 2004-11-02
Posts: 8
Loc: Yorkshire, England
|
by the way, the o/s are XP and 2000 professional
|
|
Top
|
|
|
|
#128788 - 2004-11-02 07:51 PM
Re: Urgent Help Required
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
To do with making this setting only once, this is what we do ... We store a cookie in a custom registry area, for the logon script, in this example at $HKCULOGON and I called the cookie "OfficeCookie". Instead of using just a flag, we use sort of a cookie versioning scheme, so that if we need more changes down the road, we just bump the cookie verison number by one. Start with one, then bump to two, etc ... heres a template of what *we* do, with some of the error checking removed for clarity (this is ripped from our login script) ...
Code:
Break On
$HKCULOGON = "HKCU\Software\AcmeInc\Logon"
$OfficeCookieVersion = 1
If Val(ReadValue($HKCULOGON,"OfficeCookie")) < $OfficeCookieVersion
$= WriteValue("HKCU\Software\Microsoft\Office\10.0\Common\General", "UserTemplates", "c:\mytemplates3", "REG_SZ")
$= WriteValue($HKCULOGON,"OfficeCookie",$OfficeCookieVersion,"REG_DWORD")
ENDIF
Exit 0
-Shawn
|
|
Top
|
|
|
|
#128791 - 2004-11-03 09:48 AM
Re: Urgent Help Required
|
JordansGhost
Fresh Scripter
Registered: 2004-11-02
Posts: 8
Loc: Yorkshire, England
|
Quote:
best place to start is...
what do you know about kix? or scripting in general?
do you know where the logon script is located at on the network?
Yes I know where it is, also I have been coding with VBScript and ASP for some years, I notice KIX is similar.
|
|
Top
|
|
|
|
#128792 - 2004-11-03 09:55 AM
Re: Urgent Help Required
|
JordansGhost
Fresh Scripter
Registered: 2004-11-02
Posts: 8
Loc: Yorkshire, England
|
Ok how about if we add to the script to ensure that after all normal.dot files are removed from the machine a new copy is copied down from \\server1\share1 to the local templates folder
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 1607 anonymous users online.
|
|
|