We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Windows 7 Registry\Script Issue

Medium Priority
918 Views
Last Modified: 2013-11-05
Hi
 
How can I query the registry for a key value, then use that value to create a DWORD in that key? Can I use a variable instead? Like '*'?

I'm trying to add an entry here 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\{Dynamic GUID here}'. The problem is the GUID is different on every computer.  I then want to create the DWORD 'DhcpConnForceBroadcastFlag' with a value of '1' in the key.

Can anyone help?
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Nice work, thanks. I just had to a /t REG_DWORD to create the correct value type.

:)

Author

Commented:
add even

Author

Commented:
Can it be done as a VBS script instead? I'm having UAC issues running this via SCCM.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.