Quantcast
Channel: Symantec Connect - Security
Viewing all articles
Browse latest Browse all 11462

Format output of userId from Powershell script to DLP

$
0
0
Oui, j'ai besoin d'une solution

I have semi-working Python script that outputs last user logged on.

import sys, subprocess, socket, string
import wmi, win32api, win32con
import pyodbc

for item in sys.argv:
    s = item
    if "sender-ip=" in s: 
        a = s.replace(',', '')
        
userIP = a.strip('sender-ip=')
userloggedon = ""

print 'userId=DOMAIN\username'

 

DLP Enforce server recognizes the following print statement,  

 

print 'userId=DOMAIN\username'

 

And will print the following value for userId attribute:

 

userid output.png

 

 

Now, I would like to use PowerShell.  There are so many ways to output values in Powershell,

write-host

write-output

write-error

etc, etc

 

What output will DLP Enforce server recognize from Powershell?


Viewing all articles
Browse latest Browse all 11462

Trending Articles