fixed scans and added validation for invalid scans
fixed scans and added validation for invalid scans

dsolodow/dbatools,kozloski/dbatools,SirCaptainMitch/dbatools,sqlpadawan/dbatools,wsmelton/dbatools,Splaxi/dbatools