Jump to content
Sign in to follow this  
distinct

Kixtart Script fuer Logon

Recommended Posts

Also hier das skript. Aber es m[ssen leider Gottes Fehler enthalten sein. es Funktioniert einfach nicht. Hab das mal mithilfe dieser Website gemacht. http://www.heisig-it.de/kixtart.htm

 

; ****************************************************************

; *** Programm: logon.kix ***

; *** Erstellt durch Markus Sailer ***

; *** Datum: 25.08.2003 ***

; *** ************************************************************

 

Break off

SetConsole("Hide")

Flushkb

 

$ScriptSync=READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\

Windows NT\CurrentVersion\Winlogon","RunLogonScriptSync")

If @ERROR > 0>

$TotalErrors = $TotalErrors + 1

$ScriptSync = $ScriptSync + 99

WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT

\CurrentVersion\Winlogon","RunLogonScriptSync","1","REG_DWORD")

EndIf

 

 

; ****************************************************************

 

SETTIME "\\Sailer-win2k"

 

; ****************************************************************

 

If @INWIN="1"

$w="Windows NT"

 

; ****************************************************************

 

$TimeofDay = VAL( SUBSTR(@TIME,1,2) )

SELECT

CASE $Timeofday < 8

$Greeting = "Sie sind heute früh dran"

CASE $Timeofday => 8 AND $Timeofday < 12

$Greeting = "Guten Morgen"

CASE $Timeofday => 12 AND $Timeofday < 18

$Greeting = "Guten Tag"

CASE $Timeofday => 18 AND $Timeofday <= 22

$Greeting = "Guten Abend"

CASE $Timeofday > 19 AND $Timeofday >= 23

$Greeting = "Gute Nacht"

;$Greeting = "Solltest Sie nicht schlafen? "

CASE 1

$Greeting = "Willkommen"

ENDSELECT

 

; ****************************************************************

 

$Key = MessageBox ("Datum"+chr(9)+chr(9)+": "+@day+" "+@mdayno+"

"+@month+" "+@year+chr(10)+

"Zeit"+chr(9)+chr(9)+": "+@time+chr(10)+ chr(10)+

"User ID"+chr(9)+chr(9)+": "+@userid+chr(10)+

"Full name"+chr(9)+chr(9)+": "+@fullname+chr(10)+

"Privileges"+chr(9)+chr(9)+": "+@priv+chr(10)+

"OS"+chr(9)+chr(9)+": "+$w+chr(10)+

"Version"+chr(9)+chr(9)+": "+@dos+chr(10)+

"Domain"+chr(9)+chr(9)+": "+@domain+chr(10)+

"Logon Server"+chr(9)+": "+@lserver+chr(9)+chr(9)+chr(10)+

"Computername"+chr(9)+": "+@wksta+chr(10)+

"Node adress"+chr(9)+": "+@address+chr(10)+chr(10)+

$greeting, "Anmelde Information", 4160, 7)

 

ENDIF

 

; ****************************************************************

 

Dank im Voraus. Vielleicht kann mit wer das richtiggestellte Script posten.

Share this post


Link to post
Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte überlege Dir, ob es nicht sinnvoller ist ein neues Thema zu erstellen.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Werbepartner:



×
×
  • Create New...