I am trying to run below script to export all users who matched certain criteria and get their details like name, SMPT address, account status, and group membership.
I am able to export, but for very few users whose status is enabled, they get a blank under “AccountStatus”
if you see below examples results here AccountStatus - not displayed
Name : John Smith
PrimarySmtpAddress :jsmith@XXX.com
Alias : Sjohn
Office : contoso
AccountStatus :
Internet Users : True
OWA : False
Mobile : True