-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing username in AD UserLockout events #66
Comments
The first issue and the workaround is described here: https://evotec.xyz/active-directory-how-to-track-down-why-and-where-the-user-account-was-locked-out/ I was thinking few times if I would be able to gather this information and track it somehow even if it's missing in events - but no time to investigate. So the missing computer is normal and it shouldn't affect the report at all - and you're saying it does affect the user. This needs to be investigated. |
Thanks for the quick answer :) I can attach additional data - maybe the entire xml of such event as written in the log, or maybe the contents of $Events, eg what the script gets? |
ye, xml would be better. Weird that I link wrong field. |
here it is /edited domain name&user/ |
Let me see if I can reproduce it during weekend. I have to resurrect this project a bit, as I've not played with it for longer while. The problem is - i would like to change so much that I am afraid to touch it ;) |
Sorry it took a bit longer than expected.. I've tracked it down to PSEventViewer.
It seems that TargetDomainName is missing in the XML you sent me. And in the logic that creates ObjectAffected it expects both TargetDomainName and TargetUserName to be present. When I look at my events:
That's something that is just there. I think I need to fix PSEventViewier with additional logic |
Thanks :) |
It's weird, but I've added that additional logic to PSEventViewer, just doing some optimizations and will release it with fixes, along with new version of PSWinReportingV2 which hopefully solves your issue. |
Released new version which should fix the issue |
Using PSWinReporting 2.0.0.20
Playing with results and I noticed from time to time I get events with date/time, DC, but no username and affected computer
Found these events - there is no affected computer indeed(probably these are generated from our users when connecting from gsms, or who knows)
But there is username in TargetUserName/Account field.
The event is absolutely normal, just the field "ComputerLockoutOn" /"Caller Computer Name" is empty
user fields - "Account name" and "TargetUserName" hold the affected user.
But in results no user name is returned
Tried to debug, but my knowledge is not enough.
Traced that upto GetEventsTranslation user info is kept.
In line 2148: $MyValue = FindEventsTo .... the info is still there...
myvalue.txt
Somehow, the emptiness of Computer name clears the field for user name - its not returned
I am attaching contents of variable $MyValue[n] at mentioned line 2148 - changed sensitive data only
The text was updated successfully, but these errors were encountered: