Account lockout : Script to identify the caller's computer name

 

Use this script to identify the caller's computer name


#################

$filter = @{

logname='security'

id=4740

starttime=(get-date).adddays(-7)

}

$filter.add('data','Accountname')

get-winevent -computername DCservername -filterhashtable $filter|

select-object -property timecreated,

@{label='username';expression={$_.properties[0].value}},

@{label='computername';expression={$_.properties[1].value}}


##########################3

Comments

Popular posts from this blog

User Account not shwoing in Azure Metaverse - Azure Sync Issues

Could not communicate with the VM agent for snapshot status.

Hidden or corrupted Outlook inbox Rule