Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been asked to look into a solution for our remote laptop users who are trying to give presentations in Powerpoint and Excel when at customer sites. We are running a Server 2008 /Win 7 environment. We have a group policy that locks everyone's PC after 5 minutes of inactivity and requires a password to log back in. I've been asked if I can change this setting for users on laptops when they log in but are not locally on the domain. They would like to be able to adjust it so that the screen does not lock when they are giving presentations in PP, word, or Excel. As far as I know powerpoint diables the screensaver while in full screen mode, but I'm not sure how to achieve this with the other programs. I've tried looking at presentation mode on the laptops, but because of group policy the setting to "disable screen saver" is greyed out. Any ideas? Thanks.

share|improve this question
Starring this because I have the same issue...curious to see solutions. – Nathan C Feb 19 '14 at 15:47
I had a troubling situation, and I installed and used Caffeine. – Zoredache Feb 19 '14 at 17:13
@Zoredache - I love it! I wish it could make the mouse pointer shake, though. – Evan Anderson Feb 19 '14 at 17:40
@Evan sentence is complete. Read it. I CAN turn presentation mode on and off, but in the SETTINGS for presentation mode the option to disbale the screensaver is greyed out and can't be checked because of our group policy. All of this was explained in the original question. – Joe B Feb 19 '14 at 17:55
@JoeB - You're getting defensive rather needlessly. I'm certainly sorry that I parsed your sentence poorly. – Evan Anderson Feb 19 '14 at 18:08

I've been able to demonstrate to myself that the presentationsettings tool that I originally suggested does "respect" the Group Policy settings that prevent a user from changing their screen saver. I wasn't aware of this behavior but it certainly makes sense, given that users would just use this tool to exempt themselves from screen savers when nothing presentation-related was happening.

As @HopelessN00b mentions you may want to change the Group Policy, as it applies to the "remote" laptop computers. You'll need to invoke Loopback Policy Processing because screensaver settings are per-user, not per-computer. Loopback Policy Processing allows you to apply user settings to a computer irrespective of the user who as logged-on.

The feature is, unfortunately, confusing to a lot of people. It has a couple of different "modes" (Merge versus Replace) that make it even more confusing. For your application, you could create an link a GPO to a hyopthetical "Remote Laptop Comptuers" OU that enables Loopback Policy Processing in "Merge" mode in its "Computer Configuration" section and, in its "User Configuration" section, sets the screensaver properties to whatever you'd like. When next those machines are rebooted (because the switch from non-Loopback to Loopback requires a reboot-- background policy refresh won't enable it) you'll see the machines begin to pick up the screensaver settings from this new GPO.

Short of writing some kind of hackish client-side service program to reach into the user's registry and toggle the Group Policy screen saver restriction value (since the user can't do it themselves because of registry permissions) I think you're stuck in a situation where you're going to have to choose the lesser of the evils and either disable screen saver restrictions for users on the laptop computers, use some third-party "mouse jiggler" or keyboard simulation software, or just tell the users to live with it.


There any number of third-party programs that can do what you're looking for, but there's a certain "elegance" to doing things with only built-in OS components.

Here's a little VBScript program, suitable for execution by wscript.exe (meaning that you could deploy this w/ Group Policy Preferences directly into the computer's "Startup" folder) that should do what you're looking for, assuming that your domain's DNS name isn't able to be resolved externally to your network. (If it is able to be resolved externally then, frankly, you get what you deserve.)

This script sits in a polling loop, using nslookup to resolve the domain named in the USERDNSDOMAIN environment variable. It polls every 10 seconds, but you can modify that by altering the Const POLL_DELAY line. (The strange gyration of executing itself again is necessary because, if executed only by wscript.exe, a window will briefly appear on each polling interval-- not a good thing at all.)

When the domain name doesn't resolve the "F15" key is "pressed", causing enough activity that Windows will not activate the screensaver.

This script was tested on Windows 8.1 x64 logged-on with a domain user who had a Group Policy Object applying to them that included the Administrative Template settings:

  • Enable screen saver - Enabled
  • Prevent changing desktop background - Enabled
  • Prevent changing screen saver - Enabled
  • Password protect the screen saver - Enabled
  • Screen saver timeout - Enabled - 30 seconds
  • Force specific screen saver - Enabled - scrnsave.scr

My test methodology was as follows:

  • Place the program, named ss.vbs, into the computer's "Startup" folder
  • Logon to the computer as a user with the above Group Policy settings applied
  • Verify that the screen saver starts after 30 seconds of inactivity
  • Unlock the machine
  • Disconnect the computer's network interface card
  • Verify that the screen saver does not start after several minutes of inactivity
  • Reconnect the computer's network interface card
  • Verify that the screen saver starts after 30 seconds of inactivity
  • Logoff to verify that the script doesn't "hang" or otherwise disturb the logoff process

On a Windows 8.1 x64 machine the script is doing exactly what I want.

Option Explicit

' Delay, in seconds, between attempts to resolve the domain name 
' and pressing the "F15" key.
Const POLL_DELAY = 10

Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")

Dim objExec
Dim intFound

If UCase(Right(WScript.Fullname, 11)) = "WSCRIPT.EXE" Then
    While 1
        intFound = objShell.Run("cscript.exe """ & WScript.ScriptFullName & """", 0, True)

        If intFound = 255 Then objShell.SendKeys("{F15}")

        WScript.Sleep(POLL_DELAY * 1000)
    Set objExec = objShell.Exec("nslookup " & objShell.ExpandEnvironmentStrings("%USERDNSDOMAIN%"))

    While Not objExec.StdOut.AtEndOfStream
        If Left(objExec.StdOut.ReadLine, 5) = "Name:" Then WScript.Quit(0)

End If
share|improve this answer
Thanks for the reply. Like I said presentation mode can be turned on and off, but the setting for disbaling the screensaver is greyed and can't be checked because of group policy. They want these users PC's to still lock after 5 min of inactivity, except when they are doing presentations. Is that even possible? I wouldn't want to permanently change their screensaver settings, because they have sensitive data on them and must lock in the event that it's lost or stolen. – Joe B Feb 19 '14 at 15:47
@JoeB It sounds like the far superior solution is to issue "presentation laptops" that don't contain sensitive data, rather than dancing around the issue of having sensitive data on laptops that you then take out and show off to the world. And in this instance, you'd a) want to use the loopback processing and b) not want to rely on a screensaver to protect sensitive information. Encryption, or it doesn't matter. I can read the data of a hard drive on a stolen laptop just fine, regardless of what screensaver settings you have applied via GPO. – HopelessN00b Feb 19 '14 at 16:09
@JoeB: How will the computer know it's giving a presentation if you don't put it into presentation mode? You seem to be talking around the issue at the root of it. PowerPoint notifies Windows that a presentation is occurring, Excel and Word do not. Give the user icons to toggle presentation mode when they're giving presentations and the screensaver won't kick-in. This circumvents the need for the user to be modifying the screensaver settings which, as you're seeing, is prevented when a Group Policy Object applies screensaver settings. What am I missing? – Evan Anderson Feb 19 '14 at 16:10
Yes they are whole disk encrypted. =) – Joe B Feb 19 '14 at 17:31
@Evan The problem is when I turn presentation mode on, it still goes to screen saver for Word and Excel. Full screen mode or not. I suspect this is due to our group policy, since in presentation mode setting the "disable screensaver" box is greyed out and can't be checked. – Joe B Feb 19 '14 at 17:32

The typical way of handling this is a separate set of policy for users or machines defined as "remote" workers. We, for example, have an OU named Remote Laptop Users which allows those user more control over display and power settings, for exactly this reason. (You can also use WMI filtering or security filtering to achieve the same results, if you don't want to, or can't change the OUs these objects are in).

If you can get your users to use the presentation settings tool suggested by Evan Anderson, that's great, but my experience is that the users who complain about this type of thing are also the ones who won't lift a finger to fix the problem, and expect IT to fix it for them, so you may end up having to fix it for them, with a different GPO.

share|improve this answer
I'll see your invocation of Group Policy and raise you with Loopback Policy Processing... >snicker< – Evan Anderson Feb 19 '14 at 15:33
@EvanAnderson Yeah, not applicable in my experiences. Laptops generally aren't shared resources (in my experience), so it's the same user on it all the time. Unless they want to issue shared laptops for presentation purposes, or whatever. I've only had to use loopback processing on shared workstations that stayed in the same physical location... like a computer terminal on a production line. In any event, I'd upvote your edited answer if I hadn't already upvoted the unedited one. :) – HopelessN00b Feb 19 '14 at 15:40
It's not the shared resource that I'm worried about, so much as not tying the screensaver being disabled to the user. That way if they move to a desktop they get the appropriate screensaver policy w/o having to require some provisioning changes to their user account. – Evan Anderson Feb 19 '14 at 15:42
Thanks for the reply. I could get them to use presentation settings but the problem is the option to disable the screensaver is greyed because of group policy. – Joe B Feb 19 '14 at 15:50
@Evan Anderson Big help ...thanks for the comment. – Joe B Feb 19 '14 at 17:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.