To do this go to Reporting > Reports > Students (tab) > Custom report (blue).
On this report select the year group you wish to run the report for and tick the items to include. In this case the Name and Student ID as seen below:
Once you have selected all the items to include click Choose to run the report. You can then use the yellow icons in the top right to export or print the report.