Page 3 of 4 <1234>
Topic Options
#55557 - 2002-02-22 07:02 PM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Hmmm, yea that might be it.

One of the first things this script does is copy the ini file information to a custom key in the reg.

I am assuming that you have added extra security restrictions?

What OS?

The script needs write access to this reg key

HKEY_LOCAL_MACHINE\SOFTWARE\Logon_Script

or change

$Configregkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Logon_Script"

to point to a spot in the reg that the users have write access rights to. (you will find this in the logon.kix file 12th line down)

let me know if any of that worked

Bryce

Top
#55558 - 2002-02-22 11:23 PM Re: Modular Logon Script
Anonymous
Unregistered


Bryce, it worked! Now, if there is only a way to change permission on that registry key through login script so normal users can have write access...

Or maybe use the SU service to write a key to the registry and give normal users write access to that directory?

I found this software that maybe able to use to change permission on the registry. I haven't really looked that much on this program but I'm sure this will do the job? Its called RegDACL
http://www.heysoft.de/nt/reg/ep-regd.htm

Top
#55559 - 2002-02-23 12:19 AM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
How about we move the reg location of the config file information. Move it to some place that the user will have write access rights.

something like this....

HKEY_USERS\@sid\Software\logon_script

but while this may work for NT/W2k/XP users, i am not able to test the impact on win9x/ME users.

if someone with access to a win9x computer could test the validity of this reg key

HKEY_USERS\@sid\Software

this would help very much.

Bryce

Top
#55560 - 2002-02-25 10:50 PM Re: Modular Logon Script
otakulord Offline
Lurker

Registered: 2002-02-25
Posts: 1
Loc: Tennessee
I was hoping that you could repost and/or email me the newest version of the script "Kix_Logon_script." I am trying to learn this stuff but with everything else I am doing...

Thanks...

Top
#55561 - 2002-02-26 12:58 AM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Because of job related or lack of issues, i had to put this project on the back burner. What is available for DL is what i have.

There are still a lot of things that i want to do to this script. hopefully with in the next couple of months, i will be able to pick this back up.

Now saying that , if you have any question just ask! Because like with the registry permission rights that were exposed a few posts up there might be other snags...

Top
#55562 - 2002-02-26 09:17 PM Re: Modular Logon Script
Anonymous
Unregistered


Bryce, I have some questions. It is regarding to the functions folder. Can I add more udf's on the kix_functions.kix file and will that populate through the custom scripts module?

how about placing the folders(applications, functions, modules, scripts) on a hidden share and placing only logon.bat, logon.kix, and kix files in the netlogon directory? Which files do I edit to arrange that kind of setup? Thanks alot. -jvd

[ 26 February 2002: Message edited by: jvd626 ]

Top
#55563 - 2002-02-26 09:46 PM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Yes you can add a UDF to the kix_functions.kix file and that will be available for the rest of the logon script.

The UDF's are the first thing loaded., and since the custom scripts module is last....

The $runpath variable would be the thing to edit. it is used to define the location of all the other scripts.

Right now $runpath is being set from the logon.bat file to equal %0\..\, the current netlogon folder.

When i first wrote this script, early 4.0 beta, I did not have some of the commands available that we do now, so i had to create work arounds (EXPANDENVIRONMENTVARS being on of them.)

Bryce

Top
#55564 - 2002-03-01 07:58 PM Re: Modular Logon Script
Anonymous
Unregistered


Bryce, I have tested the login script on windows 98 and it doesn't input the config file in the registry. It only places the login_script key and its associating subkeys but there are no values. This also happens on a windows 2000 that has administrative priviledge(oddly, it only works on my test machine, if I deleted the entry in HKLM\software\logon_script\ would that make the script not run on my machine also?)... It seem to only work on HKLM. I have placed the $configfile for win98 back to HKLM and the script works. Any clues to where it can be universal on all Flavors?
Top
#55565 - 2002-03-01 08:21 PM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
you are going to make me hook up a win9x box arn't you!!

ok give me a little bit of time to take a look at this.

Top
#55566 - 2002-03-01 08:38 PM Re: Modular Logon Script
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Did I ever give Bryce a five star rating ?

Wait a sec, let me look ... yup I did that long time ago ... can I give Bryce a second five star rating ?

wait a tick ... crap, the bbs won't let me do that

-Shawn

Top
#55567 - 2002-03-01 09:01 PM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
well, it seems that finding a reg key common to all of the different OS's and that lets users have write access is kinda hard....

(big thanks to Ron aka NTDOC for helping me out with this!)

So... i am am going to split it up, win9x goes X, and NT goes Y

please hold for code update.

Bryce

Top
#55568 - 2002-03-01 09:09 PM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
ok here is a simple fix.... please let me know if this works.

edit logon.kix and replace this line

code:

$Configregkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Logon_Script"

with

code:

select
case @inwin = 2
$Configregkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Logon_Script"
case @inwin = 1
$Configregkey = "HKEY_USER\@sid\Logon_Script"
endselect

I am unable to test this in a domain enviroment, so feedback would be welcome.

I just don't have the desktop space to bring a domain controller online here in my computer room at the house But i did find a win9x box!

Bryce

[ 01 March 2002: Message edited by: Bryce ]

Top
#55569 - 2002-03-02 12:00 AM Re: Modular Logon Script
Anonymous
Unregistered


Hey bryce, By the way, thanks for looking into this, if there's a way to kix in 10 stars into this board, I'd give you 10 kix stars

Anyway, I have tested your workaround and I am having problems running it under windows 2000/NT40 even under admin priviledges. I've done some investigation and found that it is writing it under:

HKEY_CURRENT_USER|HKEY_USER|@sid|Logon_script

I have tried this also but unsuccessful:

code:

$Configregkey = "\Logon_Script"

Any thoughts?

Top
#55570 - 2002-03-02 12:43 AM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
oops! typo!

code:

select
case @inwin = 2
$Configregkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Logon_Script"
case @inwin = 1
$Configregkey = "HKEY_USERS\@sid\logon_script"
endselect

hkey_users not hkey_user!!!

Bryce

[ 02 March 2002: Message edited by: Bryce ]

Top
#55571 - 2002-03-02 10:58 AM Re: Modular Logon Script
Anonymous
Unregistered


Bryce,

Looks great the modular logon script.

Some time ago (3 years) I made a similar logon script which I also posted here, and at Brainbuzz.

Keep up the good work!!

Top
#55572 - 2002-03-04 04:26 PM Re: Modular Logon Script
Anonymous
Unregistered


Bryce I hate to give you bad news but it still doesn't work. I actually went ahead and re-downloaded the script from your site and run it fresh in a new windows 2000 professional machine and its still no go It installs the config ini file to the registry fine. But it doesn't run(or it couldn't read) the commands placed by the config ini. It doesn't give me any errors but it just say "press any key to continue" nor it shows any map drives(in green that I saw on my test machine). It works fine on my test machine or the windows 98 machine. I also tried using the console less kix but it doesn't work either...any thoughts?
Top
#55573 - 2002-03-04 05:33 PM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
are you using local groups?

I found a bug due to a change on how newer versions of of kix4.0 handle local groups.

I fixed it and will update the download in a few minutes.

Bryce

Top
#55574 - 2002-03-04 05:40 PM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
update has been made.
Top
#55575 - 2002-03-04 05:55 PM Re: Modular Logon Script
Anonymous
Unregistered


I am using Global groups and IP subnets. Do I need to download the whole login script or can I just download a specific script that you updated?
Top
#55576 - 2002-03-04 06:38 PM Re: Modular Logon Script
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I updated
\logon.kix
\logon.bat
\functions\kix_funtions.kix
\config.ini

speaking of config.ini, could you post yours? or email it to me.

Top
Page 3 of 4 <1234>


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

Who's Online
0 registered and 194 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.268 seconds in which 0.216 seconds were spent on a total of 13 queries. Zlib compression enabled.

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