Here are each of the files that are called for the netlogon process
MapDrives.kix
Code:
;************************************************
;** MapDrives.kix D5PS2Z0J Systems **
;** **
;** 25/05/2005 V1.00 **
;** **
;************************************************
$lblJob.caption = $Blanker
$lblJob.caption = "Mapping Network Drives... "
USE * /DELETE
;** Common mappings: Everyone gets these **
Sleep $WaitTime
$prgProgress.value = $prgProgress.value + 5
$DriveToMap = "\\d5ps2z0j\PUBLIC"
$lblTask.Caption = $Blanker
$lblTask.Caption = "Public"
USE L: $DriveToMap
$prgProgress.value = $prgProgress.value + 5
$DriveToMap = "\\d5ps2z0j\netlogon"
$lblTask.Caption = $Blanker
$lblTask.Caption = "netlogon"
USE N: $DriveToMap
$prgProgress.value = $prgProgress.value + 5
$DriveToMap = "\\d5ps2z0j\cache"
$lblTask.Caption = "SmartCache"
USE S: $DriveToMap
$prgProgress.value = $prgProgress.value + 5
; RETURN
DoAudit.kix
Code:
;************************************************
;** DoAudit.kix JD5PS2Z0J SYSTEMS **
;** **
;** V1.00 **
;** **
;************************************************
$fraMain.fontsize = 10
$lblJob.caption = $Blanker
$lblJob.caption = "Running Workstation Audit... "
;AUDIT STUFF IN HERE
;
;Audit what????
;
; Hardware: (Check for changes?)
; Installed Software (Check for changes?)
$lblTask.Caption = $Blanker
$lblTask.Caption = "Hardware"
sleep $WaitTime
$prgProgress.value = $prgProgress.value + 20
$lblTask.Caption = $Blanker
$lblTask.Caption = "Software"
sleep $WaitTime
$prgProgress.value = $prgProgress.value + 20
;Return
LogUser.kix
Code:
;************************************************
;** LogUser.kix **
;** **
;** **
;** **
;************************************************
$lblJob.caption = $Blanker
$lblJob.caption = "Collecting Logon Info... "
$prgProgress.value = $prgProgress.value + $Step
;** Dim some
vars
$LogFolder = @LServer + "\netlogon\logs\"
;** Path to log dir
$FileName = @MONTH + "--" + @WKSTA + ".csv"
;** Get Log File Name
$MyFile = $LogFolder + $FileName
;** Set full path to file
$CRLF= Chr(13) + Chr(10)
;** Set Carriage Return + Line feed
$MyDateTime = @DATE + " : " + @TIME
;** Date and time string
$prgProgress.value = $prgProgress.value + 10
IF OPEN(1,$MyFile,5) = 0
;** Open file for write. Create if doesn't exist
;**
Date and time
$Silent = WriteLine (1, $MyDateTime + $CRLF)
$lblTask.Caption = $Blanker
$lblTask.Caption = "Time and Date"
sleep $WaitTime
$prgProgress.value = $prgProgress.value + $Step
;**
User Details
$Silent = WriteLine (1, "User: " + @USERID + " Full
Name: " + @FULLNAME + $CRLF);Write data to file
$lblTask.Caption = $Blanker
$lblTask.Caption = "User Name"
sleep $WaitTime
$prgProgress.value = $prgProgress.value + 10
;** IP
0
$Silent = WriteLine (1, "IP: " + @IPAddress0 + $CRLF)
$lblTask.Caption = $Blanker
$lblTask.Caption = "IP Address"
sleep $WaitTime
$prgProgress.value = $prgProgress.value + 20
$Silent = WriteLine (1, $CRLF)
$Silent = Close (1) ;Close file
ENDIF
; Sleep 1
;Return
DoAntiVirus.kix
Code:
;:DoAntiVirus
$lblJob.caption = $Blanker
$lblJob.caption = "Updating Antivirus... "
$lblTask.Caption = $Blanker
$LSD = @LServer + "\Netlogon"
IF Exist("$LSD\patches.kix")
Call "$LSD\patches.kix"
endif
$prgProgress.value = $prgProgress.value + $Step
;Return
time.kix
Code:
;======= Sync Time with Domain Controller
;Sync Time
$lblJob.caption = $Blanker
$lblJob.caption = "Synchronizing time "
If Exist ("$LSD\TimeSync.bat")
Shell "$COMSPEC /e:1024 /c $LSD\TimeSync.bat"
EndIf
snd.kix
Code:
$lblJob.caption = $Blanker
$lblJob.caption = "Logon has been successful"
play file @ldrive+"chimes.wav"
sleep 2
$prgProgress.value = $prgProgress.value + 5