in reply to Perl->WMI? (OT, I know)

Have you checked out Microsoft's Platform and the WMI SDKs?

The platform SDK used to contain a wealth of example perl scripts using Win32::OLE, although most of them dump rather than set information - they do show how to call & use methods though. Many of the properties accessible in the objects are read-only as per the APIs, so checkout the SDK(or MSDN online) as to whether the properties you're looking at are. Even if the properties are read-only there may be an object method that can be used to change the values.

An example is Win32_Service - all the object properties are read-only, but there is a Change method that will allow you to change a services settings. (such as Startup=Automatic|Manual|Disabled, etc...)

What specific classes/objects are you looking at working with & changing settings for? HTH.

Replies are listed 'Best First'.
Re^2: Perl->WMI? (OT, I know)
by Dismas (Acolyte) on Feb 11, 2005 at 16:00 UTC
    Dear bA,

    At present, the only things we seem to want to change are the video refresh rate and horizontal & vertical resolutions. Whether others will appear in future, I can't say for certain, but it seems likely.

    Thanks!

    Dismas
      In any scripting language I don't know what the advisable way would be to do what you want. Display settings are in the registry, so you could certainly set those items directly with Win32::Registry. That IMHO is risky though, if you happened to change the settings to something that is an invalid/bad combination of values who knows what might happen to the machines. I would check into perhaps some sort of group policy tool. If a policy/template could be leveraged I think that'd be the safest/best approach.