MCA,

Let me make sure I understand what you mean. Are you saying I can run both of the scripts that you mention within the same kix file OR should I run a separate file that calls up the second file? Here's what I'm attemtping to run.

I'm running the first portion of the script you posted as follows:

IF (Readvalue ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SeCEdit\","TemplateUsed") <> "\\Server\netlogon\localpolicy.inf")
RUN '%comspec% /c \\Server\netlogon\kix32.exe \\Server\netlogon\update_security_file.kix '
ENDIF
EXIT


The above script should call up the second script, right? The second script (below)runs fine without the above script. Should these two script be ran together of separate? Could you post the ENTIRE script the way it should be ran? Thanks!


SLEEP 60 ; - choose a period which is enough
DIM $index
CLS
$variable=ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SeCEdit\","TemplateUsed")
IF $variable <> "\\Server\netlogon\localpolicy.inf"
? "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("\\Server\netlogon\localpolicy.inf")
$returncode=SendKeys("{ENTER}")
$returncode=SendKeys("~{F4}")
ENDIF
:skipfile
?"End of Script"