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: powercfg command and random GUID with setactive help windows 7

06 Jun 2014   #1

Windows 7 x64, ultimate/pro/home, SLES x86 & ia64
powercfg command and random GUID with setactive help windows 7

in windows 7 i created a power plan and exported it as 'custom.pow' with the powercfg command.
I'm trying to create a .bat file using powercfg, such as
> powercfg -import %CD%\custom.pow
> powercfg -setactive <GUID>

the catch is the setactive flag wants a GUID and not the file custom.pow.
what I've done so far is run powerfg import manually on a system and generated a random GUID, then copied that GUID into my script. Is that ok to do in the long run?
or is there a better way to do it?
i don't know how to take the output of the "powercfg -import" command that gives me the random GUID and use that in the following "powercfg -setactive" command.

My System SpecsSystem Spec
10 Jun 2014   #2

Windows 7 32 bit

If I read powercfg command line switches help correctly

the -list switch should give you the guid for a scheme and the
-duplicatescheme switch should give you a new guid for example, to change one setting or whatnot.

But I haven't messed with it. I'm just going by the info on the page.
My System SpecsSystem Spec

 powercfg command and random GUID with setactive help windows 7

Thread Tools

Similar help and support threads
Thread Forum
My Windows 7 64bit Home Premium does not have a COMMAND or COM command
When I am told to go to START/SEARCH and type in COMMAND, so I can RUN as Admin, it finds neither COM.exe or COMMAND.exe so I can "Run as Admin" in the DOS windows. It use to. I do have a RUN command that will bring up the DOS window but when executing some commands like CHKDSK it tells me I...
General Discussion
Installing W7 on a GUID table without EFI.
To preface this, I'm quite adept with computers in general, but an absolute noob with windows. I have a copy on Windows 7, which I'm hoping to use to play Battlefield 2, and do little else. I tried installing it in virtualbox, but video capabilities combined with my laptop made this not a viable...
Installation & Setup
Windows 7 GUID disk boot?
Hi, I was wondering, I have heard that windows 7 will not boot from guid disks but I remembered that Mac's can dual boot windows using 'boot camp', but macs use the guid partition map not the mbr partition map. So my question is; will windows 7 boot from a GUID if it is chain loaded or not? ...
General Discussion
Powercfg windows 7
Ok i have a question I am trying to write a script that will import and set the active power scheme in windows 7 here is my script @echo off Echo This script will install the power settings for a system Imaged with Windows 7 if /I "%computername:~0,6%"=="Computername" goto :2 :2...
Performance & Maintenance
GPT - GUID Partition Table
Hello, I am having a serious problem(atleast for me) with clonezilla, i have downloaded this software around one month back for the purpose of backing up my data as an image so that i can restore it whenever i need. I have cloned 110GB(appr) partition in which 82GB is used from a secondary or...
Hardware & Devices
Can't Install Windows 7 on GUID Partition Table
Is it possible to install Windows 7 on a GPT disk? I created a RAID 0 array on my dual Xeon 5580 system and tried installing Windows 7 Ultimate 64-bit RTM. When I got to the "Where do you want to install Windows" part I used shift-F10 to open up a command window, then I used diskpart to create a...
Installation & Setup

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 11:41.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App