If you wish to download a list of enrolled students from a Moodle course, follow the steps below:
Step 1:
Go to your Moodle course > ‘Administration’ block (located on the left-hand side) > click ‘Gradebook set up’
Step 2:
You will see more options appearing below ‘Gradebook setup’, click on the arrow icon next to ‘Export’ > click ‘Excel spreadsheet’
Step 3:
Click ‘Select all/none’ to deselect all assessment from being added to the spreadsheet > click ‘Download’
Step 4:
Once the download is complete, open the spreadsheet and you should be able to see a list of all enrolled students on your course.