Create a custom hand report in PokerTracker 4. See
Creating My Reports for how to set one up. In the report, open the hand limit drop-down at the top right, select ‘<Specify Number of Hands...>‘ and enter 100000. Once the hands are listed, click in the report and press Ctrl + A to select all of them. Then right-click the report and select ‘Export Original Hand Histories’.