MCA,

Can you help me with the following script. I'm trying to push out via scriptlogic, an updated local security policy file, (localpolicy.inf). When I run it, I get the following error message (Error 3 copying file - the system cannot find the path specified). When I look into my registry, the affected key is UPDATED to the localpolicy.inf, however when I look at the local security settings on my PC, the file hasn't been updated. I deliberately changed one of the settings on my PC under maximum password age FROM 31 days TO 5 days to see if the script would make the change. (the localpolicy.inf file that I'm trying to copy to the user's PCs has the correct settings), but it's not being changed by the script. Any ideas?

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


$Fil = "localpolicy.inf"
$Src = "\\Server Name\netlogon"
$Dst = WRITEVALUE ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SeCEdit", "TemplateUsed", "\\Server Name\netlogon\localpolicy.inf", "REG_SZ")
$DstSize = GETFILESIZE ("$Dst\$Fil")
$DstTime = GETFILETIME ("$Dst\$Fil")
$SrcSize = GETFILESIZE ("$Src\$Fil")
$SrcTime = GETFILETIME ("$Src\$Fil")
IF EXIST ("$Dst\$Fil") = 0 ; REM ** File not found on client
COPY "$Src\$Fil" "$Dst\$Fil"
IF (@ERROR = 0)
? "Success copying file to client"
ELSE
? "Error @ERROR copying file (@SERROR)"
ENDIF
ELSE
IF ($SrcSize <> $DstSize) OR ($SrcTime <> $DstTime)
COPY "$Src\$Fil" "$Dst\$Fil"
IF (@ERROR = 0)
? "Success copying file to client"
ELSE
? "Error @ERROR copying file (@SERROR)"
ENDIF
ELSE
? "Verified file already exists on client"
ENDIF
ENDIF