Hi,
Thanks for your question.
Get-ADUser -Filter {-not(extensionAttribute1 -like "*") } -SearchBase "OU=Users,DC=domain,dc=com"
You can try to filter the blank attribute by the script example above.
Best regards,
Young Yang
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to export a list of users with various attributes which have a particular attribute set to <not set>,
I've tried various combinations such as below with no luck as yet
Get-ADUser -Filter 'extensionAttribute1 -like ""' -SearchBase 'OU=Users,DC=domain,dc=com
Can anyone point me in the right direction?
Hi,
Thanks for your question.
Get-ADUser -Filter {-not(extensionAttribute1 -like "*") } -SearchBase "OU=Users,DC=domain,dc=com"
You can try to filter the blank attribute by the script example above.
Best regards,
Young Yang