1. Open the Exchange management shell
Click on start and then expand Exchange Server 2019 and click on Exchange Management shell.
2. Change location
For the first command to work, you need to type cd\ and press enter. Next you need to navigate to "C:\Program Files\Microsoft\Exchange\V15\Scripts.
3. Type in the first commmand
Enter in the following command: .\Move-TransportDatabase.ps1 -QueueDatabasePath C:\data\Queue -QueueDatabaseLoggingPath C:\data\Queue\Logs -IPFilterDatabasePath C:\data\IPFilter -IPFilterDatabaseLoggingPath C:\data\IPFilter\Logs -temporarystoragepath C:\data\TemporaryStoragePath (Replace C:\ with the desired drive letter)