#143071 - 2005-07-06 07:55 PM
Re: kixtart on a windows 2003 server platform
|
ekainyah
Getting the hang of it
Registered: 2005-07-05
Posts: 51
Loc: Ghana
|
NTDOC,in the GPO, under the user configuration\windows settings\Scripts(logon/logoff), then i go into the logon properties and add all the 3 scripts from the netlogon folder. So that is what i have in there
|
Top
|
|
|
|
#143079 - 2005-07-07 09:43 AM
Re: kixtart on a windows 2003 server platform
|
ekainyah
Getting the hang of it
Registered: 2005-07-05
Posts: 51
Loc: Ghana
|
Kat, Now i have only the logon.bat in the GPO and then have the kix32.exe and the logon.kix in the netlogon folder.
|
Top
|
|
|
|
#143080 - 2005-07-07 10:25 AM
Re: kixtart on a windows 2003 server platform
|
ekainyah
Getting the hang of it
Registered: 2005-07-05
Posts: 51
Loc: Ghana
|
Guys, Where should the logon.bat be physically be place? Is it in the netlogon folder or it can be anywhere on the server?
|
Top
|
|
|
|
#143082 - 2005-07-07 10:37 AM
Re: kixtart on a windows 2003 server platform
|
ekainyah
Getting the hang of it
Registered: 2005-07-05
Posts: 51
Loc: Ghana
|
can you explain a little bit further
|
Top
|
|
|
|
#143083 - 2005-07-08 04:21 AM
Re: kixtart on a windows 2003 server platform
|
sixdoubleo
Starting to like KiXtart
Registered: 2004-02-06
Posts: 118
Loc: California, US
|
Go to your GPO screen. Go to User Configuration, Windows Settings, Scripts, Logon.
Remove what you have. Then click Add. Now, do NOT browse to the script. This wont work because your clients to not see the same thing you do. Microsoft shouldnt have even put the option in there.
Instead, type %logonserver%\netlogon\logon.bat as your script name. Leave the parameters field blank.
Save this. Then drop to a command line and do a gpupdate. Then go log off and back on. Should work.
And by the way, for simplicity's sake, I find it best to put EVERYTHING in the "scripts" root directory. Not taking anything away from Les as his method works fine...but when you get multiple GPO's going it can get hard to figure out which script is beneath which GUID directory. So for the above to work you'll need all three files in the scripts root (where you had them to begin with).
Edited by sixdoubleo (2005-07-08 04:34 AM)
|
Top
|
|
|
|
#143084 - 2005-07-08 04:24 AM
Re: kixtart on a windows 2003 server platform
|
sixdoubleo
Starting to like KiXtart
Registered: 2004-02-06
Posts: 118
Loc: California, US
|
Also, as kat suggested, I would eliminate the batch file altogether (once you have this working.)
To do that you would put the script as: %LOGONSERVER%\NETLOGON\kix32
and the script parameters as: %LOGONSERVER%\NETLOGON\mylogon.kix
This is how I run mine and it works fine.
Edited by sixdoubleo (2005-07-08 04:26 AM)
|
Top
|
|
|
|
#143085 - 2005-07-08 07:06 AM
Re: kixtart on a windows 2003 server platform
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
Loc: CA
|
|
Top
|
|
|
|
#143087 - 2005-07-08 06:08 PM
Re: kixtart on a windows 2003 server platform
|
StarwarsKid
Seasoned Scripter
Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
|
Ekainyah, If you're having trouble setting up your logon script via GPOs perhaps you should look at an alternative method for deploying this script.
For example:
Logon script and KIX executable file locations should be.. File Location: C:\WINNT\SYSVOL\sysvol\damain.name\scripts\
Place the following text in your User Account's Properties User Account properties>Profiles TAB>Logon Script>"kix32.exe logon.kix"
When logging in, your user's accounts will automatically run the "kix32.exe logon.kix" command from the closest domain controller's NETLOGON share.
If you have many user accounts that you need to change this value on and want to automate the process, you can use a kix script on your Domain Controller that will make the appropriate change for you. (be sure to test this in your environment before running on production servers)
Code:
CLS BREAK ON ; change DomainString to match your organization's NetBIOS domain name $DomainString='Domain' ; change GroupString to equal the appropriate security group to affect $GroupString='TEST' $GroupObj = GetObject('WinNT://' + $DomainString + '/' + $GroupString) For each $UserObj in $GroupObj.Members ;Look for the word NTLOGON in case of NTLOGON OR NTLOGON.BAT ;(change NTLOGON string if different in your environment) IF $UserObj.AccountDisabled<>'True' AND INSTR($UserObj.LoginScript,'NTLOGON') ?$UserObj.Name ?$UserObj.FullName $UserObj.LoginScript = 'WKIX32.EXE LOGON.KIX' $UserObj.SetInfo $error=@error $logshare='H:' $logfile=$logshare+'\'+$DomainString+'CHANGESCRIPT.CSV' $logdata=$UserObj.Name+','+$UserObj.FullName+','+$error+@CRLF LOGGER($logfile,$logdata)
ENDIF Next ?'--' ?'Script complete' SLEEP 4
FUNCTION LOGGER($logfil,$logdat) $result=0 $n=0 DO $result=Open(1, $logfil, 5) IF $result<>0 IF $n=0 ;First wait ?'Please wait' ELSE ;follow waits '.' ENDIF SLEEP 3 ELSE $result=WriteLine(1, $logdat) $result=Close(1) ENDIF $n=$n+1 UNTIL $result=0 OR $n=5 ENDFUNCTION
_________________________
let the wise listen and add to their learning, and let the discerning get guidance- Proverbs 1:5
|
Top
|
|
|
|
#143088 - 2005-07-08 08:50 PM
Re: kixtart on a windows 2003 server platform
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
Loc: CA
|
Quote:
that many
Quote:
Okay guy ONE of these links
No you don't have to read any of them. There not for you as you understand already. There for those that DON'T understand and are asking for help.
Personally I think this link explains it as well or better then most. http://www.rlmueller.net/LogonScriptFAQ.htm
Just posted those links so that if he has trouble understanding one, maybe another would help.
Not sure you know or have noticed but many teachers in the World don't have the same results with all students, some students learn better from other methods or other teachers. That doesn't mean the teacher is not good, only that some have different learning needs.
Edited by NTDOC (2005-07-08 08:52 PM)
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 331 anonymous users online.
|
|
|