Page 1 of 1 1
Topic Options
#38046 - 2003-03-19 01:58 PM New to kix...Have some questions???
scbmw017 Offline
Lurker

Registered: 2003-03-19
Posts: 1
I am having trouble creating a kix script. I know to create a kix script you use wordpad and then change the file extension to kix. Well once I do that and put it in the repl\exports\scripts folder It doesn't seem to work. I copied it exactly from another kix file and just changed the words. I also added it into the main logon script which calls on that script but as soon as I close it it tells me it is changing the format and then when I open it up again the change I just made is gone. Can someone out there help me or tell me exactly how to create a kix script. Any help would be exactly appreciated.
Top
#38047 - 2003-03-19 02:01 PM Re: New to kix...Have some questions???
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Sounds to me that your issue is with WORDPAD. Try Notepad.exe as it does not display such a dialog box to confuse you.

You will have to be able to edit the file before we can help you with KiXtart related issue. [Wink]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#38048 - 2003-03-19 06:53 PM Re: New to kix...Have some questions???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
every admin should have "don't show known file-extensions"

and if you use wordpad to modify your scripts, add the setting to save as text by default.
_________________________
!

download KiXnet

Top
#38049 - 2003-03-19 10:43 PM Re: New to kix...Have some questions???
Norman Zhang Offline
Fresh Scripter

Registered: 2003-02-07
Posts: 28
Loc: BC, Canada
You put your logon script in

%systemroot%\system32\repl\import\scripts

export is for you replicate the scripts to other domain controllers.

Norman

Top
#38050 - 2003-03-19 10:58 PM Re: New to kix...Have some questions???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hehee!
I didn't see that.
mm... shouldn't that work too if replication is off and you copy it manually to all? [Wink]

well spotted norman!
_________________________
!

download KiXnet

Top
#38051 - 2003-03-19 11:24 PM Re: New to kix...Have some questions???
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
He never said that replication was ON or OFF. The better question to a new user would be to ask if Directory Replication was enabled. The follow-up question should be if you do a
quote:
Dir \\server\netlogon
are your script files and Kixtart listed?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#38052 - 2003-03-20 02:10 PM Re: New to kix...Have some questions???
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
When I used to teach MCSE classes, I would start with "Rules for Admins" even before we opened the MOC books..

1. NEVER use wordpad for scripts - while it can write .TXT files, it also can write .RTF and other incompatible formats with a .TXT extension. Re-opening the faulty doc in WordPad makes it appear OK, so you begin pulling hairs wondering what the problem is... Until you "type" the command and get gibberish.

2. Be explicit opening/creating files with notepad. If you want to edit the LMHOSTS (which doesn't exist by default), type "notepad LMHOSTS." - note the ending DOT.. this tells notepad that there is NO extension, otherwise it will happily add a .TXT extension and your file won't work.

Which brings us to
3. ALWAYS set up your explorer environment. Explorer was designed for users, and with that in mind, to protect the O/S from the user! You're an admin (or will be one shortly).. you need to know what's going on.
a. Open explorer from My Computer so you aren't many levels deep in your local machine. Odds are, you'll be working on a network drive anyway.
b. Set your default View to DETAIL - you need as much info as possible to make intelligent decisions. You can always change it when you need to.
c. This varies between NT, 2K, and XP, but generally:
- Show ALL files
- Don't Hide Extensions for known file types (you'll wind up with "install.bat.txt" when it shows "install.bat" !)
- Show compressed/encrypted files in color
- Show FULL PATH in title bar or status bar (always know EXACTLY where you are - you have just as much power to do it wrong as to do it right)
- For 2K and XP systems: Display the contents of System Folders and Don't remember individual folder settings.

4. Regardless of what Microsoft says, the Command Line is not dead. Put a shortcut at the top of your start menu to keep it handy, then customize it to provide a comfortable view (color combo, font size) and for NT, set the buffer from 24 to 300 lines so you can scroll back to see that error message that flew by.

Well, that's about all I can remember B.C. (before coffee) this morning.

Glenn

Oh yeah - research the info here on login scripts - they're powerful, but setting them up the first time is a bit tricky if you have more than one Domain Controller - you need to enable replication, put the files into the correct folder, enable the services, and - possibly - redefine the file and service permissions to use the Replicate account.
_________________________
Actually I am a Rocket Scientist! \:D

Top
#38053 - 2003-03-20 03:02 PM Re: New to kix...Have some questions???
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I have a point #5:

5) Read the manuals! [Big Grin]

Anyway, the original poster did not specify how the script is called. If I just pust a text file into the NETLOGON folder, then of course, nothing will happen. The script will only get executed is set up properly via login batch file or similar entries in the User Manager.

scbmw017: Pleas etake a look at the KiXtart Manual and follow it's instructions to set up a basic login script. you can also reference the FAQ Forum, e.g. Kixtart Starter's Guide

[ 20. March 2003, 15:13: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#38054 - 2003-03-20 03:08 PM Re: New to kix...Have some questions???
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
But it takes out all the sporting fun if you don't 'Hide extensions for known file types'. SysAdmins should be smart enough to guess the extension just by looking at the icon!

And what's all this talk of WorPad and NotePad? In my day we used EDLIN or COPY CON.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#38055 - 2003-03-20 07:39 PM Re: New to kix...Have some questions???
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Hmmm.. some good advice here. Looks like we lost our manner though.

Welcome to the board scbmw017

I hope that your question was answered or that you were able to locate the information you were looking for here on the board or in the manual.

Glenn... 300 lines. Nah! I set mine to 2,500 and liberally still use the command line.

Top
#38056 - 2003-03-20 07:49 PM Re: New to kix...Have some questions???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
les, I remember the times of kix 3.xx

back then, if you used special characters in notepad, it was screwed around in the kix-console.

I had to code every word that had finnish characters in it, in edit.com [Wink]

but, like you said, windows dudes have experienced the times of copy con.

even linux/unix world hasn't lived that experience after 70ies.

btw, after longhorn will be published, most of us will loose their job...
so, advice, study the console. study also unix-like console.
it will not be far away when the knowledge will be needed.
_________________________
!

download KiXnet

Top
#38057 - 2003-03-21 04:56 AM Re: New to kix...Have some questions???
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Doc:

300 is just enough to point out that 24 isn't enough!

2500?? and it's all gone the first time a CLS runs! [Wink]

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#38058 - 2003-03-21 01:44 PM Re: New to kix...Have some questions???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
300 is good but width is more important [Razz]
it has to be 150 at minimum and I keep it normally around 500.
_________________________
!

download KiXnet

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
0 registered and 1067 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.134 seconds in which 0.064 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