• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 418
  • Last Modified:

Is there a way to disable the XP screensaver and power management?

Is there a way to disable the screensaver and power management during certain hours, like 9am to 5pm, and then have it go back into its normal operation after those hours?

Currently, my screensaver setting is set to come on after 20 minutes of idleness.  During the 9am to 5pm I never want the screensaver to come on, but want it to go back to "normal" after 5pm, whereby if it's idle for 20 minutes it will come on.

How do I do this?  Thanks.
0
shaolinfunk
Asked:
shaolinfunk
  • 10
  • 7
1 Solution
 
johnb6767Commented:
2 scheduled tasks, one at 9am, second at 5 pm

first task...... Save it as a batch file named DisableSaver.Bat




@echo off
echo Disabling Screensaver
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaveActive /d 0x0 /f
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /d 0x0 /f

echo Killing Power Management
powercfg /setactive "YourSchemeName"
REM delete the lines ending in DC if not a laptop
powercfg /change "YourSchemeName" /monitor-timeout-ac 0
powercfg /change "YourSchemeName" /monitor-timeout-dc 0
powercfg /change "YourSchemeName" /disk-timeout-ac 0 
powercfg /change "YourSchemeName" /disk-timeout-dc 0 
powercfg /change "YourSchemeName" /standby-timeout-ac 0 
powercfg /change "YourSchemeName" /standby-timeout-dc 0
powercfg /change "YourSchemeName" /hibernate-timeout-ac 0 
powercfg /change "YourSchemeName" /hibernate-timeout-dc 0
powercfg /change "YourSchemeName" /processor-throttle-ac NONE 
powercfg /change "YourSchemeName" /processor-throttle-dc NONE 

Open in new window

0
 
tim_74Commented:
There aren't any features that I know of that allow the screen saver to behave differently at different times. It's either on or off and if it's on it comes on based on the time settings. There is probably some software or a VB script than could do something similar, but I have never seen it.
0
 
johnb6767Commented:
Second Task at 5 pm Turns everything back on....
@echo off 
echo Disabling Screensaver 
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaveActive /d 0x1 /f 
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /d 0x1 /f 
 
echo Killing Power Management 
powercfg /setactive "YourSchemeName" 
REM delete the lines ending in DC if not a laptop 
These values 0f 0 will need to be changed to what you specify, in minutes. 
powercfg /change "YourSchemeName" /monitor-timeout-ac 0 
powercfg /change "YourSchemeName" /monitor-timeout-dc 0 
powercfg /change "YourSchemeName" /disk-timeout-ac 0  
powercfg /change "YourSchemeName" /disk-timeout-dc 0  
powercfg /change "YourSchemeName" /standby-timeout-ac 0  
powercfg /change "YourSchemeName" /standby-timeout-dc 0 
powercfg /change "YourSchemeName" /hibernate-timeout-ac 0  
powercfg /change "YourSchemeName" /hibernate-timeout-dc 0 
powercfg /change "YourSchemeName" /processor-throttle-ac NONE  
powercfg /change "YourSchemeName" /processor-throttle-dc NONE

Open in new window

0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
johnb6767Commented:
Note*

These values 0f 0 will need to be changed to what you specify, in minutes.

Should have been

REM These values 0f 0 will need to be changed to what you specify, in minutes. Or it will error....
0
 
johnb6767Commented:
How To Schedule Tasks in Windows XP
http://support.microsoft.com/kb/308569
0
 
johnb6767Commented:
I use a similar script to unlock it as needed, in our locked down environment, and it resets it once the script is continued and closed....
0
 
shaolinfunkAuthor Commented:
Thank you johnb, this is exactly what I needed.
0
 
johnb6767Commented:
If you need help tweaking, let me know....
0
 
shaolinfunkAuthor Commented:
I just want to make sure I understand....the "0" refers to the number of minutes to idle before the power management kicks in?  So, if I put "20", the PC must be idle for 20 minutes before the power management kicks in?
0
 
johnb6767Commented:
Yes, or 0 disables it.... Or makes it set to "Never Standby" etc....
0
 
shaolinfunkAuthor Commented:
Hi John,
I'm trying to institute your batch files on a second computer, my laptop.  The disabling part works great, but the batch file to enable the screensaver doesn't work (it enables the power saving scheme though).

After running the enabling/turn back on batch file, when you go to the screensaver options everything is grayed out.  What should I do?  Thanks.
0
 
johnb6767Commented:
If everything is grayed out, then theres another policy preventing you from making changes ... Is it like this on all machines?
0
 
shaolinfunkAuthor Commented:
I just checked...yes it is like this on both of the machines that I implemented these 2 batch files on.  One's a desktop, one's a laptop, both have their screensaver option dialog grayed out....
0
 
shaolinfunkAuthor Commented:
My desktop is my company's computer at work.  My laptop is my personal laptop at home.  Both are using the disable/enable batch files, and both computers can disable but not re-enable the screensaver only (power mgmt is re-enabled just fine on both computers).  
0
 
johnb6767Commented:
Can you post a gpresult please?
0
 
shaolinfunkAuthor Commented:
Hi john, thanks for replying...what is a gpresult?
0
 
johnb6767Commented:
start>run>cmd

gpresult>gp.txt
notepad gp.txt

Once you paste those two lines in the dos box, copy the contents of the notepad doc, and paste it here please....
0
 
shaolinfunkAuthor Commented:

I just XXX'ed out my name.
Microsoft (R) Windows (R) XP Operating System Group Policy Result tool v2.0
Copyright (C) Microsoft Corp. 1981-2001

Created On 04/28/2010 at 18:56:12



RSOP results for XXXXXXXXXXXXXXX on XXXXXXXXXXXXXXXXXXX : Logging Mode
------------------------------------------------------------------------

OS Type:                     Microsoft Windows XP Professional
OS Configuration:            Standalone Workstation
OS Version:                  5.1.2600
Domain Name:                 XXXXXXXXXXXXXXXXXXX
Domain Type:                 N/A<Local Computer>
Site Name:                   N/A
Roaming Profile:             
Local Profile:               C:\Documents and Settings\XXXXX
Connected over a slow link?: Yes


COMPUTER SETTINGS
------------------
    
    Last time Group Policy was applied: 04/28/2010 at 18:00:01
    Group Policy was applied from:      N/A
    Group Policy slow link threshold:   500 kbps

    Applied Group Policy Objects
    -----------------------------
        N/A

    The following GPOs were not applied because they were filtered out
    -------------------------------------------------------------------
        Local Group Policy
            Filtering:  Not Applied (Empty)

    The computer is a part of the following security groups:
    --------------------------------------------------------
        BUILTIN\Administrators
        Everyone
        NT AUTHORITY\Authenticated Users
        

USER SETTINGS
--------------
    
    Last time Group Policy was applied: 04/28/2010 at 17:25:54
    Group Policy was applied from:      N/A
    Group Policy slow link threshold:   500 kbps

    Applied Group Policy Objects
    -----------------------------
        N/A

    The following GPOs were not applied because they were filtered out
    -------------------------------------------------------------------
        Local Group Policy
            Filtering:  Not Applied (Empty)

    The user is a part of the following security groups:
    ----------------------------------------------------
        None
        Everyone
        Debugger Users
        BUILTIN\Administrators
        BUILTIN\Users
        NT AUTHORITY\INTERACTIVE
        NT AUTHORITY\Authenticated Users
        LOCAL

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 10
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now