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
Post a Comment