MCA,

I've got the script to run from my desktop. (see attached script) Everything copies over from the localpolicy.inf file as it should and the files are updated. Two problems:

PROBLEM #1: How can I get this script to run on each users PC AFTER the logon process? We have several network drives and shared printers that are mapped during the logon process with scriptlogic. In order for my script to run successfully, it will need to execute AFTER the drives/printers have been mapped. It is possible to execute this script via a batch file?

PROBLEM #2: I only need the script to run ONCE. If the designated file already exists, how can I get the script to immediately go to the end and not run everytime?

=============================================

Dim $Index
CLS
$variable = ReadValue ("HKEY_LOCAL_MACHINE\SOFTWARE|Microsoft\Windows NT\CurrentVersion\SeCEdit\","TemplateUsed")
If $variable = "\\ServerName\netlogon\localpolicy.inf"
? "Revised security file exists."
goto skipfile
;Endif
;If $Returncode <> 0
Else
? "Revised security file not present. New file copied."
$Index = 0
$ReturnCode = SendKeys("^{ESC}")
$ReturnCode = SendKeys("R")
$ReturnCode = SendKeys("%systemroot%\system32\secpol.msc /s")
$ReturnCode = SendKeys("{ENTER}")
Sleep(2)
$ReturnCode = SendKeys("~A")
$ReturnCode = SendKeys("I")
$ReturnCode = SendKeys("\\ServerName\netlogon\localpolicy.inf")
$ReturnCode = SendKeys("{ENTER}")
$ReturnCode = SendKeys("~{F4}")
EndIF
:skipfile
?"End of Script"