Hi,
My goal is to list any OU created today, so I have the following:
$Today = Get-Date -F d
Get-AdorganizationalUnit -Filter {whenCreated -eq $Today}
The result of $Today is a String in the format mm/dd/yyyy, so the format is correct.
The whenCreated OU property is a DateTime format in the format mm/dd/yyyy hh:mm:ss AM/PM.
I'd like to keep the Filter on the Get-ADOrganizationalUnit cmdlet and not use a Where object.
Any suggestions on how to perform