RSAKSA,
I looked at your script..
First of all the input that you will get from the DLP server will look like this:
Lookup using com.vontu.lookup.script.ScriptLookup complete: {Manager Last Name=Doe, discover-location=null, protocol=Clipboard, Resolution=null, file-owner=rpatel, Employee Type=External Employee, endpoint-file-path=null, Title=null, discover-extraction-date=null, Manager Business Unit=IT Services, Manager Phone=414-555-5555, Username=rpatel, Division=Contractor, file-created-by=DOMAIN\rpatel, file-owner-domain=DOMAIN}.
It is a comma Delimited input.. so you need to change the following:
$line_array+= $i.split(" ") to $line_array+= $i.split(",")
Lastly when you created the Credential File .. did you follow the intructions on Generating the Encrypted Credential file?
Clear text file should have "username=usernameadminaccess password=whatever"
SymantecDLP\protect\bin\CredentialGenerator.bat inputfilename.txt outputfilename.txt
Then put the filename in the UI. Again put these files in the Plugins directory.
_________________________________________________________________
If this does not fix it..
Also after looking at the script I would run this Manually from a Command Prompt on the Enforce Server to see if it works.
Use the "runas" command to open a command window as the user you are specifiying in the credntial file.
run powershell
Run the following command and see if it works.
Get-WmiObject -Class Win32_OperatingSystem -ComputerName "MachineName"
The script does not even need a credential to run. The issue you are having is that the script calls a comand in powershell "Get-WmiObject ...". The user that runs this command needs to also be in the Administrator group on the remote System. So I am wondering if the account in the credential file can even do that period, is there an account that can do this on all of your systems? So make sure that acount can run it on a remote system
This is why you are getting the "CannotAuthenticate" as the output. The Get-WmiObject is failing.
Hope this makes sense.
If this solves your questions please marked as solved.
Ronak