Look under Control Panel\All Control Panel Items\Power Options click on the 'Change when the computer sleeps' section, on the dropdown menu select 'Never' then click 'Save changes' do your scan.
Once the scans finished go back and edit your power options to re-set them back to what you want.