How to Transfer Music From My iPhone to a New Computer
- 1). Open iTunes.
- 2). Connect your iPhone to your computer with the USB cable.
- 3). Click the "Store" button located near the top of iTunes.
- 4). Click "Authorize Computer." Type in your iTunes account ID and your password, then click "Authorize," then "OK." You can only have five computers authorized at one time.
- 5). Click "File," then "Transfer Purchases from iPhone." All your music, images and videos will transfer from your iPhone to your new computer.
Source...