Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.


Go Back   Vista Forums > Misc Newsgroups > PowerShell

RB

Vista - change display resolution

Reply
 
05-22-2007   #1
Den


 
 

change display resolution

Is there a way to change the display resolution on a VISTA PC using
powershell?


My System SpecsSystem Spec
05-22-2007   #2
Trevor Sullivan


 
 

Re: change display resolution

Den wrote:
> Is there a way to change the display resolution on a VISTA PC using
> powershell?


This is C#, but since Powershell is built around .NET ... :-)

http://tinyurl.com/yugpm4

Trevor Sullivan
MCP
http://develnet.blogspot.com
My System SpecsSystem Spec
05-23-2007   #3
RichS


 
 

Re: change display resolution

I've followed the link and unfortuantely it ends up needing to access the
Win32 API user32.dll - not good in PowerShell!

http://www.codeproject.com/csharp/CSDynamicScrRes.asp

You can't change resolution directly through .NET it seems
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Trevor Sullivan" wrote:

> Den wrote:
> > Is there a way to change the display resolution on a VISTA PC using
> > powershell?

>
> This is C#, but since Powershell is built around .NET ... :-)
>
> http://tinyurl.com/yugpm4
>
> Trevor Sullivan
> MCP
> http://develnet.blogspot.com
>

My System SpecsSystem Spec
05-23-2007   #4
Trevor Sullivan


 
 

Re: change display resolution

RichS wrote:
> I've followed the link and unfortuantely it ends up needing to access the
> Win32 API user32.dll - not good in PowerShell!
>
> http://www.codeproject.com/csharp/CSDynamicScrRes.asp
>
> You can't change resolution directly through .NET it seems


Oops, my bad. I was in a hurry to find an answer since I was soon off to
bed I didn't recall seeing anything about user32.dll last night, but
meh ... that would be too easy! Ha.

I was trying to think if you could do this through WMI, but I highly
doubt that you can. The VideoModeDescription property of the
Win32_VideoController class is not writable If anyone finds out how
to do the requested task, that would be really cool

Trevor Sullivan
MCP
http://develnet.blogspot.com
My System SpecsSystem Spec
05-23-2007   #5
RichS


 
 

Re: change display resolution

It wasn't in the article you quoted - I was trying to track down the classes
he was actually using to perform the change & thats how I discovered the
issue. My first reading of the article was like yours that it was .NET based
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Trevor Sullivan" wrote:

> RichS wrote:
> > I've followed the link and unfortuantely it ends up needing to access the
> > Win32 API user32.dll - not good in PowerShell!
> >
> > http://www.codeproject.com/csharp/CSDynamicScrRes.asp
> >
> > You can't change resolution directly through .NET it seems

>
> Oops, my bad. I was in a hurry to find an answer since I was soon off to
> bed I didn't recall seeing anything about user32.dll last night, but
> meh ... that would be too easy! Ha.
>
> I was trying to think if you could do this through WMI, but I highly
> doubt that you can. The VideoModeDescription property of the
> Win32_VideoController class is not writable If anyone finds out how
> to do the requested task, that would be really cool
>
> Trevor Sullivan
> MCP
> http://develnet.blogspot.com
>

My System SpecsSystem Spec
05-23-2007   #6
Irvine, Dennis


 
 

Re: change display resolution

I have been searching the internet and forums for some ideas but nothing so
far, outside of actual programing, like C++.
Was hoping for a WMI solution but all the video objects are not writeable or
set-able. At least the ones I can find.
This would sure be helpful to have in some situations, so if anyone finds a
solution, please let me know.

"Den" <nana-papa@sbcglobal.net> wrote in message
news:uSRV9tNnHHA.1216@TK2MSFTNGP03.phx.gbl...
> Is there a way to change the display resolution on a VISTA PC using
> powershell?


My System SpecsSystem Spec
06-04-2007   #7
Irvine, Dennis


 
 

Re: change display resolution

I have located a freeware Utility called Qres.exe that lets you change
screen resolution from the command line.
It does what I was hoping a powershell cmdlet would do. It will run from a
powershell script and works on Vista.
So it solves my immediate problem. But it would have been nice if it was a
full powershell solution.


"Den" <nana-papa@sbcglobal.net> wrote in message
news:uSRV9tNnHHA.1216@TK2MSFTNGP03.phx.gbl...
> Is there a way to change the display resolution on a VISTA PC using
> powershell?


My System SpecsSystem Spec
Reply

RB


Thread Tools


Similar Threads for: change display resolution
Thread Forum
Display resolution screwed or something Vista performance & maintenance
Display resolution changes spontaneously Vista General
Display resolution not the same as before Graphic cards
Cannot reduce display resolution Vista General
Can't change my display resolution Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd