EditCreate the script
Create your custom script in
von/InternalSite/Scripts/CustomUpdate/SomeScript.vbs:
' perform your check
Results("YourVariable") = true
EditAdd to PolicyTemplate.xml
Create or merge this into
von/conf/CustomUpdate/PolicyTemplate.xml:
<Policies>
<Policy>
<Name>Your own variable :-)</Name>
<ID>YourVariable</ID>
<Type>0</Type>
<Value></Value>
<Description>Describe what it does!</Description>
<Section>Custom</Section>
</Policy>
</Policies>
EditAdd to detect.inc
Create or merge this into
von/InternalSite/inc/CustomUpdate/<1 for SSL, 0 for HTTP>detect.inc:
<%
' note - the value does not matter
g_scriptList("/InternalSite/scripts/CustomUpdate/SomeScript.vbs") = true
%>
EditChange to InternalSite ruleset
Add a rule to the
InternalSite ruleset to enable access to
/InternalSite/Scripts/CustomUpdate/SomeScript.(vbs|vbs\.sig|spc)EditCreate your policy
Example of a custom "Create as script" mode policy that uses your script:
YourVariable
You will find the detection value in
Variables/Custom in the editor.