I wrote a regular script to check the folder for updates (after launching, it checks and outputs to me the file at the endpoint, the date and time of the last update of the folder).
I entered the name of this script in the Script Run line, as well as in SCVGlobalParams.
However, the end client does not pass the verification, an error appears that it does not comply with the policy.
How do I add a parameter to local.scv so that it runs and checks with this script for the latest update in the folder?
That is, when the client connects, a script must be run, which, after execution, outputs information to a file (date + time).
I need to configure local.scv so that it runs the script first, and then accesses the folder and checks its latest update.
Or option 2, I need to configure local.scv to check the folder (also, for the date and time of the last update), how do I add a parameter to the file so that it checks the folder, and if everything is fine, it would allow the client to connect, if not, it would disable it, and output an error with the parameter "Update this folder, it has not been updated in the last 2 weeks."
I will add my entire local.scv file to the application to show what I did.
I would like to know if everything is written correctly or not.
An example of my file in attachments.
Thank's!