Quantcast
Channel: Symantec Connect - Products
Viewing all articles
Browse latest Browse all 21433

Format output of userId from Powershell script to DLP

$
0
0
I need a 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 21433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>