<?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>Hey, Scripting Guy! How Can I Change My Desktop Monitor Resolution via Windows PowerShell?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx</link><description>Hey, Scripting Guy! I need to be able to use a Windows PowerShell 2.0 script to change the resolution on my desktop monitor. Is this possible? 
 -- AS 
 
 Hello AS, 
 Microsoft Scripting Guy Ed Wilson here, I have been looking for a script to change</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! How Can I Change My Desktop Monitor Resolution via Windows PowerShell?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx#3469404</link><pubDate>Tue, 06 Dec 2011 20:42:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3469404</guid><dc:creator>modifying for a second monitor</dc:creator><description>&lt;p&gt;Any hints on how to make this target a secondary display? I was looking thru the code and the comments and saw that using this code allows me to see the secondary device&amp;#39;s name but I dont know how to modify the script.&lt;/p&gt;
&lt;p&gt;$screen = [System.Windows.Forms.Screen]::AllScreens&lt;/p&gt;
&lt;p&gt;$screen&lt;/p&gt;
&lt;p&gt;BitsPerPixel : 32&lt;/p&gt;
&lt;p&gt;Bounds &amp;nbsp; &amp;nbsp; &amp;nbsp; : {X=0,Y=0,Width=1920,Height=1080}&lt;/p&gt;
&lt;p&gt;DeviceName &amp;nbsp; : \\.\DISPLAY1&lt;/p&gt;
&lt;p&gt;Primary &amp;nbsp; &amp;nbsp; &amp;nbsp;: True&lt;/p&gt;
&lt;p&gt;WorkingArea &amp;nbsp;: {X=0,Y=0,Width=1920,Height=1040}&lt;/p&gt;
&lt;p&gt;BitsPerPixel : 32&lt;/p&gt;
&lt;p&gt;Bounds &amp;nbsp; &amp;nbsp; &amp;nbsp; : {X=1920,Y=0,Width=1024,Height=768}&lt;/p&gt;
&lt;p&gt;DeviceName &amp;nbsp; : \\.\DISPLAY2&lt;/p&gt;
&lt;p&gt;Primary &amp;nbsp; &amp;nbsp; &amp;nbsp;: False&lt;/p&gt;
&lt;p&gt;WorkingArea &amp;nbsp;: {X=1920,Y=0,Width=1024,Height=768}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3469404" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change My Desktop Monitor Resolution via Windows PowerShell?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx#3416513</link><pubDate>Mon, 28 Mar 2011 15:39:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3416513</guid><dc:creator>Jakob</dc:creator><description>&lt;p&gt;Nice script.&lt;/p&gt;
&lt;p&gt;I am new to .net and Powershell so I wold like som hints to incorporate the &amp;quot;best resolution&amp;quot; code.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3416513" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change My Desktop Monitor Resolution via Windows PowerShell?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx#3388527</link><pubDate>Sat, 19 Feb 2011 04:45:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3388527</guid><dc:creator>JD</dc:creator><description>&lt;p&gt;Brilliant. I will incorporate this into a Microsoft Deployment Toolkit Task Sequence to automatically adjust the screen resolution to its maximum size once a new windows 7 image is built (which it doesn&amp;#39;t seem to do at present). Cheers.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3388527" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change My Desktop Monitor Resolution via Windows PowerShell?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx#3376671</link><pubDate>Tue, 21 Dec 2010 22:03:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3376671</guid><dc:creator>Andy Schneider</dc:creator><description>&lt;p&gt;@Jon,&lt;/p&gt;
&lt;p&gt;I think the .NET framework added some functionality since I last started playing with this. It looks like you can use the following code to get the maximum resolution for your monitor&lt;/p&gt;
&lt;p&gt;$screen = [System.Windows.Forms.Screen]::PrimaryScreen&lt;/p&gt;
&lt;p&gt;$height = $screen.bounds.Size.Width &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;$width = $screen.bounds.Size.Height&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3376671" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change My Desktop Monitor Resolution via Windows PowerShell?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx#3376626</link><pubDate>Tue, 21 Dec 2010 17:16:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3376626</guid><dc:creator>Andy Schneider</dc:creator><description>&lt;p&gt;@Jon,&lt;/p&gt;
&lt;p&gt;Yes, this is definitely possible. I actually had some VB.NET code about 3 years ago that would enumerate the highest resolution supported by the monitor that was attached to a computer. I&amp;#39;ll poke around and see if I can find the code... if I can.. i don&amp;#39;t think porting it to PS would be very hard.&lt;/p&gt;
&lt;p&gt;-Andy&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3376626" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change My Desktop Monitor Resolution via Windows PowerShell?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx#3365610</link><pubDate>Wed, 03 Nov 2010 09:32:08 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3365610</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Hey, Scripting Guy! It&amp;#39;s possible to set the best resolution ?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Jon&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3365610" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How can I Change my Desktop Monitor Resolution via Windows PowerShell?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx#3342975</link><pubDate>Fri, 09 Jul 2010 09:52:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3342975</guid><dc:creator>hypothesis</dc:creator><description>&lt;p&gt;Very valuable script indeed!&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3342975" width="1" height="1"&gt;</description></item></channel></rss>