Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can no longer run batch files unless as administrator

08 Jun 2015   #1
DaleM

Windows 7 Home Premium 64-bit
 
 
Can no longer run batch files unless as administrator

Windows 7 64-bit Home Premium - Dell 660 w/i5 Intel - 8GB RAM

I've been running the same batch files for several years with the same login account. Now, all of a sudden, I have to run them as administrator. My personal account already is an 'administrator' and not a standard user account.

These batch files are for various backups I make daily and all use the 'robocopy' command. Why, now, do I have to right-click a batch file and run it as administrator when I never had to before? I haven't had any recent updates to Windows. Not that big a deal but my curiosity is piqued.


My System SpecsSystem Spec
.
08 Jun 2015   #2
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Check post #5 and post #23 in this thread.

Can't run .bat files

Maybe it solves your problem?
My System SpecsSystem Spec
08 Jun 2015   #3
DaleM

Windows 7 Home Premium 64-bit
 
 

Post #5 was essentially the same issue. Reading on to post #8 got me to thinking though. I had set the PATH command to be able to run SCANPST.EXE to repair some Outlook 2010 .PST files and Windows could never find the SCANPST.EXE file when running the OLFix Outlook-Reperatur.exe program so I had set the path to the location of SCANPST.EXE.

For some reason I could run the batch files by running them as administrator but not by double-clicking the batch file itself. Apparently Windows wasn't finding the 'robocopy.exe' program due to the PATH variable being set. Remove the PATH entry, rebooted, and now it's working fine.

Guess I'll just have to remember that when/if I ever need to fix an Outlook .PST file again.

Thanks for the help.
My System SpecsSystem Spec
.

Reply

 Can no longer run batch files unless as administrator




Thread Tools




Similar help and support threads
Thread Forum
UAC - Batch Files just Blink (Do Nothing) when Run-as-Administrator
If the following is true: 1. A batch file resides in a path that is unprotected by windows like C:\Temp or D:\Anything, and, 2. any of the folders in the path, or the name of the batch file, contain the "(" opening parenthesis, and, 3. the batch file is run by clicking/selecting...
System Security
UAC - All Batch Files Fail when Run-as-Administrator
On only one of my Win7 boxes, any attempt to run a batch file with Run-as-Administrator produces the following error dialog. Title: C:\Users\eewiz\Desktop\Test.bat Message: Windows cannot access the specified device path or file. You may not have the appropriate permissions to access the...
System Security
How to run a batch , .bat, flle as administrator
I run a batch file from the Windows scheduler and get an error 5, 'access denied'. If i run the batch file as administrator I have access and everything is OK except I must answer the UAC popup. The question is "How can I run the batch file from the scheduler with admin privileges and NOT have to...
General Discussion
How to always run batch file as administrator?
I've made a batch file, but i don't know how to make it to always run as administartor. In .bat's file properties the option "always run as administartor" is grayed out. I have to right click it and then choose "run as administartor" from context menu. But i don't want to do it every time because...
General Discussion
batch files - run as administrator
I am a software developer (dot net). Until recently I did all my work in the XP environment. I developed a utility library that goes into the global assembly cache. In the XP world this was easy. I write some .bat files that called the gacutil.exe and passed it the appropriate parameters. ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:09.
Twitter Facebook Google+