Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GPO Screensaver on server

Status
Not open for further replies.

Hondy

Technical User
Mar 3, 2003
864
0
0
GB
Hi

I want to turn on the lockable screen saver functionality on my production environment via GPO.

To do this I need to specify an executable in the GPO, anyone know what the executable is for the "Windows 2003 Server" screensaver is(the static Windows logo that randomly gets displayed around the screen)?

Presumably there is little performance impact compared to the old OpenGL problems?

So I need to set:

Screensaver = enabled
Screen Saver executable = ???
password protect screen saver = enabled
Screen saver timeout = 15 mins

Right?

Thanks

H





 
We have a custom scr so this is how I do it.

Code:
'Add screen saver
Dim objFSO:Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim WshShell:Set WshShell = WScript.CreateObject("WScript.Shell")
Const OverwriteExisting = True
sysDir = objFSO.GetSpecialFolder(1) 

strLocalfile = sysDir & "\MYCOMPANY.scr" 

If objFSO.FileExists(strLocalfile)=False Then
objFSO.CopyFile  "\\server\share\MYCOMPANY.scr" , sysDir & "\" , OverwriteExisting = true
End If

HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Control Panel\Desktop"
objReg.CreateKey HKEY_CURRENT_USER, strKeyPath
ValueName = "ScrnSave.exe"
strValue = "C:\WINDOWS\System32\MYCOMPANY.scr"
objReg.SetStringValue HKEY_CURRENT_USER, strKeyPath, ValueName, strValue

MCITP:EA/SA, MCSE, MCSA, MCDBA, MCTS, MCP+I, MCP
 
Thanks for the tip but I need to enforce it via GPO. Although you did inspire me to search for scr files on a server.

It looks as though the executable is c:\windows\system32\logon.scr

If you right click it in Explorer there is a "test" option and that appears to be the one I need.

I just hope it has no hidden adverse affect of turning it on! :)
 
I made a GPO to do this using winexit.scr This forces users to logout at night (I think Microsoft made it, Google it if interested). But you can use whatever .scr you like. To set it up:

- Make a GPO and name it appropriately (make sure it is an OU where your users reside)
- Edit the gpo and go to >Userconfig>Admintemplates>ControlPanel>Display
- Enable screen saver, screen saver executable name (set the path too) and screen saver timeout (set the time too)

In my case, I also had to add a line to the user's logon script to copy the winexit.scr file to their %windir% path. Since you're going to use a built-in, you won't need to do that. I attached a screen shot of the gp editor that about sums it up.
 
 http://www.4micah.net/forumstuff/winexit.JPG
you can try this where it just locks the computer but theres no background.


Screensaver = enabled
Screen Saver executable = rundll32 user32.dll,LockWorkStation
password protect screen saver = enabled
Screen saver timeout = 15 mins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top