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.
LVL 1
shaolinfunkAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.