Powercfg sets power plan with never sleep but system goes to sleep and locks the screen

I created a command (.bat) file that executes 'Powercfg -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c' where '8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c' is the class name for power option (HighPerf) that sets sleep to never. Then I created a scheduler's task to execute
this command file at specified time. The goal here is to switch at this time from power option that has sleep in 1 hour (Balanced) to the power option that never sleeps.
At the designated time the power option changes from Balanced to HighPerf but after some time computer both goes to sleep and locks the screen. I do not know whether this happens at the same time or not. It is just that when I get to my computer some time
(2 hours) later, it is in the sleep mode (the light on the power button is amber), I need to press the power button to wake it up and when it comes to life I find out that the screen is locked and I need to enter the password.When I open Control Panel it shows
that HighPerf power option is selected. Yet, the computer went to sleep and the screen got locked.
All this does not happen when I set HighPerf power option from the Control Panel.
I am using Dell XPS 8500 desktop with Windows 7 Home Premium, so battery and closed lid settings do not apply as they do not exist on this computer, so those settings are not at issue.
Thank you
Isa Ten

Hi Isa,
Based on your goal "The goal here is to switch at this time from power option that has sleep in 1 hour (Balanced) to the power option that never sleeps.", why didn't you set the Balanced option to never sleep?
If you just ant it at one time to switch, you need another task to change back. Otherwise, it keep "never sleep" and "high perf"status.
Meanwhille, check your hibernate status of these power plan under sleep tab:
Power Options->Change Plan Settings->Change Advanced settings, you see a tap "Sleep"
Karen Hu
TechNet Community Support

Similar Messages

  • I am currently on a plan with my parents, but my two years is up and I am due for an upgrade. My plan was to drop from my parents plan and join my fiancee's. Will I be able to get a discounted phone, and keep my existing number?

    I am currently on a plan with my parents, but my two years is up and I am due for an upgrade. My plan was to drop from my parents plan and join my fiancee's. Will I be able to get a discounted phone, and keep my existing number?

    You'll need to do an Assumption of Liability. The parent that is the account owner and your boyfriend will both have to be at the store to do this. Your line is actually your parents and it will be your fiancee's once the change is made. But you should be able to get your upgrade and you definitely get to keep your number. Also depending on your fiancee's credit history there may be a security deposit required.

  • On start up I get grey screen with wheel turning but it goes no further

    On start up I get grey screen with wheel turning but it goes no further

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a startup failure is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.   
    There are several ways to back up a Mac that is unable to start. You need an external hard drive to hold the backup data.
         a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later.
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, boot from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    If the startup process stops at a blank gray screen with no Apple logo or spinning "daisy wheel," then the startup volume may be full. If you had previously seen warnings of low disk space, this is almost certainly the case. You might be able to start up in safe mode even though you can't start up normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.
    Step 3
    Sometimes a startup failure can be resolved by resetting the NVRAM.
    Step 4
    If you use a wireless keyboard, trackpad, or mouse, replace or recharge the batteries. The battery level shown in the Bluetooth menu item may not be accurate.
    Step 5
    If there's a built-in optical drive, a disc may be stuck in it. Follow these instructions to eject it.
    Step 6
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to start up, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can start up now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Step 7
    If you've started from an external storage device, make sure that the internal startup volume is selected in the Startup Disk pane of System Preferences.
    Start up in safe mode. Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to start and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know the login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you start up in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, the startup volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 10. If you ever have another problem with the drive, replace it immediately.
    If you can start and log in in safe mode, empty the Trash, and then open the Finder Info window on the startup volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then restart as usual (i.e., not in safe mode.)
    If the startup process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 8
    Launch Disk Utility in Recovery mode (see Step 1.) Select the startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then restart as usual.
    Step 9
    If the startup device is an aftermarket SSD, it may need a firmware update and/or a forced "garbage collection." Instructions for doing this with a Crucial-branded SSD were posted here. Some of those instructions may apply to other brands of SSD, but you should check with the vendor's tech support.   
    Step 10
    Reinstall the OS. If the Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 11
    Do as in Step 9, but this time erase the startup volume in Disk Utility before installing. The system should automatically restart into the Setup Assistant. Follow the prompts to transfer the data from a Time Machine or other backup.
    Step 12
    This step applies only to models that have a logic-board ("PRAM") battery: all Mac Pro's and some others (not current models.) Both desktop and portable Macs used to have such a battery. The logic-board battery, if there is one, is separate from the main battery of a portable. A dead logic-board battery can cause a startup failure. Typically the failure will be preceded by loss of the settings for the startup disk and system clock. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 13
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.

  • HT5622 when i set up my iPhone 5S i did not set it up with my Apple ID  where can i can go into the phone and set it up

    when i set up my iPhone 5S i did not set it up with my Apple ID  where can i can go into the phone and set it up

    That did not work either, I choose that and it never gives me the sign in option.  Also tried the apps from the home screen, no dice. I know I should have put it in during set up but it is a work phone and had to make sure it was okay first.

  • HT1386 i've already synced my itunes on my laptop with my iphone but it's not synching all of the albums/songs.  Everything was purchase through itunes so i'm not sure what the issue is.

    i've already synced my itunes on my laptop with my iphone but it's not synching all of the albums/songs.  Everything was purchase through itunes so i'm not sure what the issue is.

    What settings do you have in iTunes? Is it set to sync all music, it is set to sync only checked songs? Is there anything different about the songs that it is not syncing. Is it possible they were they purchased with a different Apple ID?

  • When I use Adobe Send the screen goes dark when I hit send but never seems to complete the send task! and recover the screen.F

    when I use Adobe Send the screen goes dark when I hit send but never seems to complete the send task! and recover the screen?F

    Hi frank at luray,
    Does this issue occur with any file that you try to send, or do you find that it's specific to one file? If it's a file-specific error, and the file is large, please try sending the file via Adobe SendNow. (You can sign in to Adobe SendNow at Sign in or create an account | Adobe SendNow using the same credentials you use to sign in to Adobe Send.)
    Please let us know how it goes.
    Best,
    Sara

  • My touch5.1.1 will not play album tracks in order.  I've turned off the shuffle function and I lock the screen when I'm walking with it, but it won't play tracks in sequence.  What can I do?

    My Touch 5.1.1. has worked just fine until recently.  I have checked to see that it is not set for "shuffle" and also that the "shake to shuffle" function is turned off.  When I walk with the device, I lock the screen (all practices I've always followed), but tracks and even multiple discs for albums constantly shuffle.  Please help!

    Quickly Triple tap the home button to de-activate VoiceOver.

  • Dear sir i buy iphone4s with my friend but he forget icloud email and icloud password so how can i reset it phone now it 1step situation

    dear sir i buy iphone4s with my friend but he forget icloud email and icloud password so how can i reset it phone now it 1step situation

    Without the Apple ID and password the phone was originally activated with, you will not be able to activate the phone. No one here can help you, and neither can Apple. So, unless you or your friend can remember that ID, you will never be able to activate the phone.

  • I get a not enough storage message on my computer with the option to close or go to seting but nothing happens when i tap on the screen and it seems to be stuck there.cant even shut it down

    I get a not enough storage message on my computer with the option to close or go to seting but nothing happens when i tap on the screen and it seems to be stuck there.cant even shut it down

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Power Management received emergency overtemp signal. Going to sleep.System

    Someone have the same problem on Powerbook G4 15" ? : Power Management received emergency overtemp signal. Going to sleep.System Sleep ! (System.log)
    I've tested my battery and it's OK ! The temperature in the cumputer is ok ! But my computer going to sllep each 10 second !
      Mac OS X (10.4.8)  

    To other readers of JC_ASSE's happy outcome: be aware that the illustrations on this page, which he apparently followed, show a disassembled Aluminum, NOT Titanium Powerbook, and that a Tibook doesn't come apart the same way or have the same parts in the same places. I have no idea whether the trackpad heat sensor in a Tibook (if there is one) can be disabled, but it certainly can't be done following those instructions: the underside of the trackpad and the associated cabling are very different. Don't attempt the procedure shown on the page linked above unless your Powerbook is Aluminum.

  • I am sharing a apple id acount with my family but when i synced my phone to the computer it erased all of my imformation and put the other phone's imformation on it. I was wondering how I can prevent this from happening?

    I am sharing a apple id acount with my family but when I synced my iphone to the computer it erased all of my imformation and put the other phone's imformation on it. I was wondering how I can prevent this from happening?

    If the ringtones are on the old device just plug it in and do a transfer of purchases then they will be on the computer to sync to the new device.

  • Working in Logic 9, how do I use a drum loop WITH ITS PRESET EFFECTS? I can drag and drop the loop but it plays dry in timeline. thanks

    Working in Logic 9, how do I use a drum loop WITH ITS PRESET EFFECTS? I can drag and drop the loop but it plays dry in timeline. thanks

    Here's the short-cut solution:
    Green Apple tracks are MIDI files (so to speak). If you drag one from the loop browser (Capitol C Orchestral hit, as you mentioned in this exable) directly into the arrange page it creates the MIDI file and the instrument to play it back on.
    HOWEVER.If you create and audio track first, THEN drag the green Apple loop onto that track, the loop will get "bounced" with the reverb in tact and you'll have the exact sound that you heard in the preview.
    Make sense?

  • My problem started when system preferences was unresponsive and would not force quit.  I tryed to restart and got the grey screen, but it never restarted.  I closed the lid and now the screen is blank.  Has anyone had a similar problem after Lion?

    My problem started when system preferences was unresponsive and would not force quit.  I tryed to restart and got the grey screen, but it never restarted.  I closed the lid and now the screen is blank.  Has anyone had a similar problem after Lion installation?

    No, as I have yet to be convinced on Lion.
    Did a permissions repair help from the install DVD?

  • I tried updating my iPod touch 4th gen and now the screen is bright blue or flashing white and black lines.ive tried the whole home and power button thing but it only brings up the apple icons then goes back to the blue or other screen.please help?

    I tried updating my iPod touch 4th gen and now the screen is bright blue or flashing white and black lines.ive tried the whole home and power button thing but it only brings up the apple icons then goes back to the blue or other screen.please help?

    This has worked for some others.
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I have an iPhone 5 with LTE 4G but doesn't show this option in the settings.Can you help me please.

    I have an iPhone 5 with LTE 4G but doesn't show this option in the settings.Can you help me please.

    Ask your carrier. No one here works for Apple, represents Apple or Speaks for Apple, thus no one here can answer your question.

Maybe you are looking for