Acces Denied in Batch Files

Hello,

I have computers in my domain running Windows 8.1 and Windows 10.  When I run a batch file as an Administrator, all of the commands in the file are "Access Denied".  Currently, I have to right click on "Command Prompt", choose Run as Administrator, map a drive to the batch file location, and run the batch file from the Command Prompt.  On my Windows 7 computers, I simply double click on the batch file, that's it.  I have UAC disabled.  In Local Policies\Security Options\User Account Control, I have "Behavior of the elevation prompt for administrators in Admin Approval Mode" set to "Enable without prompting", and "Run all Administrators in Admin Approval Mode" set to "Enabled".  What else do I need to do to allow me to just launch a batch file like I did in Windows 7 and all other versions of Windows?

August 20th, 2015 3:44pm

Hello,

Make sure you've admin rights and you've not lost them. Also try to restore the security policy to default, enable UAC and then run Command Prompt as admin and then see if this solves the problem.

Hope this helps, Good luck :)
Free Windows Admin Tool Kit Click here and download it now
August 20th, 2015 10:17pm

Hi,

According to your description, it's probably UAC problem. First of all, please follow Kapil's suggestion for test to resolve this problem.

If no use, I'd like to suggest you use Process Monitor to make deep research with this problem:

You can access to the link below to download Process Monitor:

 

https://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

 

How to capture a Process Monitor trace:

 

http://blogs.msdn.com/b/dswl/archive/2010/01/10/how-to-capture-a-process-monitor-trace.aspx

 

Learning Example:

 

Using Process Monitor to Troubleshoot and Find Registry Hacks:

 

http://www.howtogeek.com/school/sysinternals-pro/lesson5/all/

 

Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information. 

August 24th, 2015 4:04am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics