Solved

Convert Reg keys into VBS script

Posted on 2014-10-03
1
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 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