Solved

Windows 7 & batch files copy access denied

Posted on 2011-03-01
1
930 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Image capture and Deploy method is consist on two phases. In our first phase we capture the image of windows from the PC in which Windows and others softwares are already installed. In second phase we deploy the created image on new PC in which we…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now