Need to prevent a group policy when user is not connected to network

I have group policy set up so users computers lock after 10 minutes with paswsword protected screensaver. yes they hate it... Well we have education that users powerpoint presentations and they are getting annoyed at their laptops locking during a presentation when they have been chatting for 12 minutes about one slide. I need to retain this GP when they are connected to the network yet when they are off site doing presentations I would like to not have this GP applied. Is there a solution configuring local Group policy on these units with loopback or a script that will run if they are not on network and login.

Who is Participating?
Mohammed HamadaConnect With a Mentor Senior IT ConsultantCommented:
Greetings Cfeeke,,

I suggest that you create a batch file to disable the screensaver when users are using PP, the best and easier method to do such thing is to schedule this batch/script file between 2 periods of time, (ie, 3pm --> 5 pm) lets say as this will be the time when they will work on PP, then the screensaver will be disabled, when the time is 5, the screensaver will be active then..

The script as follows ..


Dim WSHShell, n, MyBox, p, p1, t, cn, Caption, itemtype, errnum

Set WSHShell = WScript.CreateObject("WScript.Shell")
p = "HKEY_USERS\.DEFAULT\Control Panel\Desktop\ScreenSaveActive"
itemtype = "REG_DWORD"
t= "Choose Accordingly"

On Error Resume Next

n = ws.RegRead(p)

errnum = Err.Number
If errnum <> 0 then  

n = 0
End If

Caption = "1 = Screensaver Enable, 0 = Screensaver Disable"
On Error Goto 0

cn = InputBox(Caption, t, n)
If cn <> "" Then
WSHShell.RegWrite p, cn, itemtype
End If

If cn <>"" Then
'MyBox = MsgBox("You must Log Off/Log On for the changes to take effect.", vbOKOnly,"Done")
End If

VisitKelly's Korner

Sub VisitKelly's Korner
      If MsgBox("This script came from the Tweaks Section of Kelly's Korner" & vbCRLF & vbCRLF & "Would you like to visit Kelly's Web Site now?", vbQuestion + vbYesNo + vbDefaultButton, "Visit Kelly's Korner") =6 Then
            wshshell.Run ""
      End If
End Sub


Download file from

The file above when first runing it will disable screen saver if enabled, the second run will enable the screen saver if disabled..!

Use the schedule tasks program to call this file on a specified time ...!

Hope this helps
GeisrudSystems AdministratorCommented:
Try logging in to the local machine instead of the domain.  Not sure if that will work, I think group policies still apply to a computer as long as they are part of the domain.

Perhaps setting up user with a separate login with policies adjusted for presentations.
cfeekeAuthor Commented:
Local user does not work and generating new user with different policies is not an option.. Defeats purpose behind password protected screensaver.....
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

If a small program was written to keep the computer "active" and not constantly in the idle state, then that should resolve the issue.  The perfect choice might be a JAVA application.  All you would need it to do is to simulate I/O, so by using a program to generate like a harmless keypress, a pefect choice might be FN+PRTSCR, it should generate snapshots of the computer screen, which you don't care if that happens or not and shouldn't interrupt a presentation.  But since the machine believes it recieved I/O from the keyboard, it won't idle.  Therefore preventing the passworded screensaver from loading.  You have it generate this key combination every 5 min or so, and then that should solve the problem.

The only problem with this is that now you've distributed a file that the user could potentially use to circumvent the screensaver entirely.  So a little lie like, using the program for long periods of time will cause their computer to break might be a good deterent to the misusing it.  Hope this helps.
cfeekeAuthor Commented:
moh10ly  I have read the post and it makes sense. Do you know how I can make the script run when the user runs powerpoint and the I crate and undo bat that will run whne the users closes the application. Therefore the disable screensaver is tied to the application. I would prefer not have the users know any details. All they need to know is that when the are using powerpoint the screensaver will not start and lockout the computer. Maninblac1..thanks there is a program out there called PreventScreensaver... for powerpoint but in requires users intervention and like you said they will use it all the time...
All Courses

From novice to tech pro — start learning today.