|
Hi,
I am really new to Kix have been writing batch for years but somehow up until now KIX has escaped me.
I have writen a new GUI based logon script for our corporate network and i am having real issues roling it out,
It works fine on my machine but fails on EVERY other machine.
A collegue of mine with ASE or something like that installed can run it fine i can run it fine. but all i get when it runs on everyone else is a system beep and nothing else.
Help
I have attached the script below.
Thanks in advance,
Pete
-----------------------------------------------------------------
;Setup the GUI $Form = CreateObject("Kixtart.Form") $form.text = "Logon In Progress....." $Form.Size = 300,200 $Form.Center $Form.Icon = "SHELL32.DLL;10" $Form.PrintXY(20,25,"Complete Name:") $FName = $form.textbox $FName.locked = 1 $FName.width = 120 $FName.height = 17 $FName.center $FName.top = 25 $FName.Left = 150 $FName.value = @FULLNAME $Form.PrintXY(20,45,"User Name:") $UName = $form.textbox $UName.locked = 1 $UName.width = 120 $UName.height = 17 $UName.center $UName.top = 45 $UName.Left = 150 $UName.value = @USERID $Form.PrintXY(20,65,"Logon Server:") $LServer = $form.textbox $LServer.locked = 1 $LServer.width = 120 $LServer.height = 17 $LServer.center $LServer.top = 65 $LServer.Left = 150 $LServer.value = %LOGONSERVER% $pbar = $Form.progressbar $pbar.width = 240 $pbar.height = 10 $pbar.min = 0 $pbar.max = 10 $pbar.center $pbar.top = 150 $pbar.borderstyle = 1
$text = $form.textbox $text.locked = 1 $text.width = 240 $text.height = 20 $text.center $text.top = 120 $text.value = "Welcome to the @domain Domain. Please Wait..." $form.show $Logo.show Sleep 3 $pbar.value = 0 $text.value = "Starting Login Progess..." Use "*" /del Sleep 1
$pbar.value = 1 $text.value = "Configuring Current User Settings..." Sleep 1 $pbar.value = 2 $text.value = "Configuring Local Machine Settings..." Sleep 1 $pbar.value = 4 $text.value = "Connecting Mapped Network Drives..." Call "Mapping.kix" Sleep 1
$pbar.value = 5 $text.value = "Running System Audit... " Call "Audit.kix" Sleep 1
$pbar.value = 6 $text.value = "Configuring Workstation" Sleep 1 $pbar.value = 8 $text.value = "Updating Anti-Virus" Sleep 1 $pbar.value = 9 $text.value = "Completing Login" Sleep 1 $pbar.value = 10 $text.value = "Logon Script Complete" Sleep 3 ------------------------------------------------------------------
It is being lauched via a bat file containing.
REM @ECHO OFF Start /MIN kix32.exe logon.kix
|