Evening All

Does anyone know away to export contacts/users of a distribution list to excel or text file.
I cant/not allowed install software to do it.

I know the below custom dsquery in AD works but on this particular network it isnt working for me, have even tried directly from the domain controller in case it was a trust issue

(&(objectClass=User)(memberOf=CN=<Distribution Name>,OU=xxxxxx,OU=xxxxxx,DC=<domain name>,DC=co,DC=nz))