Page 1 of 1 1
Topic Options
#128777 - 2004-11-02 04:00 PM Urgent Help Required
JordansGhost Offline
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
#128778 - 2004-11-02 04:22 PM Re: Urgent Help Required
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
The second two are just one-liners ...

$= WRITEVALUE("HKCU\Software\Microsoft\Office\10.0\Common\General", "UserTemplates", "c:\mytemplates", "REG_SZ")

SHELL '%COMSPEC% /C RD /S /Q C:\MYTEMPLATES1'


But in terms of scanning the hard-drive(s) and deleting .dots .. your aware that this may add considerably to the user login experience ja ? in terms of it maybe taking more than a few seconds ?

-Shawn

Top
#128779 - 2004-11-02 04:26 PM Re: Urgent Help Required
JordansGhost Offline
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
#128780 - 2004-11-02 04:28 PM Re: Urgent Help Required
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
k, then I would try:

SHELL '%COMSPEC% /C DEL C:\NORMAL.DOT /S >NUL 2>NUL'


Top
#128781 - 2004-11-02 04:36 PM Re: Urgent Help Required
JordansGhost Offline
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 Offline
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 Offline
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 Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 8
Loc: Yorkshire, England
by the way, the o/s are XP and 2000 professional
Top
#128785 - 2004-11-02 05:31 PM Re: Urgent Help Required
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
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?

hook me up on MSN if you want to. (my msn = bryce at isorg dot net)


Edited by Bryce (2004-11-02 05:34 PM)

Top
#128786 - 2004-11-02 05:59 PM Re: Urgent Help Required
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Its times like these I wish we had an online (java) chat room here at Korg.
Top
#128787 - 2004-11-02 07:30 PM Re: Urgent Help Required
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
As Shawn has eluded to. On a slow system with a large hard drive it could take maybe 2 minutes or more to complete, but it would happen EVERY logon. ie. If the user logged off and back on 3 times in the day, it would run 3 times a day every day.

Hopefully Bryce was able to work on this with you further.

Top
#128788 - 2004-11-02 07:51 PM Re: Urgent Help Required
Shawn Administrator Offline
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
#128789 - 2004-11-02 10:28 PM Re: Urgent Help Required
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
This is a reasonable solution for most users and software pushes. However if the machine is used by multiple users it will still launch for each user that logs on and delete the newly installed .DOT file if it was installed previously.

Not wanting to confuse the matter or make things more difficult, just want you to be aware of potential issues.
Shawn's method will work fine for most situations.

Top
#128790 - 2004-11-03 12:58 AM Re: Urgent Help Required
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Good point Ron, we use this "strategy" for one-time user setup only ... for one-time machine setup, thats a different story (tbh, we dont use the login script for that at all, mostly 'cause the user doesn't have permissions for machine setup stuff).
Top
#128791 - 2004-11-03 09:48 AM Re: Urgent Help Required
JordansGhost Offline
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 Offline
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
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.072 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org