Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Computer startup script to insert reg for all users

Posted on 2004-09-22
6
Medium Priority
?
1,110 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:Justin Owens
ID: 12127794
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
ID: 12127897
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
ID: 12128636
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
ID: 12138182
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
ID: 12160811
Closed, 250 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

885 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