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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pre Logon Enviroment

Status
Not open for further replies.
Oct 27, 2004
32
US
Hi Guys


I’m trying to affect the Windows Pre Logon Environment, basically I want to set the Screen Saver and Wallpaper to the corporate defaults.

I’m doing this at the moment by hacking the registry as the user logs in, but if the user doesn’t have Local Admin rights the registry remains unaffected.

Is there anyway to set the Pre Logon Environment with GPO?
If not is there anyway to run a script at logon/start-up so it runs with Local Admin Rights?

Here’s my script;

'Apply Registry Settings
'Screen Saver & Wallpaper Settings (Pre-Logon Environment)
WshShell.RegWrite "HKEY_USERS\.Default\Control Panel\Desktop\ScreenSaveActive", 1, "REG_SZ"
WshShell.RegWrite "HKEY_USERS\.Default\Control Panel\Desktop\ScreenSaveTimeOut", 600, "REG_SZ"
WshShell.RegWrite "HKEY_USERS\.Default\Control Panel\Desktop\ScreenSaverIsSecure", 0, "REG_SZ"
WshShell.RegWrite "HKEY_USERS\.Default\Control Panel\Desktop\SCRNSAVE.EXE", "C:\Policy\HFScreenSaver.scr", "REG_SZ"
WshShell.RegWrite "HKEY_USERS\.Default\Control Panel\Desktop\WallPaperStyle", "2", "REG_SZ"
WshShell.RegWrite "HKEY_USERS\.Default\Control Panel\Desktop\TileWallPaper", "0", "REG_SZ"
WshShell.RegWrite "HKEY_USERS\.Default\Control Panel\Desktop\WallPaper", "C:\Policy\HFLogonWallPaper.bmp", "REG_SZ"

Any help on this would be greatly appreciated
 
Why not set a GPO?

For instance, under User configuration\Administrative Templates\Desktop\Active Desktop you can take care of the Wallpaper issue...

"Specifies the desktop background ("wallpaper") displayed on all users' desktops.

This setting lets you specify the wallpaper on users' desktops and prevents users from changing the image or its presentation. The wallpaper you specify can be stored in a bitmap (*.bmp), JPEG (*.jpg), or HTML (*.htm, *.html) file.

Users cannot change this specification".


Just a thought,

Patty [ponytails2]
 
I've already set a Group Policy but it doesn't affect the Pre Logon environment, it's fine for the users desktop.

The pre logon environment is the screen where you get Press CTRL+ALT+DEL to logon so no user settings are applied. The Registry uses the .default users to make changes to this environment, but i can't figure out where it is in GPO, if at all.

If not I need to be able to run a script as with local admin rights at start up.

Anymore Ideas?

Thanks

Jay
 
Could you just set the wallpaper etc up how you want and then overwrite the default user profile with that one? Company wide you'd either have to do this per PC or redirect the default user profile to a network location.

We actually do branded pre-login wallpaper for a client (if this is what you're talking about )but it's part of our RIS build image, we also distribute the registry key via SMS if it gets missed somehow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top