You can use the normal "Get-ADUser" cmdlet for figuring out the users with missing or empty attribute:
Get-ADUser -Filter {-not (employeeid -like "*") }
The above command will return all objects that have the property empty.
using $null to match the filter criteria will result in the following error:
====================================================================
Get-ADUser : The search filter cannot be recognized
The above command will return all objects that have the property empty.
using $null to match the filter criteria will result in the following error:
====================================================================
Get-ADUser : The search filter cannot be recognized
====================================================================
No comments:
Post a Comment
Thank You.
https://linwintech.blogspot.com/