How can I set an automatic sleep period Win 7 Pro

How can I set the duration of sleep to a Win 7 Pro PC, for example go to sleep automatically an hour given while wake up automatically at a specific time?

This PC is basically unattended but files hosts used by the other computers on a peer-to-peer network.

Run this batch file to put the machine to sleep:

================================

Powercfg/h off
Rundll32.exe powrprof.dll, SetSuspendState

================================

The Powercfg /h off command requires that the scheduled task will run with the highest privileges.

If you want to stop the computer rather than put it to sleep, use the command shutdown instead of the command of powrprof.dll, SetSuspendState rundll32.exe.

To start the computer it just create a simple task and go to the properties of the task a 'Conditions' tab, select the option to enable the computer to run the task.

Note that the condition of 'Wake computer' relies on the BIOS clock to wake the computer, the computer must support this (do most desktop computers), and the option must be enabled in BIOS power options.  When you enable the option in the BIOS do not allow the timer to all zeros, enter a manual setting any or although the BIOS is unable to activate the feature, Windows will overwrite the timer with the correct date & time when you started the scheduled task.

Note that a computer into hibernation do not wake to run a scheduled task.

John

Tags: Windows

Similar Questions

  • How can I set up automatic backup on iPhone 6s

    I bought a new iPhone 6s more yesterday. I had been to support my old iPhone 5 up to my computer. I thought that the new phone was set to automatic backups for iCloud, but I just got a notification indicating that the phone had not been saved for many months.

    How we configure it back to iCloud automatically at a certain time of day?

    You cannot set it for a certain time of the day. Once your backup is activated on the phone, backup it once daily when the unit is connected to power, a Wi - Fi connection and the screen is locked. Go to settings > iCloud and make sure active backup, and you can try a manual backup. You can use this document to support to solve the problems of the iCloud backups.  Get help from backup of your device in iCloud - Apple Support

  • How can I set up automatic calendar

    Hello

    How can I run scheduled auto designer ODI package?

    Thanks in advance,

    Ido

    Hello

    an agent is installed as service will be required if you wish to leave the environment don't depent not designer.

    All what you need to do is:

    (1) generate a scenario

    (2) under the scenario tree, right-click on 'calendar' and choose 'insert a planning.

    After that it's just choose what is the starting time.

    This help you?

  • How can I determine if my system runs Win XP Pro 64-bit?

    I use Win XP Pro and works very well. I was wondering if I could run on my Pentium 4 3.04 Ghz, Northwood Hyperthreaded 64 bit version?

    I tried the command systeminfo and it opens a window, reads my system and immediately closes before I can read the results. There is another parameter of the command line that would keep the window open?

    Which is why upgrading to 64 - bit, I run a few games that would take advantage of my 4 gigs of RAM if I had the upgraded operating system, also think to come to upgrade my computer soon and wanted first to get the new OS first and get it to run, if possible. If I buy it and can not test to make sure I have a viable Microsoft OS and functional, I'll be stuck with it and no available return. It's probably a few months before I finished it to get parts for my new computer. I want XP Pro because I'm used to and because it has less bloating than the newer OS.

    Thanks for your help!

    Click on the link below and download SIW. Save the file to your desktop. Double-click the file to open the application. Once open scroll to the bottom of the list in the left pane and click on the symbol next to the material. The content will grow under hardware. Click info CPU. Information about your processor will be expanded in the right pane. There you will see the number of bits for your processor.

    http://www.Filemail.com/DL.aspx?ID=PWWYJKAZDKNXHVE

    I do not vote for me I'm not here for points. If this post helps you, vote. Visit my forum @ http://repairbotsonline.com/

  • How can I set up time + date on HP officejet Pro 8500 a-A910a

    Help, please

    On the touch screen, scroll right, and select Configuration > Preferences > Date and time and you should be able to implement.

  • How can I set a certain web page automatically start and open when I connect Windows?

    How can I set a certain web page automatically start and open when I connect Windows?  My company as a "Home Page" that I would like it to appear when I connect Windows.

    Hello.

    Yes, you can do it. The only way to do this is to create a startup items.

    STEP 1- Make sure that the home page is set correctly

    Second STEP- Creating a startup items

    How to create a startup items:

    1. Right click on the shortcut of browser (Internet Explorer, Mozilla Firefox, Google Chrome), then click on copy.
    2. Open the start menu, click all programs.
    3. Right click on the startup folder, click Explore.
    4. Right-click on an empty area of the Windows Explorer, click Paste shortcut.

    STEP 3- Restart the computer to apply the changes and see the effect

    Response to see if it helps.

  • How can I change the automatic country setting that is displayed in the payment gateway billing address? There is only one country in the drop-down list, not my current country

    How can I change the automatic country setting that is displayed in the payment gateway billing address? There is only one country in the drop-down list, not my current country

    A few changes/Verify account https://forums.adobe.com/thread/1465499 links that can help

    -html http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id.

  • How can I set the page # s in a text to update automatically?

    The book I am train has an introduction that quotes in the main text and give page numbers. How can I set these referenced page numbers update automatically when I change the number of pages in the main text? The introduction and chapters are all separate files, but they are grouped in a single Indesign book file.

    Thank you!

    You need cross-references installation

    http://www.Adobe.com/DesignCenter-archive/InDesign/articles/lrvid4024_id.html

  • How can I set up a website that charges a small fee when landed on?

    Original title: Mother Mary

    How can I set up a website that charges a small fee when landed on? I have something to show to the world & I, that the award is not unreasonable

    [Moved from the community centre of Participation]

    First of all, this is not the arena for that. Do some research on Google and Bing.

    Then, if someone has to pay a fee, it should be their choice, whether they pay or not. It'snot automatic. You will need to research the acceptance of credit card, merchant gateways, set bit. And it won't be cheap.

  • How can I set up ad-hoc wireless n/w on win Xp?

    How can I set up ad-hoc wireless n/w on win Xp?

    I know how on Win 7 n Vista, but in XP when I create, it does not appear! Please help me!

    Hi Aftab21,

    I suggest you to take a look at the following article link and check if it helps:

    To set up automatic wireless network configuration

    I hope this helps.

  • How can I make the computer sleep after 5 minutes of inactivity on the logon screen?

    Original title: How to sleep in the login screen?

    How can I make the computer sleep after 5 minutes of inactivity on the logon screen? Currently, on the login screen, white screen, but the computer is still running. Sleeping would save a lot of energy because the computer is used most of the time.

    Hi Phil.Ganchev,
     
    Using a laptop or a desktop computer?
     
    The reason for this question is, if you have a plugged AC adapter you must set power accordingly as opposed to laptop settings battery operated.
     
    I suggest you head over to the power settings and create your own power management.
     
    a. power by clicking on the Start button, open the Options click on the Control Panel, clicking system and security, and then clicking Power Options.

    (b) according to the plan you want to change, click on change plan settings.

    c. on the parameters of change in the plan page, choose "Put the computer to sleep" that you want to use when your computer is running on battery (if applicable) and when it is plugged.
    (Change in 5 minutes for the batteries and sector)
     
    Reference:
     
    Power plans: frequently asked questions

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • How can I disable the automatic backup in Photo Viewer?

    I did a clean install of Windows 7 Home Premium. As I looked through some of my pictures, one of them was displayed on the side and I used the 'spin' button to see her standing. As I clicked on the button 'Next', the picture has been saved without any confirmation. I don't want to save changes in the viewer of photos at all, and I have not found any setting for this. How can I disable the automatic backup in Photo Viewer?

    Hello

    Please note the last changes you make on your computer will be automatically saved on your computer and which will be unchanged, unless you change it again on your computer.

    As it is a design, there is nothing we can do from our end.

    If you want to suggest changes in the design here is the link you can make reference to: Microsoft Connect - back products and bug reports. Microsoft...

    https://connect.Microsoft.com/dashboard/Info/

    Thank you, and in what concerns:
    Suresh Kumar-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I set up a password for office?

    Original title: implement the passoword office

    How can I set up a password in order to access the desktop?

    What you describe is the default method for Windows. If your computer falls directly on the desktop and then some configured Windows to remember your password and apply it automatically. You must now cancel this method (and take a step of it for later!):

    1. press Windows + R key on your keyboard.
    2. Enter the following command and press ENTER:
    netplwiz
    3. check the box that requires users to enter a password.
    4. click on OK.
  • How can I set the default folders to the drive working?

    Hellooo...

    I was just wondering how can I set a default folder (work disk) location in Premiere Pro CC 2014?

    example image:

    Scratch-disks-in-premiere-Pro-cc.png

    So it should automatically record audio previews and video to one of my disks SSD and not on the same hard disk where my project.

    It's pretty boring change the location of the current 'default' whenever I start a new project...

    I can't find the menu for these parameters?

    Thanks for any help in advance!

    Create a template project with your desired settings.  Use it to start new projects and rename and save.

  • How can I set up a daily playlist for podcasts on Iphone 5

    How can I set up a daily playlist for podcasts on Iphone 5

    Without further explanation of what you want the list of reading to do, it is difficult to suggest something specific...

    You can just go down the list of the Unplayed episodes and start listening to. That you have finished playing the episode, it disappears from the list, so it is always "fresh" next time.

Maybe you are looking for