Get-EventLog -LogName Security -Message


get-eventlog -logname security -message

please me create script "message" information below

eventid,date of mofification,subject: ("security id:" , "account name:"),object: ("dn: , class:),operation:("type")

eventid

date of mofification

subject: ("security id:" , "account name:")

object: ("dn: , class:)

operation:("type")

a directory service object modified. subject: security id: domain\recpadmin account name: recpadmin

account domain: domain

logon id: 0xbffec1ssef directory service: name: domain.local type: active directory domain services object: dn: cn=user2,ou=users,dc=domain,dc=local guid: cn=users2,ou=users,dc=domain,dc=local class: user attribute: ldap display name: co syntax (oid): 2.5.5.12 value: united arab emirates operation: type: value added correlation id: {b2795116-c4f6-425a-a411-b2eae322d4fa} application correlation id: -


1. not sure target configuration. message parameter not correspond table.

2. use example parameter, make printout , adapt result according needs. insert pipe , format output

get-help get-eventlog -examples

regards

milos



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL