Solved

Windows 7 & batch files copy access denied

Posted on 2011-03-01
1
935 Views
Last Modified: 2012-05-11
Hi

We have a batch file which needs to copy an exe file to the local c:\ drive and then run. The only problem being is that we get 'access denied'.

If i run this locally with cmd 'run as administrator' it works but I need to push this out to over 100 users and for it to work each time a user logs on and off.

So the question is how do I run this batch file which will have access to copy the file to the c:\ and then execute the exe, even if the user is not a local admin?

Thanks
0
Comment
Question by:Haygarth-IT
1 Comment
 
LVL 8

Accepted Solution

by:
subhashchy earned 250 total points
ID: 35005604
UAC will not allow you to copy files to root of C:\ .

Better option will be use any subfolder or maybe users home directory will be better place to copy that file and then execute.

0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question