Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Script for Windows registry

Reply
 
Old 02-01-2009   #1 (permalink)
Salvador


 
 

Script for Windows registry

How can I do this in one batch to the Windows registry:

1 .- Give permission to a specific branch, but if you are first reviewed and
permits, but give it.

2 .- To determine whether there is a key in a branch with a specified value,
and if it does not exist, create it or change it.

I tried to network and query reg add me but no result


My System SpecsSystem Spec
Old 02-01-2009   #2 (permalink)
Richard Mueller [MVP]


 
 

Re: Script for Windows registry


"Salvador" <salvador.carrero@xxxxxx> wrote in message
news:OzXuBYIhJHA.3716@xxxxxx
Quote:

> How can I do this in one batch to the Windows registry:
>
> 1 .- Give permission to a specific branch, but if you are first reviewed
> and permits, but give it.
>
> 2 .- To determine whether there is a key in a branch with a specified
> value, and if it does not exist, create it or change it.
>
> I tried to network and query reg add me but no result
These examples from the Script Center should get you started:

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

Also from "Microsoft Windows 2000 Scripting Guide":

http://www.microsoft.com/technet/scr..._reg_utys.mspx

Navigate in the TOC to the left to sub topics. For example, this link
discusses registry subkey access rights:

http://www.microsoft.com/technet/scr..._reg_dlby.mspx

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


My System SpecsSystem Spec
Old 02-01-2009   #3 (permalink)
Salvador


 
 

Re: Script for Windows registry

I have this script, but I detect if the server value is not equal to SRV1
changed to SRV2 ?

setlocal ENABLEEXTENSIONS
set KEY_NAME="HKEY_CURRENT_USER\Software\Microsoft\Software"
set VALUE_NAME=Server

FOR /F "usebackq skip=4 tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v
%VALUE_NAME% 2^>nul`) DO
( ????????????



"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in
message news:uvRAHuIhJHA.5724@xxxxxx
Quote:

>
> "Salvador" <salvador.carrero@xxxxxx> wrote in message
> news:OzXuBYIhJHA.3716@xxxxxx
Quote:

>> How can I do this in one batch to the Windows registry:
>>
>> 1 .- Give permission to a specific branch, but if you are first reviewed
>> and permits, but give it.
>>
>> 2 .- To determine whether there is a key in a branch with a specified
>> value, and if it does not exist, create it or change it.
>>
>> I tried to network and query reg add me but no result
>
> These examples from the Script Center should get you started:
>
> http://www.microsoft.com/technet/scr...y/default.mspx
>
> Also from "Microsoft Windows 2000 Scripting Guide":
>
> http://www.microsoft.com/technet/scr..._reg_utys.mspx
>
> Navigate in the TOC to the left to sub topics. For example, this link
> discusses registry subkey access rights:
>
> http://www.microsoft.com/technet/scr..._reg_dlby.mspx
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Script: change in real time the key in the registry VB Script
Script to Export Multiple registry values? VB Script
Script: read a registry key VB Script
Reading x86 or x64 registry from Powershell - Help with my script! PowerShell
Script - Registry Redirection Issue Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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