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: Minor annoyance with W7 vs XP startup after power failure

09 Jun 2014   #1
Essexinc

Windows 7 Ultimate 32-bit
 
 
Minor annoyance with W7 vs XP startup after power failure

Hi forum-folk! Got an application that used to run in an XP box that was routinely powered off without shutdown, and it simply powered right back up with no problem... Now that I'm on a different platform (different motherboard AND different OS), I find that the same sequence (power off; power on) does NOT produce the same results.... I get the "windows was not shut down properly" warning when power is restored... It's not a huge deal, just delays the restart process by 30 seconds...

In both instances I've got the "power on after power failure" setting in the BIOS set the same way - "power on after power failure"...

Any suggestion as to what I can do to disable the warning, or at least minimize the time before it goes ahead and starts normally?

Thanks much for any help any of you can offer!

Joe P


My System SpecsSystem Spec
.
09 Jun 2014   #2
gregrocker

 

Please tell us what the application is and does, and why it needs to shut down this way?

As an aside you might want to try Hibernate which is very popular on my installs. Consumers like being able to close the lid, press the Power button (if set to Hibenate) or choose Hibernate from the Shut down menu, or let it time out to Sleep and then Hibernate, leaving work on the desktop if desired, without concern for when you come back since it will save everything to hard drive and then shut down. But it starts up twice as fast and puts everything back where you left it on desktop. With my SSD I have 5 second startups, and this post waiting to complete if I close the laptop lid and carry it across town.
My System SpecsSystem Spec
09 Jun 2014   #3
Essexinc

Windows 7 Ultimate 32-bit
 
 

The application is basically just a windows app that displays some info on-screen... The reason for the "power-off" shutdown is that the app runs without any mouse or keyboard attached, and relies on the arrival of a file via FTP to trigger the display process...There's no other interface... The pc is actually just a mini-itx board whose power supply is interrupted by a switch on the outside of the box....

Hope this helps!

Joe P
My System SpecsSystem Spec
.

09 Jun 2014   #4
gregrocker

 

Sounds like it was written for XP if it would allow hard shutdowns for XP. But these are never advisable for Win7. I'd contact the author of the program to find out what he/she advises.
My System SpecsSystem Spec
09 Jun 2014   #5
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

This would be helpful.

By Brink:
System Info - See Your System Specs


In the bois of my Asus Motherboards their is a setting for what the computer should do after a power loss shut down.

I have it set to do nothing. Which allows me to choose how it starts when a problem like this occurs.
My System SpecsSystem Spec
10 Jun 2014   #6
Essexinc

Windows 7 Ultimate 32-bit
 
 

Thanks for the replies, guys!
Contacting the author should be pretty easy, as it's me (grin).... Is there anything that could be done in the code that would prevent this behavior? Short of providing some sort of human interface to allow for proper shutdown, (which isn't an option!), I really don't have any idea what I could do to "prepare ahead of time" for an eventual power interruption... My BIOS is set to "power on after power failure", and there's no connection to the startup pins, so, I'm counting on the BIOS setting to bring it back up....

Thanks again for your time!

Joe
My System SpecsSystem Spec
10 Jun 2014   #7
gregrocker

 

Write a Win7 Shutdown into your script, which is at C:\Windows\System32\shutdown.exe -s -t 00
My System SpecsSystem Spec
10 Jun 2014   #8
Essexinc

Windows 7 Ultimate 32-bit
 
 

I think we're back to "how would this be triggered?" Under normal circumstances, the system would remain up all the time, either displaying what was sent, or waiting for the next bucket o' bits to arrive... Shutting the box off isn't a normally-occurring thing... But power interruptions DO happen, and more often when you put the switch in front of the user (grin!)
Anyway, without some mechanism to trigger the "shutdown -s -f -t 00" I'm still sort of stuck here... It's not a huge deal, just a 30-second delay waiting for the warning to time out.... Can that interval be changed?

Thanks again!

Joe
My System SpecsSystem Spec
10 Jun 2014   #9
gregrocker

 

If you wrote the program that is now suffering a hard shutdown, then can you add the shutdown line to the script?

If not I would not operate a program that shuts the PC down hard. It might work 99 times but be catastrophic on the 100th.
My System SpecsSystem Spec
10 Jun 2014   #10
Essexinc

Windows 7 Ultimate 32-bit
 
 

I could add the shutdown line to the script, yes, but.... Under normal circumstances, I never want to shut it down, and.... given the absence of any user interface (no mouse, no keyboard), I can't expect the user to tell me when to shut it down....

Hmm... However.... Here's a thought: Since the only interface is via files being received via FTP... perhaps I could put code in the program to watch for a "special" file - say "killit.txt", for example, and trigger the shutdown line that way! This would at least give me a CHANCE to prevent hard power-offs.....

Thanks again for the suggestions!! I'll go give that a try.....

Joe
My System SpecsSystem Spec
Reply

 Minor annoyance with W7 vs XP startup after power failure




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
External Hard Drive failure. "Bad disk" after power failure
Hi Everyone, I'm hoping to get some help. I had a power outage while my WD Elements 1.5 TB Hard drive was on. I wasn't accessing it but apparently that was enough. I had a lot of important data on it but losing hope after unsuccessful attempts to use PhotoRec to get items off it. It...
Hardware & Devices
BSODs after possible power failure - Kernel-Power Event ID:41
Hello there. Firstly, sorry for not posting the zipped files as requested, I ran the utility but my paths are custom and it did not create the folder as expected. I include the crashdump files and diagnostic however. Some background: PC is about 4 years old. It had Vista (x64) on it for the...
BSOD Help and Support
Power Failure?
I have a Shapphire HD 6870 that i just bought it ran perfectly for days until today when i tried to play black ops my game froze and went black. I tried to start up my computer but it never started up and i can hear my gpu fan turning on and off. I plugged in my old 4670 and same problem. My friend...
Graphic Cards
Windows 7 Startup Repair Annoyance
I am running on Windows 7 home premium. After looking for answers for this, I know it has something to do with the USB port, and the only thing I connect to my USB port is a wireless mouse. After starting up my laptop I find that when opening Chrome, I can not exit, nor can I go to...
General Discussion
Power Failure
Yesterday there was a power failure in my house while my pc was running my pc was idle at the desktop with only firefox open now im kind of worried that the power loss might have corrupted something ive done the usual like sfc /scannow and chkdsk and they didn't find any errors and i...
General Discussion
BSOD power failure
I've been using W7 since it went public, within the last 18 hours I got about 15 BS'sOD. I think the problem had something to do with the fact that I plugged my laptop into a power strip BEFORE turning the power strip on...idk. But whenever I plug in my laptop it takes about 30 seconds for a BSOD...
Drivers


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 15:00.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App