Hi
WMI cant do this.
Some free command line based screen resolutions changers that can be used from
a
batch file, a script, the startup folder or the Run part of registry:
MultiRes is a free screen resolutions utility that can be used from the command
line, a batch file, a shortcut or a script :-)
MultiRes (50kb) has refresh rate and multi- monitor support, as well
as optional timed confirmation prompts.
The little utility supports Windows 9x/Me/NT4, as well as Windows 2000 and XP.
It's available at http://www.entechtaiwan.com/files/multires.exe (Entech
Taiwan), and can be used to set screen resolution, color depth, and refresh
rate.
Normally it runs with an icon in the notification area. But it's also possible
to run it in non-resident command mode (e.g. in a batch file). There's more
info
on that at http://www.entechtaiwan.com/multires.htm (and a copy at Tip 4973 in
the 'NT Reg Hacks' at http://www.jsiinc.com)
Example on a command line that sets 800x600, 32-bit color, 85Hz refresh
d:\multires\multires.exe /800,600,32,85 /exit
Some other products (command line):
A freeware utility called Resolution Changer:
http://www.myitforum.com/inc/upload/1365Vidchng.zip
Here's the description:
"Video Resolution Changer v1.0 - Tony Pombo. This command-line utility changes
the display resolution of the current display device, using
several command-line options. vidchng /? for help."
Here is a third product:
Vidres (free for personal/home and charitable organisation use)
http://www.jddesign.co.uk/
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter