This script sets the user's IE homepage, background wallpaper and color scheme via the registry. I used it to control the wallpaper company wide. Each division has it's own logo, so I used the user's DN (Distinguished Name) in Active Directory to look for specified OUs that would be used to determine what wallpaper they should have.
The wallpaper image file would be copied to their local drive and the path is saved as a variable to be written to the registry. The background color is also modified (to my company's logo color) and the homepage is set.
I have left a single example in for reference. The example looks for the "Admin Staff" OU to be listed.
The LDAP query will obviously need to be modified to match your domain controller.