Changing registry keys via VBS from GPO

Hi all,

I need to update/change some settings in MS word on client's pcs.  Now I don't think such settings exist in GPO in W2k server.

Though, I have found these settings in the registry on local machine.  I need to update these settings and make it VBS so that it executes during log in process on client's pcs.

What would the command look like for this?

I need to change HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\General\

and the key is SharedTemplates = c:\blah blah  to  I:\server

and HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options

Startup-path = c:\blah to I:\server

Thanks
cooljam23Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EDDYKTCommented:
Dim Win32Script As Object


Set Win32Script = CreateObject("WScript.Shell")

Win32Script.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\General\SharedTemplates", "I:\server"
Win32Script.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options
\Startup-path ", "I:\server"

Set Win32Script = nothing
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cooljam23Author Commented:
didn't really work.  I got the error message when logging in.

but I used this instead

set sh = WScript.CreateObject("WScript.Shell")
sh.RegWrite "reg key", "new value"

and that worked.

thanks anyway

0
cooljam23Author Commented:
here's another question.  

i need to copy a file from the server to workstation

c:\windows\system32

I have posted this question before and noone was able to help

I had issues with permissions that the file from server cannot be copied to c:\windows\system32

see if you can help me.  i'll post a new question
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.