Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows XP / Security and Administration / March 2004

Tip: Looking for answers? Try searching our database.

change screen resolution with batch file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anton - 31 Mar 2004 23:21 GMT
I am using XP Pro, sp1 and 2000 server, sp4.

I want to run a computer startup script using Group
Policy that will set the computer's resolution to either
800x600 or 1024x768. I would also run it on user logoff.
Does anyone know how this can be accomplished? I tried
using multires utility but if the resolution is already
set to 800x600 and I run the batch file on startup it
seems to crash because the resolution is already set to
what is trying to change it to. If there were a way to do
a simple If statement in the batch file and test for the
current resolution I would be done. Does anyone know how
to run an If statement and test for the resolution in a
computer startup batch file? Thanks very much.
Drew Cooper [MSFT] - 01 Apr 2004 00:42 GMT
You could write a WMI script.  Here's a sample that queries those values:
http://www.microsoft.com/technet/community/scriptcenter/compmgmt/scrcm101.mspx

Here's a sample that sets values (not related to screen resolution at all):
http://www.microsoft.com/technet/community/scriptcenter/compmgmt/scrcm134.mspx

Based on pieces from both of those, you should be able to put something
together.

Also - although I don't know what multires is, it probably failed on startup
because those settings are user settings and startup happens before logon.
Signature

Drew Cooper [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

> I am using XP Pro, sp1 and 2000 server, sp4.
>
[quoted text clipped - 10 lines]
> to run an If statement and test for the resolution in a
> computer startup batch file? Thanks very much.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.