skip to Main Content

Pagefile Exchange 2013/2016 best practice PowerShell

How to configure the pagefile in Exchange Server 2013/2016 through PowerShell? In one of the previous articles, we talked about Pagefile Exchange 2013/2016 best practice. Read the article to understand the best practice of the pagefile. What if you don’t want to do the math and don’t want to edit the pagefile through the Exchange Server GUI? For example, you want it to run on many Exchange Servers. This will take time. What if you can run a script and it does it all? PowerShell to the rescue.

Configure Exchange Server pagefile through PowerShell

I came across the following post by MVP Damian Scoles. He made a script to configure the pagefile of the Exchange Server 2013/2016. Download the Set-PagefileExchange2013-2016.ps1 PowerShell script. Save the script in your c:\scripts\ folder. Run the PowerShell script as administrator. If you like, you can copy the script below and paste it in PowerShell. The script will tell you exactly what it is doing. If you get an error, the script will show you why. For example, if you don’t have enough space on the disk drive.

It’s a great script and does the job. If you have many Exchange Servers and want to change the pagefile, make your life easier and run the script. Will you be using the PowerShell script in your Exchange Server 2013/2016? I recommend to use the script.


You learned how to change the Exchange Server 2013/2016 pagefile through PowerShell. Run the script and it will configure the pagefile on the Exchange Server 2013/2016. Don’t forget to reboot after the change! This script should only run in Exchange Server 2013/2016. Not on other Exchange Server versions. If you enjoyed this article, you may like Put Exchange Server in maintenance mode. Don’t forget to follow us and share this article.



ALI TAJRAN is a passionate IT Architect and IT Consultant. His specialism is designing and building complex enterprise environments. He started Information Technology at a very young age, and his goal is to teach and inspire others. Connect with ALI TAJRAN on social media. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top