Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How do I force the wallpaper & desktop color for all users (including RDP connections) (WIN2K3 server)

Posted on 2007-03-26
8
Medium Priority
?
782 Views
Last Modified: 2013-11-21
Hi everyone,

I'm sure I could figure this out but it is pretty low on my list of "must haves" and I'm sure someone has dealt with this before.  Anyways, here we go!

How do I set the desktop wallpaper to be locked for any user who logs into a Win2k3 server?  I have a standard BMP that I want to push to each server and have it be locked as the wallpaper for both the "pre-logon" screen (e.g. the CTRL ALT DEL screen) and after you log on.  I don't want anyone to be a be able to change it.  Furthermore, how can I set & lock the desktop color.

Finally (just to make this interesting) almost every one who logs on will be doing so via Remote Desktop.  Can override the "experience" settings that are defined on the client-side so that no matter what you select on the RDP properties, the wallpaper always shows up?

Thanks!
Dominic
0
Comment
Question by:corpkid
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 38

Expert Comment

by:Shift-3
ID: 18794509
Create a sample user account and log on under it.  Set up the wallpaper and desktop color the way you want it.  Log off and log on as administrator.  Copy the sample user's profile over the top of the Default User profile.

Run gpedit.msc and enable "Hide Desktop tab" under User Configuration\Administrative Templates\Control Panel\Display. You could also set this in Group Policy on the server's OU and enable Loopback Processing.

Delete or rename any existing user profiles.  Any users who subsequently log on will have the desired desktop settings and will not be able to change them.

I don't know of a way to override the client's "desktop background" setting.
0
 

Author Comment

by:corpkid
ID: 18794603
Hey Shift-3!

Thanks for the help!  So there is no way (that you know of) to retroactively apply that to profiles that already exist?  I'm sure I'll make some enemies if I go deleting their profiles <grin>

Thanks again!
Dominic
0
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 18795152
Ah, that is a tricky question.  Are you sure you wouldn't rather delete everything while cackling maniacally?  That approach has always worked for me.

Hmm, perhaps not.  Anyhow, I have a ready-made batch script which will change registry values for all users.  This will work for the wallpaper setting.  The script below sets its location to C:\Wallpaper.bmp.  Customize this with the location of your wallpaper file.

However, I've been unable to find where the desktop color value is stored.  If you are able to find it, add new REG ADD lines to modify it.


@echo off
setlocal

REM This script can be used to modify user-specific registry settings for all users.
REM It can also be used to modify machine-specific settings.

REM 1. Add any user-specific registry entries by modifying the "reg add" lines under "REM ADD REGISTRY ENTRIES HERE"
REM    in the first two sections below.
REM 2. Add any machine-specific registry entries under "REM ADD MACHINE REGISTRY ENTRIES HERE" in the third section.

REM Note: If running the script on a Windows 2000 machine, copy REG.EXE to a location in the PATH.

REM --------------------------------------------------------------------------------------------------------------------
REM This section adds registry settings to all entries under HKEY_USERS.
REM HKEY_USERS unloads most users' hives after the machine restarts, so this will not affect all users.

REM %%H is the user's registry key as listed under HKEY_USERS.
REM %%J is the user's registry key with any entries containing "Classes" omitted.

for /F "tokens=2 delims=\" %%H in ('reg query HKU') do (
 for /F %%J in ('echo %%H^|findstr /I /V "classes"') do (

  REM ADD USER REGISTRY ENTRIES HERE
  reg add "HKU\%%J\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "C:\Wallpaper.bmp" /f

 )
)

REM --------------------------------------------------------------------------------------------------------------------
REM This section modifies the NTUSER.DAT file in each user's profile.
REM The currently-logged-on user's file cannot be edited, which is why the previous section is necessary.
REM Additional "reg add" commands can be added between the "reg load" and "reg unload" lines below.

REM %%L is the name of the user's profile folder (excluding All Users, LocalService, and NetworkService).

set exclude=findstr /I /V /C:"All Users" /C:"localservice" /C:"networkservice"

for /F "tokens=*" %%L in ('dir "%allusersprofile%\.." /A:D /B^| %exclude%') do (
 echo Modifying registry settings in profile of user %%L.
 reg load "HKU\User-%%L" "%allusersprofile%\..\%%L\ntuser.dat"

 REM ADD USER REGISTRY ENTRIES HERE
 reg add "HKU\%%J\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "C:\Wallpaper.bmp" /f

 reg unload "HKU\User-%%L"
 )
)

REM --------------------------------------------------------------------------------------------------------------------
REM This section adds entries under HKEY_LOCAL_MACHINE registry hive.

 REM ADD MACHINE REGISTRY ENTRIES HERE
 REM reg add "HKLM\Keyname" /v Value /t REG_SZ /d "data" /f

)

endlocal
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 48

Assisted Solution

by:Jay_Jay70
Jay_Jay70 earned 500 total points
ID: 18796718
you can do this via GPO in the active desktop polices. It works perfectly well
0
 

Author Comment

by:corpkid
ID: 18852830
Jay Jay - does that retroactively modify existing profiles?
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 18854628
it does unless they were originally copied from another profile :)
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20335084
Forced accept.

Computer101
EE Admin
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

My previous article  (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html)detailed one possible method to get SCCM 2007 installed an…
Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

580 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