Solved

Convert Reg keys into VBS script

Posted on 2014-10-03
1
204 Views
Last Modified: 2014-10-09
Hi,
Could someone help me convert the following two Reg keys into VBS script? Thank you!


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Echo]
"ECHO_DIRECTORY"="C:\\NRTEcho"
"ECHO_SIZE"=dword:000007d0

[HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Portable]
"PORTABLE_DIRECTORY"="C:\\NRPortbl"
"DBLIST"="IMANAGE"
0
Comment
Question by:jimmyhtn
1 Comment
 
LVL 20

Accepted Solution

by:
ltlbearand3 earned 500 total points
ID: 40360882
I am assuming you just want a vbscript that can update those registries?  If so, you can use the Wscript.Shell object as one option.  (There are other options, but this is the simpliest looking code)

Give this a shot.

Option Explicit
Dim objShell

Set objShell = CreateObject("WScript.Shell")

objShell.RegWrite "HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Echo\ECHO_DIRECTORY", "C:\\NRTEcho", "REG_SZ"
objShell.RegWrite "HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Echo\ECHO_SIZE", "000007d0", "REG_DWORD"
objShell.RegWrite "HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Portable\PORTABLE_DIRECTORY", "C:\\NRPortbl", "REG_SZ"
objShell.RegWrite "HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0\Common\General\Portable\DBLIST", "IMANAGE", "REG_SZ"

msgbox "Registry Updated"

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

867 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

18 Experts available now in Live!

Get 1:1 Help Now