Shortcut For Shutdown - Command Not Executing When Set Time To Hibernate
Jul 8, 2009
I am making a shortcut for shutdown. So I am using command
shutdown -h for hibernate
shutdown -l for logoff
But whenever I use time for it, like:
shutdown -h -t 120
Where t 120 is number of secs after which the command will execute then the command doesn't executes. This command works fine for restart shutdown -s -t 120. I can use hibernate with time.
I have a brand new desktop machine in my office, running enterprise 64 bit version of windows 7 read that to enable hibernation, you need to run powercfg -h on from elevated command prompt. I did that, do a logoff, restart, shutdown, but it's still not appearing.
Windows 7 will will shutdown if I hold down the power button, however it will not shutdown when manually hitting "Shutdown" or just pushing the power button once.Everything looks normal when it's shutting down, it says it's shutting down. The lights on the case and fans go off, the fans shut off, yet a few seconds after the fans shutdown completely, the computer magically starts back up again. So it does shutdown (technically, all the signs are there) but it starts back up.Aside from the shutdown feature not working, sleep doesn't work (I don't use hibernate because I don't want to waste SSD write cycles). When I put the computer into sleep mode, it shuts down the fans and lights, however just like the shutdown issue, the computer powers itself back on (wake on LAN is off). Even though it is powered on, it isn't out of sleep mode. None of the peripheral devices work and I can't get the monitors to turn back on, therefore I have to hard boot the computer by holding down the power button. When I turn the computer back on, it is back where I left it before I put it into sleep mode.
I have an ASUS G51JX-X2 laptop with 8 GB RAM (4 2GB chips). I've had this computer for about 18 months without any problems. A couple of days ago, I noticed that the computer hung up when trying to hibernate. The screen was black and the hard drive light was off, but the touchpad, wireless, bluetooth, and power lights remained on. I left it and went to work, and when I returned it was still in this state so I held the power button to shut it down. The computer started normally, but then that night when I went to shut the computer down, it did the same thing. I made some changes to disable the services at start up in an attempt to narrow down the problem and I discover that is I choose restart, the computer shuts down and restarts fine (although it sits with the screen black and the lights on for a while). It will not shut down or hibernate though. what's going on:
I thought I might have gotten a driver update so I looked at Windows Update and I hadn't gotten anything since 7/21. I did get one on 8/3, but that was after I started having problems. Using msconfig I disabled the start up services (except MS) and start up items to see if that helped and rebooted. The reboot worked, but then the shutdown failed again. I read in some forums that it might be related to the wireless, so I used the switch on the front of the computer to turn off wireless and bluetooth before shutting down - no luck. I thought it might be a problem with the memory since that's a relatively recent upgrade so I created a boot CD and ran memtest86+. It ran all night through 4 passes and no errors. I ran chkdsk on the hard drive just to be safe and it didn't find any errors. I checked to see if ClearPageFileAtShutdown was set to 1 in the registry, but it is 0. I checked to make sure that the bios is up to date and it is (version 208).
For the past few days Windows refuses to shutdown. Everytime I select the sleep, hibernate or shutdown options it will reboot/reawaken straight away. I have tested the RAM which had no problems, I reinstalled Windows completely which didn't help & I checked power settings in BIOS to disable auto-restart. Laptop works fine when on, just refuses to power down - only holding the power button will get it to stop doing anything!
I am getting a BSOD during hibernate, restart etc. The problem is fixed by restoring the laptop to factory state but after a month or so the problem starts again.
I have run the diagnostic tool and uploaded the zipped file.
I have seen a lot of these topics around, but I can't see to find any that answer the question.
Windows 7 will will shutdown if I hold down the power button, however it will not shutdown when manually hitting "Shutdown" or just pushing the power button once. Everything looks normal when it's shutting down, it says it's shutting down. The lights on the case and fans go off, the fans shut off, yet a few seconds after the fans shutdown completely, the computer magically starts back up again. So it does shutdown (technically, all the signs are there) but it starts back up.
Aside from the shutdown feature not working, sleep doesn't work (I don't use hibernate because I don't want to waste SSD write cycles). When I put the computer into sleep mode, it shuts down the fans and lights, however just like the shutdown issue, the computer powers itself back on (wake on LAN is off). Even though it is powered on, it isn't out of sleep mode. None of the peripheral devices work and I can't get the monitors to turn back on, therefore I have to hard boot the computer by holding down the power button. When I turn the computer back on, it is back where I left it before I put it into sleep mode.
My computer crashes on shutdown, restart and I suspect hibernate (I think that is what causes them while it sits idle). It was more broken yesterday than it is now, as I have seemingly solved some of the problems. I have included some history below, just in case it's useful.I got back from a trip (4 month exchange) and installed 26 windows updates. only KB2607576 failed, then it worked when windows tried again. When I opened Windows after that, my NIC card and several USB drivers weren't working (code 10 I think... certain .dlls didn't load). I had to disable/reenable each device/usb one in order to get them working. Occasionally the system would hang while I did this, usually on the last USB - forcing a manual power off.
I eventually rolled back to a restore solved before I left for my exchange and; updated my BIOS, chipset and USB to the latest from the manu's site. I figure windows installed the new USB 3.0 drivers (Renases USB 3.0 Host Controller/Root Hub) without any regard to my chipset/bios version and this somehow caused the problem - though I have no evidence and little experience in this area.Windows was also telling me Skype wasn't working, though it appeared to be working fine (it gave mo the fix a problem with... dialogue). I have re-installed Skype since.Now everything seems to be working (NIC, USB, etc.), except for the crashes. When it crashes, I see a BSOD. A BSOD was happening earlier while the NIC/USB were acting up also, but there appear to be no logs for those. These are in fact the only logs I have, and this has happened several times.
I've found that when whenever I let my computer go to sleep, hibernate or restart it or shut it down then a blue screen will appear and restart the system. When the system comes to it will tell me the event name was Blue Screen and that the computer is recovering from a unexpected shutdown.I'm currently running my computer on the High Performance plan and not letting it go to any other mode?By the way, my system is a dual boot with Windows XP. XP is on my main drive and 7 is on my second drive.
In windows XP, I used to be able use "ALT + E + S" to programmatically grab the contents of a command window. This does not work in Windows 7. When you right click on the title, the "Edit" selection no longer has the "E" underlined, indicating the shortcut key to use.
Does anyone know if there is a way to turn these back on?
I just upgraded my HP TX252NR laptop to an Intel X25-M 160 GB SSD. I did a clean install of Win 7 Ultimate 64 bit. I have 3 GB of RAM. My laptop takes about 70 sec from a cold boot to login. This is much faster than the 5400 rpm drive and Vista Ultimate 64 bit. My problem is that if I hibernate the laptop it takes over 3 minutes for it to get to the point I can login. The resuming Windows screen comes up in about 20 sec which is roughly how long it takes to get to the starting Windows screen, then it seems to hang here anywhere from 2.5 to 3.5 minutes. The disk activity indicator is off and the CPU fan is running full speed. My disk score is 7.6 and my processor score is 4.8. I have update the SSD firmware to the latest. I have updated the laptop to the latest BIOS as well. Win 7 is updated with all the latest patches.
The clock in the bottom right-hand corner was always incorrect. He could change the time, but once he shut the laptop down and turned it back on, the time was incorrect again. I did some research online and tried many things to fix the issue, none of them were successful. So, he has just been putting up with the clock always being wrong. Then the other day when he turned it on, it wouldn't even boot Windows, and just says "time of day clock stopped".
I was stupid enough to manually delete my acronis files when I couldn't uninstall it the ordinary way.
Now windows 7 gives a short BSOD after logo and computer restarts. Startup repair doesn't fix the problem, neither from my windows 7 usb or from laptop, I have tried it several times.
I don't have any system restore created. I don't have any system image either to restore to either.
I really don't want to do a clean install again and wanted to try to do a repair upgrade, the problem is I can't boot into windows to begin with, and this seems to be needed to do a repair upgrade. When I try to do it from the USB it says I need to boot into windows first.
Is there a way to start the repair upgrade without having to boot into windows?
When I press F8 I don't get the options of safe mode, probably because I set the "time to display list of os to 0". Since I can't boot into windows 7 I can't change this above 0. Is there a a way to set this time above 0 from command prompt from my windows 7 installation usb?
It makes several months am using Windows 7 Professional on my Dell Studio XPS 1640 (it's a 64bit system). It was working fine and I was happy with it. It makes some weeks now that after each time I shut down, when I turn on again, it boots up to where the 4 coloured logo appears and then am left with a dark screen with only the cursor. I once waited for nearly 1 hour, nothing changed. The users screen never appeared.
I had to turn off manually, and when I turn it on again, it tell me that windows failed to restart.... and am left with these 2 options: >start Windows Normally(I went back to square 1 when I tried this) >Startup Repair.
The automatic system repair did not find any problem, I had to use the system recovery for which I had to choose a previous date in time to which I want the computer to reboot. Some times it works, sometimes I have to do it again and change the date.
When I hibernate the laptop, there is no problem when I turn it on again. But when I shut down or restart the laptop, it boots up to the "starting windows" screen with the windows logo and I have to turn it off manually.
It is causing me a lot of problem, I cannot install any program, each time I have to reinstall my printer.
I have a rig I use occasionally, as HTPC and occasional mule work, file service, etc.I would like to not have it simply sleep when I have left it running and not returned, but rather have it shutdown properly.Is there a way to do this within Windows 7 controls, or is there an aftermarket, shareware, or scripting way to do so?
Gateway DX4850 i5 2300 CPU 2.8 GHZ 6GB RAM 64 bit operating system Windows 7 Home Premium Service Pack 1
This problem started about 2 months ago. Windows takes a long time to shut down, at least 5 minutes. Sometimes it doesn't shut down and reboots.Every shuts down normally, then the grey screen "SHUTTING DOWN" just seems to hang.On one recommendation I updated the BIOS, that didn't seem to work.I scanned in safe mode with Malware Bytes Anti Malware and the computer is clean. I use AVAST antivirus.
I have Windows 7 ultimate installed. I used the Task scheduler one time to do a Shutdown of it set at 10pm it worked fine one night now when i set it for a different day it does not work anymore. i have the right trigger, time and date etc set correctly WTH.
At the moment I'm not really using an external HD for any purpose, but still have it plugged in, with the software set to put it into sleep mode after 3 minutes if it's not being used. It's actually noisier than my PC so it's something I would rather not have humming away if possible. I have noticed that when I shut down when the HD is not in sleep mode, it shuts down pretty much instantaneously. With the HD in sleep mode, we're talking about a minute. What could be the cause of this? The PC is trying to shut down, and can't see the HD because it's having a nap? Would be nice to know.
I'm currently pissed off about tmy unit which is taking too long to shutdown. I've tried the methods posted here to lessen the startup time and shut-down time of a computer but it only affected the booting process. when I shutdown it still takes that long even with the tweaks.
I've had this problem for a while and it drives me nuts. Every time I shut down my computer it will crash the next time I power up and try to boot windows 7. I can go in and out of sleep or hibernate without issue but if I ever shut down my system it will BSOD during the next power on. After this initial BSOD there are usually a series of BSOD (usually they report different error codes) in subsequent restarts. Eventually the system does seem to stabilize and stop crashing. Once things are working it will run for literally months without another BSOD.