Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Screen Saver Policy - Server 2008

Posted on 2011-09-25
11
Medium Priority
?
304 Views
Last Modified: 2012-05-12
Hi Guys,

I need to create a screen-saver policy which locks a computer for laptops after 15 minutes, but they need to be able to change this setting.

After logging out, this needs to reset back to 15 minutes.

How would I create this policy?

Thanks in advance!!
0
Comment
Question by:mikkha1l
  • 5
  • 3
  • 2
  • +1
11 Comments
 

Author Comment

by:mikkha1l
ID: 36596929
Anyone have any ideas at all?
0
 
LVL 6

Expert Comment

by:Reubenwelsh
ID: 36597441
Why do they need to be able to change this if your just going to change this back? When you set a GPO 99% of the time you lock that setting. The only option would be if the users where power users on there laptops.
0
 
LVL 20

Expert Comment

by:Iain MacMillan
ID: 36598703
for Servers you never run screen-savers on them, ties up valuable resources - use power options to set screen shut-off (but not disk).

for desktops, its set via Group Policy under Admin Templates\Control Panel\Personalization, where you can set the SCR file and timeouts.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:mikkha1l
ID: 36602504
We need this setup through GPO because users need to be able to change the setting when they have meetings due to powerpoint presentations, we don't want to elevate the level of access they have on the laptop either.

Is this possible via group policy on Server 2008? or would it be a local laptop policy?
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 36693199
Policy is going to set it, and disable the ability to change it.... Unless you offer something like a local .bat script to remove the policies form the registry directly.....
0
 

Author Comment

by:mikkha1l
ID: 36703250
Do you know how I would do that, only for the screensaver policy?
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 36707485
Let me post it in the AM..... I have a script that gives options to unhide, remove it etc....
0
 

Author Comment

by:mikkha1l
ID: 36707521
Thank you!! :) I will test it out and let you know how it goes..
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 2000 total points
ID: 36709913
Her ya go.... One of my older ones.....This is more fluff than anything, just a preference of mine in an interactive .bat script really... I like to make with nice output on screen... Close as I get to coding...  :-)
@echo off
setlocal
title Do not close this window!!!!!!

:pass
cls
set /p password=Please enter the password: 
REM Set the password below.....
if not %password%==PASSWORD goto pass

:begin
cls
echo  Please choose an action to perform for the ScreenSaver
echo  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo.
echo  A) Unhide the ScreenSaver Tab
echo  B) Change the Time Delay
echo  C) Remove the password prompt (might require a logoff)
echo  D) Disable the ScreenSaver
echo  E) Disable All
echo.
set /p choose=Make your selection please (A-B): 

if %choose%==a goto unhide
if %choose%==b goto sstime
if %choose%==c goto sssecure
if %choose%==d goto ssdisable
if %choose%==e goto ssall

:error
echo.
echo Input not recieved. Please retry. 
echo.
ping -n 3 localhost>nul
goto begin

:unhide
cls
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v NoDispScrSavPage /t reg_dword /d 0x0 /f >nul && echo ScreenSaver Tab unhidden successfully.
echo.
pause
goto again

:sstime
cls
set /p time=Enter the time for the delay in seconds (default is 900): 
echo.
cls
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaveTimeOut /d "%time%" /f >nul && echo ScreenSaver Timeout changed successfully.
echo.
pause
goto again

:ssdisable
cls
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaveActive /d 0 /f >nul && echo ScreenSaver disabled successfully.
echo.
pause
goto again

:sssecure
cls
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaverIsSecure /d 0 /f >nul && echo ScreenSaver Password Prompt removed successfully.
echo.
pause
goto again

:ssall
cls
echo Removing all restrictions for the ScreenSaver....

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v NoDispScrSavPage /t reg_dword /d 0x0 /f>nul
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaveTimeOut /d "599940" /f>nul 
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaveActive /d 0 /f>nul
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaverIsSecure /d 0 /f>nul
echo.
pause

:again
cls
set /p ask1=Do you wish to select another action? 
if %ask1%==y goto begin

:wait
cls
echo  **************************************************************************
echo.
echo     DON'T CLOSE THIS WINDOW UNTIL YOU ARE READY TO REVERSE THESE CHANGES  
echo        As soon as any key is pressed to continue, all settings will                                 
echo      be returned to their default states, and the ScreenSaver ENABLED.                        
echo.                                                                                                                                                
echo  **************************************************************************
echo.
pause

:reset
cls
echo Resetting ScreenSaver Values to DEFAULT
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo.
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v NoDispScrSavPage /t reg_dword /d 0x1 /f >nul && echo ScreenSaver Tab hidden successfully.
echo.
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaveTimeOut /d "900" /f >nul && echo ScreenSaver timeout reset to 15 minutes. 
echo.
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaveActive /d 1 //f >nul && echo ScreenSaver has been enabled. 
echo.
reg add "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v ScreenSaverIsSecure /d 1 /f >nul && echo ScreenSaver Password Prompt has been enabled. 
echo.
pause


:end
cls
endlocal
echo Please logoff/logon to ensure all changes have been applied. 
echo.
pause

Open in new window

0
 
LVL 20

Expert Comment

by:Iain MacMillan
ID: 36710447
nice script JB, should solve the OP's issue perfectly.
0
 

Author Closing Comment

by:mikkha1l
ID: 37021993
This had worked.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

963 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