My system is Windows 10 Pro x64, with the latest updates applied.
When I try to execute any "net" command in cmd (eg: net stop TeamViewer, net users, etc') I get the error "System error 5 has occurred. Access is denied."
I have researched for hours and did every possible solution I saw mentioned anywhere but still no luck. Here are a few facts:
- I opened the cmd with admin rights (see screenshot below)
- I am the sole PC user with full admin rights.
- This happens even if I disable Windows Firewall.
- My UAC is disabled and in the registry, EnableLUA is set to 0.
- Also in Windows Built-in administrator account, the issue happens.
How can I give myself access to run net commands?
(note: I know there are similar questions on this forum to my question but none of those answers helped my case.)
UPDATES:
- Please don't recommend answers from posts such as net-user-administrator-activeyes-returns-system-error-5-has-occurred-acces since I already explained in my bullet points why the answers there don't apply for me.
- I tried to rebuild my machine using the Media Creation Link as suggested in the comments (repair in-place). Took 5 hours but was not successful and I cannot try again with a boot disk (I recall trying this a few years ago and know it won't help).
In reply to @frank:
does this affect all services or just select ones?
All services. Also, any "net" command, even if it's not related to a service (as mentioned in my question)
Can you start and stop the service in services.msc?
Yes. But I need to be able to also stop services via a cmd command to create a batch file.