And here is an example of the Windows build check. Here we require Windows 10 version 1903 or newer:
: (RegMonitor
:type (plugin)
:parameters (
:begin_and (1)
:string ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion=6.3")
:string ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId>=1903")
:end (and1)
:begin_admin (admin)
:send_log (alert)
:mismatchmessage ("Windows 10 version 1903 or newer is required.")
:end (admin)
)
)
As an alternative, you can compare CurrentMajorVersionNumber with 10. In this case, replace
:string ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion=6.3")
with
:value ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMajorVersionNumber=10")
Do not forget to include RegMonitor in SCVPolicy section:
:SCVPolicy (
: (RegMonitor)
)
Save the local.scv file and install policy. If a separate gateway/management configuration is used, the local.scv file has to be configured on the management. I assume, you have SCV check turned on.