While logged into my domain controller (Win2k12r2) as the admin account, whenever I try to delete a computer using the command net computer \\NAME /DEL I'm always hit with the error:

System error 5 has occurred. Access is denied

This is only happening on the CLI, when I go into the AD GUI I am able to remove the computer without any issue. Anyone have any idea why the admin account doesn't have permission to run net computer?

  • Is the user also a member of the domain admins group? – eKKiM Jun 3 '16 at 13:01
  • Local group membership is Administrators and the global group memberships are Domain Users, Domain Admins, Schema Admins, Enterprise Admins, Group Policy Creator – Takkun Jun 3 '16 at 13:03
  • Are you running it from an elevated prompt? – curropar Jun 3 '16 at 13:20
  • Yes, net computer is being run as administrator – Takkun Jun 3 '16 at 13:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.