Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: modify registry settings using WSH

Reply
Thread Tools Display Modes

Re: modify registry settings using WSH

 
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      10-06-2008

"jerzdevs" <> wrote in message
news:94d10096-fee1-464b-ae45-...
> Can anyone send me to a link that shows some samples of modifying
> existing regkey values?
>
> I bought an MSWindows scripting book but it sort of takes the approach
> that one already knows how to script. Here's what it says in the
> book:
>
> set objShell = WScript.CreateObject ("WScript.Shell")
> objShell.regWrite "HKU\TestKey\version" , 56, "REG_DWORD"
>
> I'm trying to do something similar but with HKL so here's what I was
> trying:
>
> set objShell = WScript.CreateObject ("WScript.Shell")
> objShell.regWrite "HKLM\software\fm\support\poc\wintelpoc" , myname,
> "value data"
>
> So basically, I was just given 230 servers to support and we use a
> product called BindView to report on server information. We created a
> key (string value) named 'wintelpoc' (for our Wintel Point Of Contact)
> and I need to change the value to my name.
>
> Thanks to anyone who can help.
>


Recommended to use WMI to modify registry. You also can do this remotely (if
you have permissions). See this link:

http://www.microsoft.com/technet/scr...y/default.mspx

In particular, link for Create String and DWORD Values



--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify and create registry settings. irf Scripting 3 02-02-2008 11:38 PM
Modify registry rscapers Windows Vista Performance 2 03-29-2007 12:48 AM
Modify acls registry jaime Scripting 1 09-09-2005 04:59 PM
Using a batch file to modify registry settings hmlcc Windows Server 2 05-08-2005 03:27 AM
How to modify rights in registry brian Scripting 1 10-21-2003 08:46 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59