Page 1 of 1 1
Topic Options
#121816 - 2004-06-24 09:48 PM Request For Kix32 Group Policy Walk-Though
scit Offline
Fresh Scripter

Registered: 2004-06-24
Posts: 9
In Active Directory, you right-click the domain, go to Properties, click the Group Policy tab. Here you can edit a group policy object, let's say we edit the default domain policy. If you expand User Configuration, then expand Windows Settings, then click 'Scripts (logon/logoff)'. If you double-click Logon you see the Properties page. You click the Add button, browse to \\server\netlogon where you select your login batch file, let's call it logon1.bat. Please note that within this netlogon folder you also have your kixtart files. Within the login batch file you have the command kix32.exe system1, with system1 being your kix file. When a user logs onto the domain the black batch file window appears with the error "Script error: failed to find/open script !.

So, you go back to your logon1.bat and try the following variations of calling the script. Let's say you tried

\\servername\netlogon\kix32.exe \\servername\netlogon\system1.kix

kix32 \\servername\netlogon\system1.kix

kix32.exe \\servername\netlogon\system1.kix

%0\..\kix32 system1


Basically, these and every other variation under the sun that you could come up with. And still, the error persists. Please note that \\servername\netlogon is a valid directory.

At this point you start to think to yourself if you're lacking an understanding of active directory/group policy. This same logon1.bat file was successfully used on a Windows NT domain. If you had gone into User Mgr for Domains for the NT domain, selected a user and looked at the profile tab you would see logon1 as the batch file to execute.

Can anyone tell me what this person has done wrong? This person being me, of course! I would appreciate a walk though of what it takes to execute a kix32 script in Active Directory utilizing a BAT (batch) file.

Top
#121817 - 2004-06-24 10:38 PM Re: Request For Kix32 Group Policy Walk-Though
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Obviously, this is a continuation of your other post
Script Error : failed to find/open script !

Multiple posting of the same problem is frowned upon here.

That said, you are trying to compare two different technologies (AD vs. NT4) and two different delivery mechanisms (GPO vs. legacy logon). Legacy logon does not have anything to do with GPOs and vica versa. Legacy logons are defined in each users' profile.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#121818 - 2004-06-24 11:04 PM Re: Request For Kix32 Group Policy Walk-Though
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I guess that does not get you any closer...
I almost have to wonder if maybe in your testing, you are finding another copy of your BATch file on your path so never get to see the changes.

First off, I don't think you should alter the path and location to the batch file. IMHO it must remain in the default folder for the GPO. In my case that is:
\\mycompany.com\SYSVOL\cacc.local\Policies\{8F913AA1-8559-40E6-893C-776A5EF68637}\User\Scripts\Logon

My GPO logon BATch file is called LOGON.BAT

In my company, each OU gets their own folder under \NetLogon.

Within your LOGON.BAT, put one line that calls (you would probably leave out the OU\ part):
\\mycompany.com\NetLogon\OU\KiX32.exe \\mycompany.com\NetLogon\OU\test.kix

Within TEST.KIX, put simply:
Code:
Break On
MessageBox('Hello World','KiX',36)



Works for me!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#121819 - 2004-06-25 02:45 PM Re: Request For Kix32 Group Policy Walk-Though
scit Offline
Fresh Scripter

Registered: 2004-06-24
Posts: 9
If it must remain in the default folder for the GPO, then why do they offer the ability to browse through the network for a file?
Top
#121820 - 2004-06-25 02:50 PM Re: Request For Kix32 Group Policy Walk-Though
scit Offline
Fresh Scripter

Registered: 2004-06-24
Posts: 9
Also, I have tried the script in the default location, it doesn't work there either.
Top
#121821 - 2004-06-25 02:51 PM Re: Request For Kix32 Group Policy Walk-Though
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Hey! It works for me in the default location. Why argue with success?

You want me to rationalize what Microsoft does? I think the "Browse" dialog is simply a cheap and dirty API call. Just because you can does not mean you should.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 (mole) and 405 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.062 seconds in which 0.028 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