Set Screensaver on Windows devices
  • 02 Feb 2024
  • 1 読む分
  • PDF

Set Screensaver on Windows devices

  • PDF

The content is currently unavailable in Ja - 日本語. You are viewing the default English version.
記事の要約

Screensavers aren't just pretty distractions. They can be used strategically to display important information transforming it into a powerful tool for branding, privacy, and even communication.

The following PowerShell script helps the IT Admins to set customized screensaver on their managed Windows devices.

  1. Create a file on your desktop, for example, set_screensaver.ps1 and open it in a text editor like notepad++

  2. Copy the contents below to the file or click here to download the file.

    1. Add the path of the folder containing the screensaver images in the script.

    2. Make sure that you have added all the images to this folder.

      # Define the path to the folder containing your images
      $imagesFolder = "path_to_folder_containing_images"
      
      # Set the screensaver settings
      reg add "HKCU\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d "C:\Windows\System32\PhotoScreensaver.scr" /f
      reg add "HKCU\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d "1" /f
      reg add "HKCU\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d "60" /f
      reg add "HKCU\Control Panel\Desktop" /v PhotosUseCameraRoll /t REG_SZ /d "0" /f
      reg add "HKCU\Control Panel\Desktop" /v PhotosPhotoSource /t REG_SZ /d "C:\Windows\Web\Screen" /f
      reg add "HKCU\Control Panel\Desktop" /v PhotosTransitions /t REG_SZ /d "0" /f
      reg add "HKCU\Control Panel\Desktop" /v PhotosInterval /t REG_SZ /d "60" /f
      reg add "HKCU\Control Panel\Desktop" /v PhotosShuffle /t REG_SZ /d "1" /f
      reg add "HKCU\Control Panel\Desktop" /v PhotosCameraModel /t REG_SZ /d "" /f
      reg add "HKCU\Control Panel\Desktop" /v PhotosCameraMake /t REG_SZ /d "" /f
      reg add "HKCU\Control Panel\Desktop" /v PhotosTile /t REG_SZ /d "1" /f
      
      # Set the path to your images folder
      reg add "HKCU\Control Panel\Personalization\Desktop Slideshow" /v RSSFeedPath /t REG_SZ /d $imagesFolder /f
      
      # Activate the screensaver
      reg add "HKCU\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d "1" /f
      

      For example,

      $imagesFolder = "C:\Users\Admin\Documents"


      You can change the screen timeout (in seconds) in the below line in the script.

      reg add "HKCU\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d "60" /f

  3. Follow our guide to upload & publish the PowerShell script using Scalefusion Dashboard.

Please note that to use the PowerShell scripts, the Scalefusion MDM Agent Application must be installed on the device(s). Please follow our guide to publish and install the Scalefusion MDM Agent Application.

Notes:

  1. The scripts and their contents are sourced from various albeit authenticated Microsoft sources and forums.

  2. Please validate the scripts on a test machine before deploying them on all your managed devices.

  3. Scalefusion has tested these scripts, however, Scalefusion will not be responsible for any loss of data or system malfunction that may arise due to the incorrect usage of these scripts.


この記事は役に立ちましたか?