Phone Get Quote
US: +1 888 720 9500
US: +1 888 791 1189
Intl: +1 925 924 9500
Aus: +1 800 631 268
UK: 0800 028 6590
CN: +86 400 660 8680

Direct Inward Dialing: +1 408 916 9892

How to get a list of all file shares in a specified server

IT administrators need to know all the file shares that exist in their network environment. They also need to know the health and operational status of these file shares.

This article compares how IT administrators can get the list of all file shares using PowerShell, and ADAudit Plus, a comprehensive Active Directory auditing tool.

Windows PowerShell

Steps to obtain the list of file shares.

  • Identify the domain from which you want to retrieve the report.
  • Identify the LDAP attributes you need to fetch the report.
  • Identify the primary DC to retrieve the report.
  • Compile the script.
  • Execute it in Windows PowerShell.

Sample Windows PowerShell Script:


This will give the list of all the file shares on the server, along with the status.

Sample output:


ADAudit Plus

To obtain the report,

  • Login to ADAudit Plus web console as an administrator.
  • Navigate to the File Audit tab, and from the Share Based Reports section in the left pane, select Summary by Share report.
  • Select the domain, required objects, and time period to get all the shares by users.
  • You may use the Export As option to export the report in any of the preferred formats (CSV, PDF, HTML, CSVDE and XLSX).
  • You can drill down into the specific shares by clicking on the hyperlinked values in the above report. For example, clicking on the value under Total Count gives all the shares.

Following are the limitations to obtain a report of last logon on workstations using native tools like Windows PowerShell:

  • The script can be executed only from the computers which have Active Directory Domain Services role.
  • It's difficult to change date formats, and apply different time zones on the date results.
  • It is difficult to export the report in file formats other than CSV.
  • Applying more filters like OU or 'User name starts with' will increase the LDAP query complexity.

ADAudit Plus will generate the report with the list of all the file shares in a specified server.

  • Avoid complex PowerShell-scripting, and simplify AD change auditing with ADAudit Plus.
  • By clicking 'Get Your Free Trial', you agree to processing of personal data according to the Privacy Policy.
  • Thanks!
  • Your download is in progress and it will be completed in just a few seconds! If you face any issues, download manually here.

Related Resources

ADAudit Plus Trusted By