#55557 - 2002-02-22 07:02 PM
Re: Modular Logon Script
|
Bryce
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
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
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
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
|
|
|
|
#55562 - 2002-02-26 09:17 PM
Re: Modular Logon Script
|
Anonymous
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
|
|
|
|
#55564 - 2002-03-01 07:58 PM
Re: Modular Logon Script
|
Anonymous
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
|
|
|
|
#55568 - 2002-03-01 09:09 PM
Re: Modular Logon Script
|
Bryce
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
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
|
|
|
|
#55571 - 2002-03-02 10:58 AM
Re: Modular Logon Script
|
Anonymous
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
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
|
|
|
|
#55575 - 2002-03-04 05:55 PM
Re: Modular Logon Script
|
Anonymous
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
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2366 anonymous users online.
|
|
|