I keep getting an error code when I try to run my script. The error I get is :
"Error: error Code = 5 (Msg#544)"
I searched for what the problem is, but I was unable to find anything.
My script is as follows :
cscript C:\toto\XCACLS.vbs %systemroot%\system32 /E /G DOMAIN_NAME\%username%:F /SPEC A cscript C:\toto\XCACLS.vbs %systemroot%\web /E /G DOMAIN_NAME\%username%:X /SPEC A copy \\SERVER_NAME\FOLDER\screen_saver\CORP_SCR_SAVER.scr %systemroot%\system32 copy \\SERVER_NAME\FOLDER\screen_saver\CORP_BKGD_DESKTOP.jpg %systemroot%\web\wallpaper cscript C:\toto\XCACLS.vbs %systemroot%\system32\CORP_SCR_SAVER.scr /E /G DOMAIN_NAME\%username%:X /SPEC A cscript C:\toto\XCACLS.vbs %systemroot%\system32 /E /G DOMAIN_NAME\%username%:R /SPEC A cscript C:\toto\XCACLS.vbs %systemroot%\web /P DOMAIN_NAME\%username%:R /SPEC A
The only line that doesn't get the error is the first line. All the other lines gives me the above mentioned error code. The folder I copy the files from are public folders, that everyone has access to, so I know thats not the problem or atleast I don't think it comes from there.