Advertisement
jroosen

Exchange Recent Created Users Script - CVE-2021-27065

Mar 3rd, 2021
16,394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Quick script to check for added users after compromise from the latest Exchange 0Day - CVE-2021-27065
  2. (change 7 to however many days ago you got popped/shells appeared)
  3.  
  4. $compdate=(get-date).adddays(-7)
  5. Get-ADUser -filter * -property whenCreated | where {$_.whenCreated -gt $compdate} | ft Name, whenCreated -Autosize
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement