Ok, I know you asked for the whole script, but it's massive so I've posted
the parts up until where the error occurs (and a bit after). If you really
want the whole thing, feel free to give me a slap and tell me to do what
I'm told and I'll post it for ya. Thanks for your help.
Code:
break on
;-------------------------------------------------------------------------------------
;Displaying the greeting
;-------------------------------------------------------------------------------------
color g+/n
?
SELECT
CASE @time < 12:00:00
? "Good morning " @FullName
CASE @time > 12:00:00 AND @time < 18:00:00
? "Good afternoon " @FullName
CASE @time > 18:00:00
? "Good evening " @FullName
ENDSELECT
?
? "Please wait while you are logged on..."
?
?
color n+/n
;-------------------------------------------------------------------------------------
;Setting the install and antivirus servers
;-------------------------------------------------------------------------------------
SELECT
CASE @SITE = "Site1"
$InstallServer = \\Server1
$AVServer = \\AVServer1
CASE @SITE = "Site2"
$InstallServer = \\Server2
$AVServer = \\AVServer2
CASE @SITE = "Site3"
$InstallServer = \\Server3
$AVServer = \\AVServer3
CASE @SITE = "Site4"
$InstallServer = \\Server4
$AVServer = \\AVServer4
CASE @SITE = "Site5"
$InstallServer = \\Server5
$AVServer = \\AVServer5
ENDSELECT
;-------------------------------------------------------------------------------------
;Synchronise the Time
;-------------------------------------------------------------------------------------
SETTIME @LSERVER
;-------------------------------------------------------------------------------------
;Ensure Symantec Antivirus is installed
;-------------------------------------------------------------------------------------
IF @PRODUCTSUITE <> 16
If "%ProgramFiles(x86)%" = "C:\Program Files (x86)"
If Exist("C:\Program Files (x86)\Symantec AntiVirus\VPC32.exe") = 0
SHELL '@LSERVER\NETLOGON\Admin\postie\postie.exe -host:MAILSERVER -from:it@mydomain.com -to:it@mydomain.com -s:"%COMPUTERNAME% does not have Symantec" +
" Anti Virus Installed - it is 64bit and must be installed manually" -nomsg'
Endif
Else
set NavInstall=0
If Exist("C:\Program Files\Symantec AntiVirus\VPC32.exe") = 0
set NavInstall=NavInstall + 1
Endif
If Exist("C:\program files\Symantec_Client_Security\Symantec AntiVirus\VPC32.exe") = 0
set NavInstall=NavInstall + 1
Endif
If %NavInstall% = 2
SHELL '@LSERVER\NETLOGON\Admin\postie\postie.exe -host:MAILSERVER -from:it@mydomain.com -to:it@mydomain.com -s:"%COMPUTERNAME% does" +
" not have Symantec Anti Virus Installed" -nomsg'
Endif
USE X: "$AVServer\vplogon"
SHELL 'X:\VP_Log32 /p=X:'
USE X: /DEL
Endif
Endif
;-------------------------------------------------------------------------------------
;?Set MTU Size for Site5
;-------------------------------------------------------------------------------------
If @SITE = "Site5"
CALL "@LSERVER\NETLOGON\Site5\MtuSet.kix"
Endif
;-------------------------------------------------------------------------------------
;?Delete Temporary Files
;-------------------------------------------------------------------------------------
Del "%userprofile%\*.tmp"
Del "%userprofile%\local settings\temporary internet files\faximage*.pdf" /c /f /h
Del "%userprofile%\local settings\temporary internet files\attach*.pdf" /c /f /h
;-------------------------------------------------------------------------------------
;?"Remove Unwanted Desktop and Start Menu icons"
;-------------------------------------------------------------------------------------
Del "C:\Documents and Settings\All Users\Desktop\Acrobat Reader 5.0.lnk" /c /f /h
Del "C:\Documents and Settings\All Users\Desktop\MSN Explorer.lnk" /c /f /h
Del "C:\Documents and Settings\All Users\Desktop\Windows Media Player.lnk" /c /f /h
Del "C:\Documents and Settings\All Users\desktop\Faxware*.*" /c /f /h
Del "C:\Documents and Settings\All Users\Start Menu\Programs\MSN Explorer.lnk" /c /f /h
Del "C:\Documents and Settings\All Users\Start Menu\Programs\Windows Messenger.lnk" /c /f /h
Del "C:\Documents and Settings\All Users\Start menu\programs\startup\Site1PostLogon*.*" /c /f /h
Del "C:\Documents and Settings\All Users\Start menu\programs\startup\Site2PostLogon*.*" /c /f /h
Del "C:\Documents and Settings\All Users\Start menu\programs\startup\Site3PostLogon*.*" /c /f /h
Del "C:\Documents and Settings\All Users\Start menu\programs\startup\Site4PostLogon*.*" /c /f /h
Del "C:\Documents and Settings\All Users\Start menu\programs\startup\Site5PostLogon*.*" /c /f /h
Del "%userprofile%\Start menu\programs\startup\Site1PostLogon*.*" /c /f /h
Del "%userprofile%\Start menu\programs\startup\Site2PostLogon*.*" /c /f /h
Del "%userprofile%\Start menu\programs\startup\Site3PostLogon*.*" /c /f /h
Del "%userprofile%\Start menu\programs\startup\Site4PostLogon*.*" /c /f /h
Del "%userprofile%\Start menu\programs\startup\Site5PostLogon*.*" /c /f /h
Del "%userprofile%\Start menu\programs\Windows Media Player.lnk" /c /f /h
Del "%userprofile%\Start menu\programs\Outlook Express.lnk" /c /f /h
Del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Launch Outlook Express.*" /c /f /h
Del "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Microsoft Outlook.lnk" /c /f /h
Del "%userprofile%\desktop\CCH NZ Tax Library.lnk" /c /f /h
Del "%userprofile%\desktop\CCH Company Law Library.lnk" /c /f /h
Del "%userprofile%\desktop\CCH Conveyancing Practice Library.lnk" /c /f /h
Del "%userprofile%\desktop\CCH Employment Law Library.lnk" /c /f /h
Del "%userprofile%\desktop\DC Document Search.url" /c /f /h
Del "%userprofile%\Start Menu\Electronic Publications\Butterworths Products\Citator.lnk" /c /f /h
Del "%userprofile%\START MENU\Programs\Startup\DCAudit.lnk" /c /f /h
Del "%userprofile%\START MENU\Programs\Startup\Faxware Launcher.lnk" /c /f /h
Del "%userprofile%\DESKTOP\Faxware Client Launcher.lnk" /c /f /h
Del "%userprofile%\START MENU\Programs\Startup\Faxware Client Launcher.lnk" /c /f /h
Del "%userprofile%\Start Menu\Programs\Startup\DCAudit*.*" /c /f /h
If InGroup("!Site4Users") = 1
Del "%userprofile%\START MENU\Programs\Startup\HW & SW Audit.lnk" /c /f /h
Del "%userprofile%\desktop\Electronic Publications.lnk" /c /f /h
Del "%userprofile%\desktop\Site4 CCH Forms.lnk" /c /f /h
Del "%userprofile%\desktop\Producer v4.lnk" /c /f /h
Endif
Edited by NTDOC (2006-09-21 10:27 AM)