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: shutdown in batch file requires Administrator

02 Nov 2014   #1
Remush

Win XP 32
 
 
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 backup, so its poorly designed, and no longer supported. I work around this problem with its other shutdown options, which is to run a program at backup completion, I browse to a batch file that contains the following.

shutdown /s /f /t 60

This is working on most of my computers, however I just setup a new system for our community centre running windows 7 with all the latest updates, and on this particular system, when its finished the backup and run the batch file, I see a cmd window appear and it repeats the shutdown command down the cmd window, without actually running it. like this.

shutdown /s /f /t 60
shutdown /s /f /t 60
shutdown /s /f /t 60
shutdown /s /f /t 60
shutdown /s /f /t 60
shutdown /s /f /t 60

However, if I execute the command in a run prompt it works, if I right click on the batch file, and run as Administrator it works.

So I don't know why my other win 7 computers are working fine, and the new one is not.

Any suggestions and comments are very welcome,

Thanks you.


My System SpecsSystem Spec
.
02 Nov 2014   #2
Ztruker

Windows 10 Pro X64
 
 

What happens if you right click on the GFI Backup 2009 executable and select Properties.
Click on the Compatibility tab and check Run this program as an Administrator?
My System SpecsSystem Spec
03 Nov 2014   #3
Remush

Win XP 32
 
 
[solved]

Quote:
What happens if you right click on the GFI Backup 2009 executable and select Properties.
Click on the Compatibility tab and check Run this program as an Administrator?
Thanks Ztruker, your solution has worked.

Much appreciated.
My System SpecsSystem Spec
.

03 Nov 2014   #4
Ztruker

Windows 10 Pro X64
 
 

Great! Thanks for letting me know.
My System SpecsSystem Spec
Reply

 shutdown in batch file requires Administrator




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Execute Program in Batch File As Administrator (Or Other Solution)
We use a program called TFC.exe (Temp File Cleaner - addpcs.com) to wipe all sorts of temp files off a computer on a monthly basis. The older version was a standalone .exe that users used to execute from a a folder on a server. The newer version is actually installed on each user's PC. If...
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...
Software
Batch file to de-fragment, backup, then shutdown?
Hey guys, Is there a way I can create a batch file so de-fragment my hard drive, once that has finished, backup to an external hard drive, and then one that has finished shut down the PC? Thanks, JPiiONEFOURONE
General Discussion
Shutdown PC w/ batch file (1hour) after program(game) launched
Is it possible to do this? I want to make it so that a game shuts down the computer after "X" seconds/minutes/hours of playing the game. But i want the file to be somewhat undetected. I don't want it popping up with a message saying things like "PC will shutdown in 3 minutes" or anything like that...
Chillout Room
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
Auto shutdown batch file help
Happy new year everyone, I'm looking to create a batch file to auto shut down my machine after a certain amount of time. Just want to check if i have got the 1st part of the command right in notepad but i was not sure how i go about putting in a timer for example if my download has 2hrs left i...
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 12:16.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App