I asked this question in the wrong forum, kixforms.org. I got some help, but I still can get this dang thing to run. I have been using kixtart for a couple of years. I am now using kixforms and want to use the wkix32.exe to run a console-less logon script.
I have a windows 2000 server w/ 2000 and xp clients domain.
If I use a batch file called logon.bat:
Code:
Echo Off
START /w %WINDIR%\SYSTEM32\WKIX32.EXE %logonserver%\netlogon\logon.kix
Exit
and then put logon.bat in the user profile it works fine, with the exception of opening a console. I know that I can suppress the window with a switch, but I want to be able to use the wkix32.exe with out a batch file since that is the way it is supposed to work.
Here is my logon script
Code:
Break On
$System = CreateObject("Kixtart.System")
;*** This is the main form objects and controls************
$Form = $System.Form()
$Form.SysMenu = 0
$Form.Caption = "Company name"
$Form.Width = 500
$Form.Height = 400
$Form.Center
$form.Opacity = 100
;*** This is the label that contains the company logo******
$lblLog = $Form.Label
$lblLog.Location = 5,5
$lblLog.Size = 150,150
$lblLog.borderstyle = 0
$lblLog.Image = "%logonserver%\netlogon\image\logo.jpg"
;*** This lable contain the policy disclaimer**************
$txtEUNA = $Form.Controls.RichTextBox()
$txtEUNA.Location = 237, 5
$txtEUNA.Size = 250, 250
$txtEUNA.ReadOnly = 1
$txtEUNA.WordWrap = 1
$txtEUNA.MultiLine = 1
$txtEUNA.ScrollBars = 2
$txtEUNA.ToolTipText = "Network User Agreement"
$txtEUNA.text = "User agreement text"
$HyperLink = $Form.Controls.HyperLink
$HyperLink.Text = "Google"
$HyperLink.Value = "Http://www.google.com"
$hyperlink.Location = 310, 280
;*** This label displayes the user tips********************
$lblTip = $Form.label
$lblTip.Location = 5,290
$lblTip.Size = 250,70
$lblTip.borderstyle = 0
$lblTip.Text = "Don't eat yellow snow"
$btnAcc = $Form.Button
$btnAcc.Location = 285,335
$btnAcc.Size = 100,25
$btnAcc.Text = Accept
$btnAcc.ToolTipText = "Accept and Continue"
$btnAcc.onclick = "cmdAcc_Click()"
$btnDec = $Form.Button
$btnDec.Location = 385,335
$btnDec.size = 100,25
$btnDec.text = Decline
$btnDec.ToolTipText = "Decline and Logoff"
$btnDec.onclick = "cmdDec_Click()"
$Form.Show
While $Form.Visible
$=Execute($Form.DoEvents)
Loop
Function cmdAcc_Click()
$Form.Hide
EndFunction
;This function will log the user off is they decline the company network policy
Function cmdDec_Click()
$Form.Hide
If @INWIN=2 ;Win9x
Run 'RunDLL32.EXE SHELL32.DLL,SHExitWindowsEx 0'
Else ;Not Win9x
$RC = Logoff(1)
EndIf
Quit 1
EndFunction
Exit 1
if i put Code:
wkix32.exe %logonserver%\netlogon\logon.kix
in the users logonscript nothing happens.
Thanks for any help