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

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

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

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


 Can no longer run batch files unless as administrator

Thread Tools

Similar help and support threads
Thread Forum
How do I make this Batch run as Administrator by default?
I haven't looked back since recently and initially reluctantly upgrade from XP to Windows 7. Just loving it now. But I have a small BATCH file problem. I found and adapted a batch file (see below) to start the VAG parts catalogue program after first resetting the system date but then...
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
shutdown in batch file requires Administrator
Hi all, I've been using GFI Backup 2009 for backups for a while, it does everything I want, and sends email reports after backup is complete. One of its features is to shutdown the computer after a backup, this rarley works, as it wont shutdown if a program is already running, including GFI...
General Discussion
Batch File on USB fails when Ran As Administrator
I am new to this site so please excuse any lack of etiquette I may show. I have recently built a .bat files to perform a large number of configuration changes needed for a Win7 or Win8 workstation to function properly on my network. The .bat file obviously needs to be ran with elevated...
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 13:19.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App