JSI Tip 2296. How can I set a screen saver using system policy in Windows NT 4.0?

Jerold Schulman

April 24, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today


In tip 1966, I described the typical registry entries involved in setting a screen saver.

Windows NT 4.0 allows you to extend system policies by incorporating your own .adm files. Enclosed is an .adm file that will allow the configuration of a screen saver. This policy enables 4 options in the user-based portion of the policy:

1. Choosing a screen saver.

2. Enabling the screen saver.

3. Enabling password protection.

4. Setting the timeout.

To use the policy:

1. copy/paste the text to %SystemRoot%InfScrsave.adm.

2. In the System Policy Editor (Poledit.exe), press Options / Policy Template.

3. Add the Scrsave.adm file to the templates.

NOTE: The screen saver options will be labeled Screen Saver Policies, and will be available for any user or group.

The Scrsave.adm file contains:

       CLASS USER      CATEGORY  !!Screen_Saver_Policy              POLICY !!Screen_Saver              KEYNAME "Control PanelDesktop"                      PART !!Screen_Saver_Location                      EDITTEXT                      DEFAULT !!DEF_SCREEN_SAVER                      VALUENAME SCRNSAVE.EXE                      END PART              END POLICY              POLICY !!ENABLE_SCREEN_SAVER              KEYNAME "Control PanelDesktop"                      VALUENAME ScreenSaveActive                      VALUEON "1" VALUEOFF "0"              END POLICY              POLICY !!ENABLE_Password              KEYNAME "Control PanelDesktop"                      VALUENAME ScreenSaverIsSecure                      VALUEON "1" VALUEOFF "0"              END POLICY              POLICY !!SCREEN_SAVER_IDLE_TIMEOUT              KEYNAME "Control PanelDesktop"              VALUENAME ScreenSaveTimeout              VALUEON "600"              END POLICY       END CATEGORY      [strings]      Screen_Saver_Policy="Screen Saver Policies"      Screen_Saver="Screen Saver"      ENABLE_SCREEN_SAVER="Enable Screen Saver"      Screen_Saver_Location="Enter the location of the Screen Saver"      DEF_Screen_Saver="%SYSTEMROOT%system32logon.scr"      ENABLE_Password=Enable Password       SCREEN_SAVER_IDLE_TIMEOUT="Screen Saver Activation Timeout"


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like