Break On
? "Adding Adobe JS Patch"
SHELL "C:\Windows\regedit.exe -s " + @ldrive + "\adobeJS.reg"
; ------- Determine if the user is in the LoginScript_QA group - Begin ------------------------
Global $Path
$QAMessage = "You are running the QA Login Script"
If @ScriptDir = @ldrive
If InGroup ("LoginScript_QA")
$Path = "qa\Netlogon"
Call @ldrive + "qa\netlogon\login.kix"
exit 0
Else
$Path = ""
Endif
EndIf
If @ScriptDir = @ldrive+"qa\netlogon"
$nul = MessageBox($QAMessage, "Message from Your System Administrator......",64,5)
EndIf
; ------- Determine if the user is in the LoginScript_QA group - End --------------------------
; --------------- IDENTIFY SITE ------------------
;
;
; ----- Home Script ------------------------------------------------------
; Created by: 10.10.2011
;
; -----------------------------------------------------------------------------------
Global $ipaddress,$ipbytes[3],$site,$OS
$IPMessage = "Logon scripts are not currently supported on this system or in this location. Script operation aborting. Click OK to continue."
$sHome3 = "xxx"
$OS = @PRODUCTTYPE ; Get OS for conditional scripting
; ------- Determine if the computer is a server - Begin --------------------------------------------------
$Computer_Name= Left(@WkSta,1)
If $Computer_Name <> "w" AND $Computer_Name <> "n" AND $Computer_Name <> "f"
If $Computer_Name = "s"
If AScan ($Server, @WkSta) <> -1
Call @ldrive + $Path + "\Server\Server.kix"
Exit 0
Else
$nul = MessageBox($IPMessage, "Kixtart Error",16,5)
Exit 1
Endif
ELSE
$nul = MessageBox($IPMessage, "Kixtart Error",16,5)
Exit 1
Endif
Endif
; ------- Determine if the computer is a server - End ----------------------------------------------------
; ----- Determine site by Domain Controller name or IP - Begin -------------------------------------------
$site = substr(@LServer,6,3)
$sitecheck = "xxx"
If AScan($Sitecheck,$Site) = -1
$ipaddress = Join(Split(@IPADDRESS0," "),"")
If Len($ipaddress) = 0
$ipaddress = Join(Split(@IPADDRESS1," "),"")
Endif
If Len($ipaddress) = 0
$ipaddress = Join(Split(@IPADDRESS2," "),"")
Endif
If Len($ipaddress) = 0
$ipaddress = Join(Split(@IPADDRESS3," "),"")
Endif
$ipbytes = Split($ipaddress,".")
If $ipbytes[1] <> xx
$nul = MessageBox($IPMessage, "Kixtart Error",16,5)
Exit 1
EndIf
Select
Case AScan($axxx3, $ipbytes[2]) <> 0
$site = "xxx"
Case 1
$nul = MessageBox($IPMessage, "Kixtart Error",16,5)
Exit 1
EndSelect
Endif
; ----- Determine site by Domain Controller name or IP - End --------------------------------------------
; ----- Call System Wide Scripts for System Wide Changes - Begin ---------
Call @ldrive + $Path + "\System.kix"
; ----- Call System Wide Scripts for System Wide Changes - End -----------
; ----- Call Main.kix for the user - Begin ----------------------------------------
If InGroup("xxx-Users")
Call @ldrive + $Path + "\xxx\xxx.kix"
If @error = 4 ; Checks for forced exit of script
Else
? "User Is Not A Member of the xxx-User Group"
$nul = MessageBox($IPMessage, "Kixtart Error",16,5)
Exit 1
EndIf
Endif
; ----- Call Main.kix for the user - End ------------------------------------------
; Calls the printer script based on current site
Call @ldrive + $Path + "\" + $site + "\Printers.kix"
Exit 0