• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 940
  • Last Modified:

Windows 7 & batch files copy access denied

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
Haygarth-IT
Asked:
Haygarth-IT
1 Solution
 
subhashchyCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now