blackadder has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks

Using Perl, is there a way where I can set the screen saver to what ever I want - marquee preferably with a certain string like Welcome to Perl World - on a number of remote Win32Xp machines? A bit of an example code would help greatly.

Thanks
Blackadder
  • Comment on Setting the screen saver on a remote Win32 PC

Replies are listed 'Best First'.
Re: Setting the screen saver on a remote Win32 PC
by inman (Curate) on Sep 10, 2004 at 11:20 UTC
    The screensaver information is stored in and around the HKEY_CURRENT_USER\Control Panel key in the registry. The information about which screensaver is used is under the \Desktop key and the individual settings for the screensavers appear to be in \Screen Saver.{name} keys, where name is the name of the screensaver.

    In order to edit this information using Perl you will want to look at Win32::TieRegistry. This module can be used on local and remote registries if you have the correct access.

    Note that the screensaver info is stored under the current user key so setting it remotely will require that you iterate through the users in the HKEY_USERS key.

      Thanks I'll post the full code when its done,....soon
      Blackadder