Page 1 of 1 1
Topic Options
#163678 - 2006-06-27 02:48 AM BUG? @LOGONMODE returns empty value in 4.51
OldTimer Offline
Lurker

Registered: 2004-08-22
Posts: 3
Loc: Sweden
The @LogonMode don't return 0/1 in the 2010/4.51 release (at least it does in my environment). Is this a known bug?
Top
#163679 - 2006-06-27 03:25 AM Re: BUG? @LOGONMODE returns empty value in 4.51
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
How are you testing it during logon? Legacy or GPO?
The manual does not purport it to return 0 outside of 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
#163680 - 2006-06-27 07:20 AM Re: BUG? @LOGONMODE returns empty value in 4.51
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Would have to agree with Les.

From the 4.52 manual.

Quote:

@LOGONMODE If 1, indicates that KiXtart assumes to be running during the logon sequence




I suppose one would have to assume that if it is blank that it was not in LOGON MODE capacity.
Code:

'KiX version: ' + @KiX ?
'Logon mode: ' + @LogonMode ?
'Error code: ' + @ERROR + ' - ' + @SERROR ?



It would be nice though if it did return another code for NOT being in LogonMode.

Top
#163681 - 2006-06-27 08:38 AM Re: BUG? @LOGONMODE returns empty value in 4.51
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
if you type @longonmode it should also return zero...
I typed a macro wrong last week and noticed kixtart still returns zero.

there is something wrong with the macro's in general.
can't say though that there is anything wrong with this one.
_________________________
!

download KiXnet

Top
#163682 - 2006-06-27 09:15 AM Re: BUG? @LOGONMODE returns empty value in 4.51
OldTimer Offline
Lurker

Registered: 2004-08-22
Posts: 3
Loc: Sweden
I'm testing with legacy logon (RDP logon to W2003R2 DC) and @LOGONMODE is returning NUL.
Top
#163683 - 2006-06-27 09:43 AM Re: BUG? @LOGONMODE returns empty value in 4.51
OldTimer Offline
Lurker

Registered: 2004-08-22
Posts: 3
Loc: Sweden
Here is the code:
$=RedirectOutput("C:\LOGS\Logon.txt",1)
'KiX version : ' + @KiX ?
'Script dir : ' + @ScriptDir ?
'Logon server: ' + @LServer ?
'Logon drive : ' + @Ldrive ?
'Trm session : ' + @TsSession ?
'Logon mode : ' + @LogonMode ?
'Error code : ' + @ERROR + ' - ' + @SERROR ?

And here is the output (after logon)
KiX version : 4.51
Script dir : \\ITS\NETLOGON
Logon server: \\ITS
Logon drive : \\ITS\NETLOGON\
Trm session : 1
Logon mode :
Error code : 0 - The operation completed successfully.

Top
#174991 - 2007-03-27 05:35 PM Re: BUG? @LOGONMODE returns empty value in 4.51 [Re: OldTimer]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Did this ever have a resolution? I'm having the problem with 4.53 now.

I just started using this in a legacy logon script and am getting an empty string returned. This is from a current logon process:
 Code:
2007/03/27  -  11:19:18
     Kixtart: 4.53
        User: Barnas, Glenn
 LoginServer: \\DC5
      Domain: CORPORATE
   OU String: OU=Users,OU=Technical Services,OU=IS Departments,OU=IS,DC=corporate,DC=MyCo
  Logon Mode: 
Detected O/S: Windows XP Professional / Version 5.1
   Privelege: USER
Session Type: Console

My account is configured to use the test script, which forces debug logging. The macro always returns an empty string, regardless of running it during or after logon - never 1 or 0.

Anyone know of a workaround?

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#174997 - 2007-03-27 07:46 PM Re: BUG? @LOGONMODE returns empty value in 4.51 [Re: Glenn Barnas]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Same results here. At logon, after logon all show nothing.

Looks like it is still an open issue.

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Board=3&Number=132516
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Board=3&Number=79745
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Board=3&Number=79010
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#175179 - 2007-04-02 07:18 PM Re: BUG? @LOGONMODE returns empty value in 4.51 [Re: Mart]
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Has Ruud ever acknowledged this issue. I don't see any of his replies to any of the threads.
Top
#175181 - 2007-04-02 07:30 PM Re: BUG? @LOGONMODE returns empty value in 4.51 [Re: Shawn]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
I just posted it in the Beta forum so Ruud will hopefully see it when he visits korg.

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=175180&page=1#Post175180
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

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
0 registered and 138 anonymous users online.
Newest Members
MaikSimon, kvn317, kixtarts2025, SERoyalty, mytar
17872 Registered Users

Generated in 0.066 seconds in which 0.028 seconds were spent on a total of 14 queries. Zlib compression enabled.

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