Page 2 of 2 <12
Topic Options
#67894 - 2002-07-10 11:40 AM Re: .exe will not run during logon
gregb Offline
Fresh Scripter

Registered: 2002-07-08
Posts: 21
Where can I get INFO on FIXPRF ?
(check the file generated by fixprf - what file?)

Also where is the best place to get a default outlook.prf for exchange server ?

Thanks

Top
#67895 - 2002-07-10 11:49 AM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kent posted this:
code:
RUN '%WINDIR%\Fixprf.exe "$winntfile" @userid @userid $ExServer'
SLEEP 1
RUN '%WINDIR%\Newprof.exe -p "$winntfile" -x'
%WINDIR%\NEWPROF.EXE -P "%UserProfile%\WINNT.PRF" @userid -r -l'

there is this winntfile variable which is the file outputted bu fixprf and newprof uses in this example that file as profile file...
_________________________
!

download KiXnet

Top
#67896 - 2002-07-10 11:52 AM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also, documentation info:
quote:
1. Use NewProf.exe
This utility ships with Microsoft Outlook. Instructions on using it can be found in the MSDN Library, under the topic "Creating a Profile with NEWPROF". For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:
Q145905 XCLN: Newprof.exe Command-Line Options
Q148664 XCLN: Description of the Profile Descriptor File

from http://support.microsoft.com/default.aspx?scid=kb;EN-US;q306962

this actually means, you have two or three choices:
1. search the tools from exchange CD's
2. get it from outlook shipping
3. get it from microsofts support site

cheers,
_________________________
!

download KiXnet

Top
#67897 - 2002-07-11 06:29 AM Re: .exe will not run during logon
gregb Offline
Fresh Scripter

Registered: 2002-07-08
Posts: 21
Thanks but it still doesn't work during the login procedure ! Thats Roaming user profiles for you.

Must be something to do with :-
Quote from SEALEOPARD -"It might also be a problem with the user registry not yet fully loaded when the script is running."

I think I might have to see if there is another way. Maybe through the 'startup' group.

Top
#67898 - 2002-07-11 07:22 AM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
greg, if it works your way after logging on,
you can also do:
-create a script at netlogon having these lines:
$nothing=setconsole("hide")
sleep 3
run "%COMSPEC% /e:1024 /c c:\createprf.exe @fullname -Mailbox=emailserver\@userid -default"

-in your logonscript put at the end the line:
run "kix.exe "+@ldrive+"\thatscript.kix"

this makes the logon process to end and all other stuff gets loaded. after the three seconds the registry should be there...

cheers,
_________________________
!

download KiXnet

Top
#67899 - 2002-07-11 07:40 AM Re: .exe will not run during logon
gregb Offline
Fresh Scripter

Registered: 2002-07-08
Posts: 21
Sorry no luck !
I have a loginscript that has only got this in it -
%0\..\kix32.exe %0\..\script1.KIX

In the KIX script file I have :-

$nothing=setconsole("hide")
sleep 3
run "%COMSPEC% /e:1024 /c c:\createprf.exe @fullname -Mailbox=emailserver\@userid -default"
exit

---------
Is anyone out there using roaming user profiles for WIN98 machines ?

Top
#67900 - 2002-07-11 07:48 AM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yeah...
so, you don't have kix script!
then it's little different.
leave that kix-part the same but do like:
start %0\..\kix32.exe %0\..\script1.KIX

the point is to exit that batch file some seconds before kix starts the execution.
at the kix-script you could grow the sleep to 5 or 10 to see that it really is open after the login window has finished.

cheers,
_________________________
!

download KiXnet

Top
#67901 - 2002-07-11 10:11 AM Re: .exe will not run during logon
gregb Offline
Fresh Scripter

Registered: 2002-07-08
Posts: 21
I put a START in the login script as you suggested and it WORKS BUT now I am getting an 'Illegal operation' on the WIN98 pc.
"KIX32 caaused an invalid page fault in module KERNEL32.DLL ..."

( If I remove the START then I do not get an 'illegal operation' but the script dosen't work)

Gee If it's not one thing it's another !

Top
#67902 - 2002-07-11 10:14 AM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what if you make the sleep longer?
_________________________
!

download KiXnet

Top
#67903 - 2002-07-11 10:26 AM Re: .exe will not run during logon
gregb Offline
Fresh Scripter

Registered: 2002-07-08
Posts: 21
I have tried increasing it 20 seconds with no luck.
(I asume you meant for me to remove the START from the login script)?

Top
#67904 - 2002-07-11 10:33 AM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm...
have time to try.
put this to batch:
%comspec% /c start %0\..\kix32.exe %0\..\script1.KIX

and what it does then?
also a good try is to use wkix instead of kix as they behave differently to calling process...
_________________________
!

download KiXnet

Top
#67905 - 2002-07-11 10:46 AM Re: .exe will not run during logon
gregb Offline
Fresh Scripter

Registered: 2002-07-08
Posts: 21
YES YES YES !!!

Your blood is worth bottling.

The WKIX32.exe did the trick.
I didn't even see that version there.

Why are there two versions ( KIX32 & WKIX32)
and what did you mean when you said
"yeah...
so, you don't have kix script!" ?

Thanks for your help.
Greg

Top
#67906 - 2002-07-11 11:19 AM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I ment that you are running this directly from batch, not inside kix-logonscript.

if you read the manual, you'll find out, wkix-is like windowless kix.
it's more like pure windows app...
well, read the manual and you will see the difference.
actually, if you use wkix, you can reduce your script to:

sleep 3
run "%COMSPEC% /e:1024 /c c:\createprf.exe @fullname -Mailbox=emailserver\@userid -default"
exit 0

and call it in the batch-file like:
%0\..\wkix32.exe -I %0\..\script1.KIX

then it opens without window.

cheers,
_________________________
!

download KiXnet

Top
#67907 - 2002-07-12 11:03 AM Re: .exe will not run during logon
gregb Offline
Fresh Scripter

Registered: 2002-07-08
Posts: 21
I'm back !!!

It's was working fine BUT I had to do a reload of the O/S on that test PC and now I am getting an Exception error.
"Fatal Expection Occurred.
Error : (0x00000005/- 1073741819) "

This occurs when I try to access KXRPC macros like @FULLNAME.

Any suggestions ?
I am begining to think is it all worth while ?

I found a POST that referenced this error but they did not say anything that we are not already doing.

Thanks
ps.
The KRPC server was also reboot - but script is working for winxp client.

Top
#67908 - 2002-07-12 01:58 PM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I get same errors trying to access kix events in event viewer...
ruud is here, so maybe he has something enlightning.

cheers,
_________________________
!

download KiXnet

Top
#67909 - 2002-07-12 02:01 PM Re: .exe will not run during logon
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hey, does it come from that second script or the actual logonscript?
also, what is the kix-build?

if it comes just from the other script, I write you a script to go around that problem.
_________________________
!

download KiXnet

Top
#67910 - 2002-07-15 06:15 AM Re: .exe will not run during logon
gregb Offline
Fresh Scripter

Registered: 2002-07-08
Posts: 21
The problem occurs in the second script (script1.kix).

The version I am running is
Kixtart 2001 4.10 Release Candidate 2

Top
#67911 - 2002-07-15 06:32 AM Re: .exe will not run during logon
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Rather than spawn another script at the end of the logon, put a call to it in the RunOnce key of the registry. Wintendos have problems with the redirector and do a smoke and mirrors with a Z: drive during logon. When the logon is finished, the Z: drive is broken down. If a script is still running, it can cause that sort of error.

See also, the FAQ

Topic: Sequence of events during logon
_________________________
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 2 of 2 <12


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

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.041 seconds in which 0.015 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