Solved

Windows 7 & batch files copy access denied

Posted on 2011-03-01
1
937 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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.
OfficeMate Freezes on login or does not load after login credentials are input.
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.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

705 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