Hi Barnabas,
I made this change in the script
If attributeValues(1) = "HTTP" OR attributeValues(1) = "HTTPS" OR attributeValues(1) = "FTP" Then
still HTTPS incident Custom Attributes are not being populated.
Moreover, I performed the testing and getting the below result:
C:\Windows\system32>cscript.exe //nologo "C:\Program Files\Symantec\DataLossPrevention\EnforceServer\15.8.00000\Protect\plugins\NPW04_Script.vbs" sender-email=WinNT://imlab.local/m.atif protocol=HTTPS
HTTPUserName=m.atif
BR
Atif
Original Message:
Sent: 09-15-2021 04:54 AM
From: Barnabas Toth
Subject: Web Prevent Incidents - Custom Attributes - Script not working
Try with this one
If attributeValues(1) = "HTTP" OR attributeValues(1) = "HTTPS" OR attributeValues(1) = "FTP" Then
However scripting always needs some testing ands customization, especially if you are using a script from someone else.
Do some vbs debugging in your environment.
You can do testing like this:
C:\>cscript.exe //nologo "C:\webprevent_script.vbs" sender-email=WinNT://AD-domain/userID protocol=HTTPS
HTTPUserName=userID
Please mark SOLVED if helped!