Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to change registry settings

Status
Not open for further replies.

bowflyer

IS-IT--Management
Apr 10, 2006
27
0
0
US
I need to make a script to change MS Office Communicator settings.

I have identified the key, but how can I automate this?

for example.

"tom.jones@xxxxbiz.com" to "tom.jones@x4biz.com
 
Check out the reg.exe utility from the Windows 2000 Resource kit. You can probably download this from the web.

You can also use the regwrite function in vbscript.
 
Just overwrite the value. For example, copy/paste the following into Notepad, change the key (i.e. amend "HKCU\MyRegKey\Value") then save it as something like 'reg-change.vbs'. It doesn't matter what the filename is as long as it ends with '.vbs'.

When you double-click on the saved VBS file it will make the change in the registry for you.

Code:
Dim strKey, strValue
Set WshShell = WScript.CreateObject("WScript.Shell")

'Replace the following with the actual MS Office Communicator key
strKey = "HKCU\MyRegKey\Value"

'Replacement value
strValue = "tom.jones@x4biz.com"

WshShell.RegWrite strKey, strValue

'Information... just comment it out if you don't want to see the popup
WshShell.popup "Settings have been changed",2,"MS Office Communicator"

Hope this helps...
 
Forget what I wrote...

You asked the same question in the Vbscript forum and gave more information. Use Markdmac's suggestion, not mine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top