Solved

Computer startup script to insert reg for all users

Posted on 2004-09-22
6
1,090 Views
Last Modified: 2012-06-27
I have a question similar to: http://www.experts-exchange.com/Operating_Systems/WinXP/Q_21140002.html

I'm creating a script that will configure the properties of our screensavers to be customized for our organization.  We are using the builtin Windows 3D flying objects screensaver under the Textured flag option with a custom texture of our company's logo.  Group Policy is in place to set the screensaver to the 3D flying objects scr but as far as I can tell, does not have an option to configure the specific screensaver.  I found the registry entries that relate to the settings we need:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Screensavers\Flying Objects]
"Options"=dword:00000001
"Type"=dword:00000006
"Tesselation"=dword:000000c8
"Size"=dword:0000004b
"Texture"="C:\\Windows\\System32\\texture.bmp"
"TextureFileOffset"=dword:00000028
"AllScreensSame"=dword:00000000

I am trying to configure a computer startup script that will run a batch file to import these settings.  It works fine if I do it as a user logon script, but since users move between sites, I want the texture to be based on the computer's location in Active Directory and not the user's.  I've done registry entries during XP setup that get applied to all users, but having it run at a normal computer startup does not seem to have the same affects.

How can I get this registry file to affect all users when it gets imported at comptuer startup, or another good idea to overcome this issue?  I have a batch file configured to do all of this that is a little more in depth, using variables, using if exists to test if the file is there or not so we conserve bandwidth, so I don't want to change the method too much if I can help it.

Running as a logon script will not produce the desired results unless I can test for the computer's location in AD at logon which would involve a vbs file I'm sure.
0
Comment
Question by:Eagle6990
6 Comments
 
LVL 31

Expert Comment

by:DrUltima
Comment Utility
What type of login script are you using?  This will be a big factor in how you go forward.
0
 
LVL 17

Author Comment

by:Eagle6990
Comment Utility
I'm currently using a batch file, but it redirects the output to create a .reg file that it then imports via regedit.

I'm doing this for both XP and 2K machines.
0
 
LVL 24

Expert Comment

by:Kenneniah
Comment Utility
Instead of logon scripts I'd look at creating my own adminstrative template for use with group policy. It can be a pain to learn how to write them, but once you do you can edit just about anything in the registry with it. The whitepaper explaining how to make these can be found at http://download.microsoft.com/download/1/7/2/1725520f-1228-4dff-9c5d-594042475844/rbppaper.doc

A simple example of one is at http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q225087
0
 
LVL 17

Author Comment

by:Eagle6990
Comment Utility
I resolved it in a way that works for us.  I split the policy up into a Machine Startup and a User Logon script.  The Machine Startup script creates a .reg file in the system32 folder and leaves it there on bootup depending on it's location in AD.  The User Logon script then imports this registry entry every time the user logs in.  So the .reg file is created based on the machine's location but it still gets imported on every login.  Problem solved.
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
Comment Utility
Closed, 250 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now