Hello and thank you to all who take the time to look at my post and offer assistance!
Currently I am trying to make a script that returns enabled users who were created today or whenever the present day is when it is run, but without the time factored into the date. Right now if I try to run the below it doesn’t return anything. I’ve tried many of the comparison operators but it still doesn’t work.
Get-ADUser -Filter "enabled -eq 'true'" -Properties name, whencreated |
where {$_.whencreated -like (get-date)}
Now if I instead try to find users created in the last two days as an example I can do that, but it is always taking the time into account which is what I want to ignore. I simply want it to find users created on 12/29/21 and not worry about a timestamp at all, just find anyone created on that day at ANY time.
I’ve done a lot of googling and trial and error but am having no such luck. Hopefully my post makes sense and thank you again to any who offer help!