Solved

Windows 7 & batch files copy access denied

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

828 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