Changing the Items per Page Value in Exchange Admin Center (EAC)

When I open the recipients > mailboxes section in the Exchange Admin Center (EAC), the list is divided into pages according to the Items per page value at the bottom of the page. In my own environment, I see the options 50, 100, 200 and 500 in this list. In an organisation that hosts a few hundred mailboxes, working with a low value means that I have to change pages constantly to reach the object I am looking for or to make a bulk selection.

I did not find a setting in the EAC interface that lets me add a new value to this list of options. In my environment, the options are defined in the list.js file, which is in the scripts folder of the ECP virtual directory on Exchange Server. I edit this file to add the value 1000 to the list, and then verify how the change is reflected in the EAC. At the end of the article, I also cover what to consider after an update and in environments with more than 1 Exchange Server.

The page size has been selectable in the EAC since Exchange Server 2013. The list.js edit described here was applied on Exchange Server 2019 CU12 (15.2.1118.7). On other builds, the path and the content of the file must be checked separately.

1- Effect of the Items per Page Value on Paging

Items per page determines how many objects are listed on a single page. The number of pages is found by dividing the number of objects in the list by the number of objects per page and rounding the result up. For example, in an organisation with 1000 mailboxes, selecting 50 produces 20 pages, each containing a maximum of 50 mailboxes. When 500, the highest value in the list, is selected, the same list is reduced to 2 pages.

Changing the Items per Page Value in Exchange Server

When I look at the paging values at the bottom of the recipients > mailboxes section in the EAC in my own environment, I see the options 50, 100, 200 and 500. My Exchange organisation has a total of 851 mailboxes.

Changing the Items per Page Value in Exchange Server

With 50 selected in Items per page, the 851 mailboxes produce 18 pages, each containing a maximum of 50 mailboxes.

Changing the Items per Page Value in Exchange Server

When I select 500, the same 851 mailboxes are divided into 2 pages, each containing a maximum of 500 mailboxes.

Changing the Items per Page Value in Exchange Server

The number of pages that each option produces for 851 mailboxes is shown below. To see the list on a single page, I need a value higher than the existing options.

Items per page Number of Pages Produced
50 18
100 9
200 5
500 2
1000 (the value added in this article) 1

The page size must be increased with moderation. When I increase the value, the browser shows more mailbox rows on the same page. For administrators who access the EAC over a network connection with low bandwidth, the page can take longer to open. The number of objects that the EAC list view can display is also limited to approximately 20,000. It is enough to choose a value that is high enough to cover the number of mailboxes in the organisation and does not go beyond that.

2- Editing the list.js File

The edit is made directly on the Exchange Server. To save the list.js file, the text editor must have write permission on the file. If an access error occurs while saving, the editor must be opened as administrator with an authorised account. Before starting the edit, copying the list.js file to a different folder reduces the rollback to a single file copy operation.

Editing the list.js file is not a configuration method documented by Microsoft. The change affects all administrators to whom the edited file is served.

Step 1 - Opening the scripts Folder

I will change the Items per page options by editing the list.js file in the scripts folder at the following directory path.


C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp\15.2.1118.7\scripts

The folder named 15.2.1118.7 under the ecp folder is the Exchange Server CU (Cumulative Update) build number in my environment. The name of this folder differs according to the build installed in your environment.

Changing the Items per Page Value in Exchange Server

Step 2 - Opening the list.js File in Edit Mode

To edit the list.js file, I right-click it and select Edit.

Changing the Items per Page Value in Exchange Server

Step 3 - Adding the New Value

In the opened file, I find the area where the values 50, 100, 200 and 500 appear together. As an example, I add the value 1000 in addition to the existing values, then save and close the file.

Keeping the existing values is not mandatory. If you prefer, you can delete the values 50, 100, 200 and 500 and leave only a specific value. In this example, I could also have deleted the existing values and left only 1000 in the list. This is entirely your choice.

Changing the Items per Page Value in Exchange Server

Changing the Items per Page Value in Exchange Server

Changing the Items per Page Value in Exchange Server

3- Verifying the Change in the EAC

Step 4 - Seeing the New Value in the List

I refresh the browser in which the EAC is open and look again at the paging values at the bottom of the recipients > mailboxes section. I see that the 1000 value that I added to the list.js file is reflected in the list.

If the old list continues to appear, I first refresh the page while bypassing the cache (Ctrl + F5). If the result does not change, it is necessary to check whether the list.js file served to the browser is the file that I edited. In environments with more than 1 Exchange Server, the request may have been handled by a server on which the file was not edited.

Changing the Items per Page Value in Exchange Server

Checkpoint
The 1000 option must appear in the Items per page list next to the existing values.

Step 5 - Selecting the Value 1000

I select 1000 in Items per page. Because the total of 851 mailboxes is below this value, no paging occurs and all mailboxes are listed on a single page.

Changing the Items per Page Value in Exchange Server

4- Considerations for Updates and Multi-Server Environments

The list must be checked after a CU or SU. Starting with Exchange Server 2019 CU13, Exchange Server Setup preserves the customisations in some configuration files during an update. list.js is not among these preserved files. For this reason, the Items per page list must be checked after every CU (Cumulative Update) and SU (Security Update) installation. If the added option has disappeared, the relevant area in the list.js file in the new build folder is verified and the edit is applied again.

The edit must be made on every Mailbox server that serves the EAC. The change is valid only on the server where the file was edited. For the option to be visible to all administrators, the same edit must be applied on every server that serves the relevant EAC file. Edge Transport servers are outside this scope because they do not serve the EAC.

The rollback depends on the edit that was made. If you only added the value 1000 to the list, removing this value from the list.js file is enough. If you also deleted the existing options, you must add the original values back or restore the copy of list.js that you took before the edit for the same build. The list then returns to its previous state when the browser is refreshed.

This article covered how a new value is added, by editing the list.js file, to the Items per page options that determine the paging behaviour of the mailbox list in the Exchange Admin Center (EAC) interface on Exchange Server. As the number of objects grows, a low number of records listed per page requires constant page changes during daily administration tasks. When a value that suits the size of the organisation is added to the list, all mailboxes can be displayed on a single page. Remember that the change is made in a server-side file, that it must be checked after CU and SU installations, and that it must be applied on every Mailbox server that serves the EAC.

I hope you find it useful...

No comments on this article yet. Be the first to comment!

750 characters available.
Security code
Comments are published once approved.
Your email is only used to let you know when your comment is approved. It is never published.