Windows File Server Auditing Guide
Windows File Server Auditing Guide
auditing guide
www.adauditplus.com
Table of Contents
Overview 3
1. Supported systems 3
2.2 In bulk 5
6. Exclude configuration 14
8. Troubleshooting 18
2 www.adauditplus.com
Overview
A file server is a computer attached to a network that provides a location for shared storage of
computer files.
ADAudit Plus is a real-time change auditing and user behavior analytics solution that helps keep
your Windows servers secure and compliant. With ADAudit Plus, you can:
Identify the username, workstation, and IP address of each user file activity
Audit Windows failover clusters for a secure and compliant network environment that
experiences no downtime
1. Supported systems
Windows Server versions:
2008/2008 R2
2012/2012 R2
2016/2016 R2
2019
2022
Share types
SMB
CIFS
DFS
DFSR
Volume types
Mounted volume
SAN volume
Junction path
3 www.adauditplus.com
File and folder activity
Created Owner changes
Renamed
Log in to ADAudit Plus' web console. Click on the File Audit tab Select Windows File Server from
under the Configured Server(s) drop-down list Click on Add Server Follow the instructions from
Note: ADAudit Plus can automatically configure the required audit policies and object-level auditing
for Windows file server auditing. In the final step, you can either choose Yes to let ADAudit Plus
automatically configure the required audit policies and object-level auditing, or choose No to manually
4 www.adauditplus.com
2.2 In bulk
To configure Windows file servers in bulk:
1. Create a CSV file by the name 'servers.csv' in the location <installation dir>\ManageEngine\
ADAudit Plus\bin. From the Encoding tab, save the document in UTF-8 format. Open the file,
enter the names of all file servers (that you want to audit) in adjacent lines, and separate
For example, to add the file servers Test-FS1, Test-FS2, and Test-FS3; open the
Test-FS1,
Test-FS2,
Test-FS3
2. Create a CSV file by the name 'shares.csv' in the location <installation dir>\ManageEngine\
ADAudit Plus\bin. From the Encoding tab, save the document in UTF-8 format Open the file,
enter the names of all file shares (that you want to audit) in adjacent lines, and separate
them using commas.
For example, to add the shares \\SERVERNAME\testfolder1, \\SERVERNAME\testfolder2,
\\SERVERNAME\testfolder3; open the shares.csv file and enter: \\SERVERNAME\testfolder1,
\\SERVERNAME\testfolder2, \\SERVERNAME\testfolder3
After -shares, enter 'all' to audit all shares, 'single' to audit one random share, and 'shares.csv'
to audit the selected shares.
After -issacl, enter 'true' to automatically configure the required object level auditing settings and
'false' to manually configure the required object level auditing settings.
After -isauditpolicy, enter 'true' to automatically configure the required object access audit policy
and 'false' to manually configure the required object access audit policy.
For example, if you want to audit selected shares in all file servers and configure the required object
access audit policy and object level auditing settings automatically; execute the following command:
config server add -machinetype fs -shares shares.csv -issacl true -isauditpolicy true
5 www.adauditplus.com
3. Configure audit policies in your domain
Audit policies must be configured to ensure that events are logged whenever any activity occurs.
from under the Configured Server(s) drop-down list Click on Configure Audit Policy in the
This will create a Group Policy object (GPO) [domainname_ADAuditPlusPolicy] and set the required
3. In the New object - Group window that opens, type in “ADAuditPlusFS” as the Group name, check
Group scope: Domain Local and Group type: Security. Click OK.
4. Right-click the newly created group, then select Properties > Members > Add. Add all the
Windows file servers that you want to audit as a member of this group. Click OK.
5. Using domain admin credentials, log in to any computer that has the Group Policy Management
Console (GPMC) on it.
Note: The GPMC will not be installed on workstations and/or enabled on member servers by default,
so we recommend configuring audit policies on Windows domain controllers. Otherwise follow
the steps in this page to install GPMC on your desired member server or workstation.
6 www.adauditplus.com
7. In the GPMC, right-click the domain in which you want to configure the Group Policy.
Select Create a GPO and Link it here. In the New GPO window that opens,
type in “ADAuditPlusFSPolicy” and click OK.
8. Select the ADAuditPlusFSPolicy GPO. Under Security Filtering, select Authenticated Users.
Click Remove. In the Group Policy Management window that opens, select OK.
9. Select the ADAuditPlusFSPolicy GPO. Under Security Filtering, click Add and choose the
security group ADAuditPlusFS created previously. Click OK.
Advanced audit policies help administrators exercise granular control over which activities get recorded
in the logs, helping cut down on event noise. We recommend configuring advanced audit policies on
Windows Server 2008 and above.
1. To set this up, edit <ADAuditPlusFSPolicy> by right-clicking on the policy and selecting Edit.
2. Navigate to Configuration > Windows Settings > Security Settings > Advanced Audit Policy
Configuration, and configure the following settings.
7 www.adauditplus.com
Cateogory Sub Category Audit Events Purpose
Object Access Audit File System Success, Failure File share auditing
Change
2. Navigate to Computer Configuration > Windows Settings > Security Settings > Local Polices >
Security Options > Audit: Force audit policy subcategory settings (Windows Vista or later) to
override the audit policy category settings.
8 www.adauditplus.com
3.2.4 Configure legacy audit policies
Due to the unavailability of advanced audit policies in Windows Server 2003 and earlier versions, legacy
1. To set this up, edit <ADAuditPlusFSPolicy> by right-clicking on the policy and selecting Edit.
2. Navigate to Configuration > Windows Settings > Security Settings > Audit Policy Configuration,
and configure the following settings.
File integrity
monitoring
9 www.adauditplus.com
4. Configure object-level auditing
To audit file and folder access, corresponding object-level auditing must be applied to
shared folders. This can be achieved in two ways:
1. Automatic configuration
2. Manual configuration
1. Log in to ADAudit Plus' web console Go to the File Audit tab in the top menu Click on
2. Click on the Remove or View Configured File Shares icon corresponding to the file server
you're looking to configure object-level auditing for in the list of servers Select the
respectiv shares, and click Apply object-level audit settings on configured shares
Color codes:
Hover the cursor over the share to see the error code.
Red—Object-level auditing is not set correctly or an error occurred during the configuration.
10 www.adauditplus.com
4.2 Manual configuration
4.2.1 Using Windows shares
Right-click on the share folder that you want to audit, select Properties, and then click on the
Security tab Select Advanced, and then click on the Auditing tab For the Everyone group,
11 www.adauditplus.com
4.2.2 Using PowerShell cmdlets
1. Create a CSV file containing the Universal Naming Convention (UNC) path or local path and the
type of auditing (file server auditing [FA]) of all the folders that you need to enable auditing for.
2. The CSV file should contain the list of folders in the following format: <folder>,<type>
Example:
\\SERVERNAME\folder,FA
C:\test folder,FA
Nots: When removing object-level auditing for a set of folders, the -type parameter is not mandatory.
Once you have the CSV file that lists all the servers and the type of auditing required, go to the
<Installation Directory>\bin folder within the PowerShell command prompt and type in:
.\ADAP-Set-SACL.ps1 -file '.\file name' -mode add (or) remove -recurse true (or) false -username
DOMAIN_NAME\username
Where,
-file name of the CSV file containing the list of shared folders yes
12 www.adauditplus.com
Note:
When removing object-level auditing for a set of folders, the -type parameter is not mandatory.
For example:
To set object-level auditing for the list of folders in the shared_folders_list.CSV file, use:
To replace all sub-folder object-level auditing settings with inheritable auditing settings applied
To remove object-level auditing for the list of folders in the shared_folders_list.CSV file, use:
Policies > Windows Settings > Security Settings > Event Log.
3. Configure the Maximum security log size as defined below. Ensure that the security log can
13 www.adauditplus.com
Role Operating System Size
6. Exclude configuration
Files/folders can be excluded based on File/folder local path, file type, process name,
and user name by using the Exclude Configuration setting.
Log in to ADAudit Plus' web console Go to the File Audit tab, navigate to the left pane, click on
Configuration and then on Excude Configuration Choose to exclude by File/Folder local path,
File Type, Process Name, or Users Click on '+', and configure the necessary settings.
14 www.adauditplus.com
Example scenarios, to exclude by File/Folder local path:
\\SERVER_NAME\share_name c:\sharefolder
Syntax c:\sharefolder\excludefolder
c:\sharefolder\excludefolder\*
c:\sharefolder\excludefolder\folder
c:\sharefolder\excludefolder\files.txt
c:\sharefolder\excludefolder\folder\files.txt
Syntax C:\\Users\\[^\\]*\\AppData
C:\Users\user2\AppData
C:\Users\user1\AppData\subfolder
C:\Users\user2\AppData\subfolder
C:\Users\user2\subfolder\AppData
15 www.adauditplus.com
To exclude files from a specific folder but audit all
Objective
subfolders and its contents
Syntax ^c:\\sharefolder\\excludefolder\\[^\\]*\.[^\\]*$
c:\sharefolder\excludefolder\folder.withDot
c:\sharefolder\excludefolder\folderWithoutDot
c:\sharefolder\excludefolder\folderWithoutDot\subfolder
c:\sharefolder\excludefolder\folderWithoutDot\testfile.txt
c:\sharefolder\excludefolder\folder.withDot\subfolder
c:\sharefolder\excludefolder\folder.withDot\testfile.txt
16 www.adauditplus.com
7. File Analysis in ADAudit Plus
Overview
File Analysis uses metadata and disk space scans to provide critical insights into file server
security and storage aspects. It is a component of ManageEngine's data visibility and security
platform, DataSecurity Plus. The File Analysis module within ADAudit Plus lets you scan up to
200,000 files to gain file storage insights.To try out all File Analysis features, you can
download a free, fully functional, 30-day trial here.
All Files
Old Files
Stale Files
Unmodified Files
Hidden Files
The preview version of File Analysis will automatically scan up to 200, 000 files configured in
ADAudit Plus for file server auditing. Scan data for these files will be retained and processed
to be presented in reports. To scan more files and try all File Analysis features, you can
download a fully functional, 30-day trial here.
You can specify the files you want File Analysis to scan by editing the file shares configured at
File Analysis > Configuration > Windows File Server. Specify the number of days that
indicate the age or the last access time of the files you wish to report by navigating to File
Analysis > Configuration > Report Configuration.
17 www.adauditplus.com
8. Troubleshooting
1. How to check if the audit polices and the security log settings have been applied
Log in to any computer with domain IT admin privileges Run Command Prompt as an
to C:\Users\<logged in user>\<file name.HTML> to check if all the audit policy settings and
3. How to verify that the events are present in the monitored computers:
Log in to any computer with domain admin privileges Go to Run, and type eventvwr.msc
Right-click on Event Viewer, and connect to the target computer Check if the
ManageEngine ADAudit Plus is a real-time change auditing and user behavior analytics solution that helps keep your
Active Directory, Azure AD, Windows servers, and workstations secure and compliant.