error 5 is permissions denied error. Do you have an antivirus that could be the culprit here?
Also try to see if its wmic error, try the suggestions in this thread