Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm a student, I have this assignment where I need to know how to disable the user from changing the background to a client computer, thing is that I've been looking around to know what language does the logon script use, any site with handy information, tried googling but I really can't find anything useful, don't know if I'm googling the right terms

All I've found for now is a lot of tutorials about mapping network drives and so on

share|improve this question
    
Are sure you need to do this with a script? There are group policy settings that cover backgrounds. –  Zoredache Apr 22 '10 at 16:55
    
Yes, I know I can do it with the group policy, though it applies to all the computer (local users affected) –  allenskd Apr 22 '10 at 18:39
    
This sort of thing can also be done with mandatory profiles. –  John Gardeniers Apr 22 '10 at 21:45
    
No, this GPO setting applies to users, not computers unless you're using loopback settings. It can be restricted if the users are in separate GPOs. It can also be restricted through the use of WMI filters or security applied to the GPO. In any case, it does NOT apply to local users. –  K. Brian Kelley Apr 23 '10 at 1:48
add comment

4 Answers

up vote 2 down vote accepted

You don't want to use a logon script for this. You want to use group policy. You'll need to read up on Group Policy, there's plenty of resources to learn with (like GPOGuy.com), but here's the specifics on how to absolutely prevent the wallpaper from being changed.

Microsoft KB Article: You can change the desktop wallpaper setting after administrator selects "Prevent Changing Wallpaper" option in Group Policy (327998)

share|improve this answer
add comment

Login-scripts will use anything the client machine considers a valid script. .BAT and .CMD files are understood by everything, but are significantly limited in what they can do; they can do simple drive mappings and a few other operations but little else. Almost everything also can run .VBS scripts which allows a much more robust script. If you're lucky enough to have a pure Win7 environment, it is very possible to use PowerShell scripts. And finally, if you're really gung-ho about it, you can actually compile your own .EXE files that will do everything you need to do and have it be your login script. The thing to keep in mind is that the login script is, I believe, executed in the User's context so it can only do what the user is allowed to do.

Think of a login script as a file that the Group Policy engine gives to the local machine to run after a start command.

start login.vbs
start login.bat
start login.ps1
start login.exe

That's not exactly how it works, but it does frame the concept better.

Also, the machine itself can have startup-scripts! These run before user login, and run in SYSTEM context. Can be handy for certain tasks.

share|improve this answer
add comment

A logon script is not the appropriate place for what you are trying to accomplish. Group Policy is what you want to do as previously noted. Alternatively you could set a mandatory profile for the user(s).

share|improve this answer
add comment

Here are the exact instructions modified for a domain from @K. Brian Kelley's link

Open up the group policy object editor and point it to your domain group policy

Under the Domains Policy, expand User Configuration, expand Administrative Templates, expand Desktop, and then click Active Desktop.

Double-click Active Desktop Wallpaper.

On the Setting tab, click Enabled, type the path to the desktop wallpaper that you want to use, and then click OK.

Hope that helps.

share|improve this answer
1  
Right, except you might not want it to be your default domain policy. That's why I gave the other link to GPOGuy.com. You may only want to customize this for particular users. –  K. Brian Kelley Apr 22 '10 at 21:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.