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

Posted on 2006-06-08
Last Modified: 2012-06-27
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.

Question by:cfeeke
    LVL 14

    Expert Comment

    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.

    Author Comment

    Local user does not work and generating new user with different policies is not an option.. Defeats purpose behind password protected screensaver.....
    LVL 23

    Expert Comment

    by:Mohammed Hamada
    LVL 9

    Expert Comment

    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.

    Author Comment

    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...
    LVL 23

    Accepted Solution

    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

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now