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
Microsoft MVP

 

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
Microsoft MVP

 

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 10 Pro. 64/ version 1709 Windows 7 Pro/64
 
 

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
Microsoft MVP

 

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
Microsoft MVP

 

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




Similar help and support threads
Thread Forum
Help.Black screen before Login Menu. Minor annoyance but needs fixing.
(And before you ask, yes, I scoured Google. Plenty of hits, but different problem.) When I start Windows, I get this black screen showing nothing but the mouse pointer for exactly 81 seconds before the Login Menu appears. Not a huge problem, just very annoying. I can log in just fine after...
Performance & Maintenance
BSOD Driver power state failure when shutting down /failure USBports
Hi, I've been browsing the site and the internet for a sollution to my problem, but can't seem te find it. There are similar postings, but they're always just a little different. So that's why i posted the new thread. Since a couple of days i've been experiencing troubles shutting down...
BSOD Help and Support
Windows 7, stuck in windows startup repair loop after power failure
I had a power failure yesterday and I have been unable to restart my Windows. It is stuck at the startup repair or "start windows normally". Neither options works and it keeps coming back to this screen. Unable to to start in safe mode or restart in last good configuration. Did some...
General Discussion
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
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


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:54.
Twitter Facebook Google+