I have a script that has the following command:
$Users = Get-ADuser -Filter * -Properties * | `
where { $_.whenCreated -ge $week } | sort | select Name,WhenCreated,Description,EmailAddress
I have been successfully running this as a scheduled task on a Windows 7 box for quite awhile. Then something changed and the script errors out without returning the list of users. I have a similar, almost identical, script using get-adgroup which continues to work fine.
Has something changed or broken with the get-aduser command?
Thanks