<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Get Windows Power Plan Settings on Your Computer by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/31/get-windows-power-plan-settings-on-your-computer-by-using-powershell.aspx</link><description>Summary : Use Windows PowerShell to retrieve the power plan settings for your computer. The Microsoft Scripting Guys show you how. 
 
 Hey, Scripting Guy! I need to have a way to easily retrieve the power plan settings for the active power plan on my</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Get Windows Power Plan Settings on Your Computer by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/31/get-windows-power-plan-settings-on-your-computer-by-using-powershell.aspx#3530664</link><pubDate>Mon, 05 Nov 2012 18:33:47 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3530664</guid><dc:creator>Ed Wilson</dc:creator><description>&lt;p&gt;@Bill Westrup I just checked this example -- on my Windows 8 laptop, and the example STILL works. Keep in mind this is a Windows PowerShell Script, so I pasted it into Windows PowerShell ISE. When I wrote it, I used Windows 7, Windows PowerShell 2.0 and the PowerShell ISE. I just ran it on Windows 8, with Windows PowerShell 3.0 and inside the ISE. Keep in mind, that when cutting and pasting from web pages, sometimes crap gets picked up. This was the case here, and after the ` (line continuation mark) in the script, there was a space I had to remove. As far as the PowerShell console, you CAN paste to it. You have two choices: copy the code to the clipboard and RIGHT Click with the mouse into the console. Or using Edit / Paste from the menu accessible by left clicking on the PowerShell icon. For most purposes the ISE is easier to use, and is why we created it. If you want to use the console, I just tested that as well. I copied the script from the web page, to Notepad, removed the line continuation, and pasted into the console. Hope this helps.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3530664" width="1" height="1"&gt;</description></item><item><title>re: Get Windows Power Plan Settings on Your Computer by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/31/get-windows-power-plan-settings-on-your-computer-by-using-powershell.aspx#3530651</link><pubDate>Mon, 05 Nov 2012 17:19:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3530651</guid><dc:creator>Bill Westrup</dc:creator><description>&lt;p&gt;The only problem with this example is that it doesn&amp;#39;t work! I would cut and paste and example of it failing but the crappy command shell you guys provided won&amp;#39;t allow it. Fail and fail again! Good grief, Microsoft!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3530651" width="1" height="1"&gt;</description></item><item><title>re: Get Windows Power Plan Settings on Your Computer by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/31/get-windows-power-plan-settings-on-your-computer-by-using-powershell.aspx#3498779</link><pubDate>Fri, 18 May 2012 17:44:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3498779</guid><dc:creator>CrazyDave</dc:creator><description>&lt;p&gt;Or more completely in one line:&lt;/p&gt;
&lt;p&gt;powercfg /q ((powercfg /l | ? { $_.Contains(&amp;#39;*&amp;#39;) -and $_.Contains(&amp;#39;GUID&amp;#39;)}).Split()[3])&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3498779" width="1" height="1"&gt;</description></item><item><title>re: Get Windows Power Plan Settings on Your Computer by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/31/get-windows-power-plan-settings-on-your-computer-by-using-powershell.aspx#3498777</link><pubDate>Fri, 18 May 2012 17:43:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3498777</guid><dc:creator>CrazyDave</dc:creator><description>&lt;p&gt;(powercfg /l | ? { $_.Contains(&amp;#39;*&amp;#39;) -and $_.Contains(&amp;#39;GUID&amp;#39;)}).Split()[3]&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3498777" width="1" height="1"&gt;</description></item><item><title>re: Get Windows Power Plan Settings on Your Computer by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/31/get-windows-power-plan-settings-on-your-computer-by-using-powershell.aspx#3455705</link><pubDate>Mon, 26 Sep 2011 23:15:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3455705</guid><dc:creator>Petr</dc:creator><description>&lt;p&gt; powercfg -list already shows you current plan marked with &amp;#39;*&amp;#39;. So you can use pipe to parse GUID.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3455705" width="1" height="1"&gt;</description></item></channel></rss>