 <p>Did you want just the current domain, or the domain with parent domains included?</p> <p>Current Domain Name:</p> <pre class="lang-powershell prettyprint-override"><code>Import-Module ActiveDirectory $name = Get-ADDomain | Select -ExpandProperty NetBIOSName Get-ADObject -Filter 'objectclass -eq "user"' -Properties CN,DisplayName,Discription | select | Export-Csv -NoTypeInformation "c:\" + $name + ".csv" </code></pre>