Hibernate command
Solved
First of all, good evening everyone,
As the title of the message says, I am looking for a command for SLEEP MODE EXTENDED, like:
rundll32.exe user32.dll,LockWorkStation: for sleep mode
shutdown.exe -s: for completely shutting down the computer
etc.
...but for hibernation (I would like to create a shortcut to place on the desktop).
Thank you in advance and I hope someone can respond to me.
As the title of the message says, I am looking for a command for SLEEP MODE EXTENDED, like:
rundll32.exe user32.dll,LockWorkStation: for sleep mode
shutdown.exe -s: for completely shutting down the computer
etc.
...but for hibernation (I would like to create a shortcut to place on the desktop).
Thank you in advance and I hope someone can respond to me.
Configuration: Windows XP SP2 (English)
42 answers
- Votes
- Date
- Descending date
-
ghostTo disconnect: rundll32.exe shell32.dll,SHExitWindowsEx 0
To quit Windows: rundll32.exe shell32.dll,SHExitWindowsEx 1
To restart Windows: rundll32.exe shell32.dll,SHExitWindowsEx 2
To force shutdown Windows: rundll32.exe shell32.dll,SHExitWindowsEx 4
To quit Windows and turn off the computer: rundll32.exe shell32.dll,SHExitWindowsEx 8
To format: rundll32.exe shell32,SHFormatDrive
To print a test page: rundll32.exe msprint2.dll,RUNDLL_PrintTestPage
To create a new briefcase on the desktop: rundll32.exe syncui.dll,Briefcase_Create
To open the control panel: rundll32.exe shell32,Control_RunDLL
To initiate hibernation: rundll32.exe powrprof.dll,SetSuspendState -
plouf plouf ContributorHi everyone,
To re-enable hibernation on Vista, click Start and type cmd in the search box.
In the result (cmd), right-click on it and click on "Run as administrator." Confirm the authorization message and then all you have to do is type "powercfg -h on" and press enter.
You now have the hibernation option back in the shutdown choices.
Just so you know, to disable hibernation, you just need to repeat the same procedure but this time type "powercfg -h off."
I just did it, and it works!
Catch you later!
--
Don't say things to yourself that you wouldn't want to hear from someone else. "Seneca" "PloufPlouf²"
I'm cool, how about you? ;) -
moi411You can create a new shortcut on the desktop (right-click/new/etc.), and when Windows asks for the location of the program whose shortcut you want to create, you type one of the lines below (depending on what you want to do) and then you just have to click on it...
* To restart Windows:
rundll32.exe shell32.dll,SHExitWindowsEx 2
* To shut down the computer:
rundll32.exe hell32.dll,SHExitWindowsEx 8
* To launch hibernation:
rundll32.exe powrprof.dll,SetSuspendState
* To start sleep mode:
rundll32.exe user32.dll,LockWorkStation-
-
ray1239Hello MOI411. I can enter hibernation mode, but it's programmed to stay in hibernation for only 4 hours. It used to enter hibernation mode, but since I formatted it, it no longer does. Here is my problem: power management. / desktop or family PC. / monitor power off. / hard disk power off, hibernation. / how do we set all these tasks? Thanks in advance, Raymond. / If you want to respond, you would help me a lot. I have a button on my keyboard for this, please. Here is my email address (rayplante@videotron.ca) Quebec.
-
-
DelepY-to activate/deactivate hibernation, go to:
Control Panel, Power Options, "Hibernate" tab, uncheck "Enable hibernation"
otherwise, in the "Advanced" tab, you can configure the keyboard sleep keys (** not always) -
jylcompilHello
Just a clarification: the command "rundll32.exe user32.dll,LockWorkStation" locks the workstation, not puts it to sleep.
The Microsoft site states that the command is (from .NET Framework 2.0)
rundll32.exe powrprof.dll,SetSuspendState 1,1,0
but that doesn't work for me either; it always goes into Hibernate.
Does anyone have a command that actually puts it into sleep mode???
Best regards. -
snnorkySalut, je me demandais s'il y avait eu la réponse, quelle est-elle alors, quelle est la syntaxe de la veille prolongée, merci.
-
stephaneSalut, moi j'ai l'édition Familiale XP et dans le menu Démarrer, il n'y a pas l'option Mettre en veille, elle est grisée même avec vos astuces. Cela n'a pas résolu le problème, merci de me donner une réponse au plus vite, merci.
-
moiYou can create a new shortcut on the desktop (right-click/new/etc.), and when Windows asks for the location of the program for which you want to create the shortcut, you type one of the lines below (depending on what you want to do) and then just click on it...
* To restart Windows:
rundll32.exe shell32.dll,SHExitWindowsEx 2
* To shut down the computer:
rundll32.exe shell32.dll,SHExitWindowsEx 8
* To launch hibernation:
rundll32.exe powrprof.dll,SetSuspendState
* To launch sleep mode:
rundll32.exe user32.dll,LockWorkStation -
-
lulu_06_@moiHello,
excellent it works with Vista Home Premium edition. Thank you. -
plouf plouf Contributor@moiGood evening,
Up!
Just checking in ;)
--
Don't say to yourself what you don't want to hear from another. "Seneca" "PloufPlouf²"
I'm cool, how about you? ;) -
kali
-
-
DEPANPCPersonally, I wouldn't recommend putting your computer in sleep mode because it's often the case that a hard drive crashes and won’t restart. It's better to shut it down and turn it back on. I've seen too many hard drives fail to come back from sleep mode..... ++
-
la fouine 007be careful to put your PC in hibernation or turn it off if your HDD is faulty, as it won't make any difference; however, it greatly speeds up the startup of XP
personally, I've been turning off my PC every night for over 5 years like that, and I haven't had any problems (just one format in 5 years)
see you @+ -
NessHello,
I wanted to know the opposite! Is it possible to disable a prolonged sleep mode??
Thank you for your response... -
duchIt's easy.
To reactivate it, you do
- open the start menu
type cmd in the search bar
(as admin)
in the command prompt, type: powercfg -h on
hi-
-
plouf plouf Contributor@dagnelleGood evening dagnelle,
If you follow: what I wrote: you should be able to do it: proof: in pictures: here
BEFORE:
https://www.casimages.com/codes_ano.php?img=080910054639434150.jpg&module=
and AFTER
https://www.casimages.com/codes_ano.php?img=080910062838166374.jpg&module=
See you soon
--
In life, when everything goes wrong:
you need a good dose: of courage and perseverance and it’s back to smiling again;) (splash splash) -
MicheleMpowercfg -h on / is the only easy command that works the first time after deleting hibernation files by performing a disk cleanup.
Thank you Thank you Thank you
P.S.: For those who create shortcuts on the desktop, it's like putting a band-aid on a wound, it doesn't cure the disease... So typing this command in the command prompt solves all the problems for scatterbrains like me! -
-
-
Pierre CARLONHello,
I am not a computer expert, but what I know I will share:
To disable hibernation, you need to go to:
- Display in the Control Panel,
- Power Options,
- Hibernation,
- Uncheck the box "Hibernation".
Sincerely,
Pierre CARLON -
Gouril ContributorHello,
Some keyboards are equipped with a sleep key.
If not, press alt + ctrl + del and in the shutdown menu, select sleep.
See you soon
--
Help my neighbor as I have been helped... / google = 95% of solutions, but you knew that!
˜¨¨¨¨˜''°º^v^^v^-= Make love and not war! =-^v^^v^º°''˜¨¨¨¨˜ -
moi411Hi,
What I want to do is create a shortcut that I will place on the desktop and that will allow me to put the computer into hibernation mode by double-clicking on it
.
Just like I did to shut down (with shutdown.exe -s), I think there’s a similar command for hibernation, but I haven't found it (even though 95% of the answers are on Google)!!!
Anyway, thanks anyway and see you next time. -
le druide ContributorHi,
You need to change your dog because its nose doesn't have a good sense of smell! ...
Look here, there’s everything > https://www.robvanderwoude.com/index.php
--
The druid without the potion.-
DemeestèreChange dog,
Very well but I am not smart, I didn’t go to school, very little, couldn’t for 4 years of war and I don’t know English, I am 77 years old, exiled French.
You cannot realize what a complex it gives you, not knowing how to write without mistakes and now in some cases you are taken for an idiot if you don’t understand English, besides, memory lost by 80% it becomes horrible.
Thank you very much anyway
Yours sincerely.
I may have not made myself clear, it’s the computer that should be able to wake up quickly after prolonged sleep.
-
-
moi411Hi,
Yeah, I definitely need to change, I've actually saved this site to my favorites!!!
In the meantime, thank you. -
cdric_cA big thank you to you plouf plouf for your solution to restore hibernation... Given the number of people who have the same issue with hibernation disappearing under Vista, I wonder if there's not yet another bug from an update or something! Personally, I’m so fed up with Vista and its bugs (blue screens, gadget bar full of problems, mystery of hibernation...) and this damn "Administrator" nonsense that drives me crazy every time I move a little finger!!! Honestly Microsoft, if you’re reading this, if this is how you’re going to develop OS, you should go do some internships at Mac first!
-
Furtif ContributorHi
If you have Office, there is a function and a "done" button to put on standby.
--
*** @+ / Stealth ***
*** Certified non-smoker..... no, really not tempted! *** -
PhilIt's quite crazy that no one on the forums knows how to provide a clear answer; it's always necessary to refer to another site instead of just giving the answer directly; or, worse, to just give a hint by saying that "otherwise, it would be too easy."
Who could tell me why this obstacle course? Is it really that hard to simply help others?
Phil-
balexHello,
I read your comment and you're right... on forums, guys who have a bit of knowledge immediately think they're little geniuses!!!
probably a reminiscence of the time (that most of them didn't experience...) when computer scientists (the real ones) were the kings of oil (somewhat rightly so because they held all the "keys" to the business)
But anyway, on a forum those who don't know say so (or rather say nothing...) and should go play marbles
BUT those who have the answer should give it... it's much nicer!! and there would be 90% less chit-chat!!!
Best regards (to all those who know!)
-
-
Joris38Hi, I have a little problem with XP. My brother changed the computer's resolution, and I thought it was a bug, so I started in safe mode, but nothing worked. When I realized it was the resolution, I set everything back to normal, but one problem occurred: in Start -> Turn off computer, the sleep button has become greyed out, so we can no longer click on it. If anyone has a solution for this, I would appreciate it. Thanks in advance.
-
- 1
- 2
- 3
Next