0

We have a range of public Windows 7 computers. The computers are always on. When the users are logged on, the screen must not go off and the computer must not sleep.

However, when the user disconnects, we would like the screen to switch off.

We had a look to gpedit parameters but didn't find any suitable option. How can we do this?

Thanks

Maxbester
  • 229

3 Answers3

2

I found the simplest and efficient way of doing this. I will use Powercfg.

When a user logs on, a script will be launched with the following command:

POWERCFG -Change -monitor-timeout-ac 0

When a user logs off, a script will be launched with the following command:

POWERCFG -Change -monitor-timeout-ac 1
Maxbester
  • 229
0

You should be able to change these settings in Control Panel -> Power Options -> "Choose when to turn off the display" on the sidebar.

You can set it so that the computer will never enter sleep mode but still have the display turn off after a certain period of time (up to five hours).

Unless I misunderstood your question, it looks like these settings would meet your needs.

enter image description here

PFitz
  • 2,528
0

Assuming that they are all currently setup to work correctly while logged in you can do this to enable the screensaver while not logged in.

To change the logon screensaver follow the MSDN guide:

Change the logon screen saver

  1. Click Start, click Run, type regedt32, and click OK.
  2. Locate thefollowing registry key: HKEY_USERS\.DEFAULT\Control Panel\Desktop
  3. In the Details pane, double-click the SCRNSAVE.EXE string value item.
  4. In the Value data box, type the path and name of the screen saver, and then click OK.

Important Make sure that you specify the path correctly to the screen saver. If the screen saver is located in %SystemRoot%\System32, the explicit path is not required.

Enable the logon screen saver

To enable the logon screen saver, follow these steps:

  1. Click Start, click Run, type regedt32, and then click OK.
  2. Locate the following registry key: HKEY_USERS\.DEFAULT\Control Panel\Desktop
  3. In the Details pane, double-click the ScreenSaveActive string value item.
  4. In the Value data box, replace the number 0 with the number 1, and then click OK.
krowe
  • 5,629