Page 1 of 1 1
Topic Options
#157445 - 2006-02-18 12:11 AM Logoff() and terminal servers
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
In limited testing, it appears that Logoff() command does not work with terminal servers. I am unsure if this is by design, not implemented, or a bug. But wanted to open if for discussion before I reported it officially to bug report / suggestions
_________________________
Today is the tomorrow you worried about yesterday.

Top
#157446 - 2006-02-18 12:29 AM Re: Logoff() and terminal servers
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Please show the full code you're using. Are you sure some other function/command is not failing or abnormally ending KiXtart before you issue the command to logoff?

Also please confirm the exact version being used on the Term Serv

Top
#157447 - 2006-02-18 01:21 AM Re: Logoff() and terminal servers
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
I will get the information on Tuesday morning. I have left work and that is the next time that I will be in.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#157448 - 2006-02-18 05:07 PM Re: Logoff() and terminal servers
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Running version 4.50
The script is called from another script and this is what it has...
Code:

$Nul = MessageBox("This is your first time logging into a terminal server"+@CRLF+"You will be logged off in 10 seconds to finish updating your profile.","Notice",16,10)
If $Nul <> -1
Sleep 10
Logoff(1)
Else
Logoff(1)
EndIf

_________________________
Today is the tomorrow you worried about yesterday.

Top
#157449 - 2006-02-18 05:16 PM Re: Logoff() and terminal servers
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You broke cardinal rule #1 & 2.

Never trust users to not fiddle with the mouse and kbd. Never use a timeout on a messagebox if it really matters.

Borrowing from the manual:
Quote:

Note: The time-out feature only works if the MESSAGEBOX dialog box is the active window for the duration of the time-out. If the user switches away from KiXtart and activates another application, the MESSAGEBOX dialog box is not closed.


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

Top
#157450 - 2006-02-18 06:08 PM Re: Logoff() and terminal servers
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
But it was a couple of sys admins that were testing and we know better.

I understand your point however and will change it to...
Code:

$Nul = MessageBox("This is your first time logging into a terminal server"+@CRLF+"You will be logged off in 10 seconds to finish updating your profile.","Notice",16)
Sleep 10
Logoff(1)



However this still does not address the issue of the logoff() not working as intended.

I did forget to add that this is running via GPO, if it makes any difference, and it is only a problem on Terminal Servers (well I haven't tested it on a regular domain logon).
_________________________
Today is the tomorrow you worried about yesterday.

Top
#157451 - 2006-02-18 06:18 PM Re: Logoff() and terminal servers
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What if you tried pushing the logoff task to the RunOnce reg key?
Maybe a GPO script is not the best place for this.
_________________________
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:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 867 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.09 seconds in which 0.065 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