Discussion Locked

Change WINS enrty in Registry by using s

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to find a way to create a script to change the WINS entry in the registry on 660 PCs. Since DHCP is not an option, using scripts I need to get past the subkey for the specific NICs on each PC. Since the NICs are not all the same, the sub keyunder HKLM\System\CurrentControlSet\Services\NetBT\Adapters is different. Hence I need to find a wild card that will allow me to put in the script, a way to get past this road block to the next key to change the WINS entry. Hoofing to to all PCs is not a desired option. HELP!!!

7 replies

by dmiles

Not familiar with scripts,yet I hope that these will put you on the right track
*Registry Related Methods
WSHShell.Popup "create key HKCU\MyRegKey with value'Top Level Key'
WSHShell.RegWrite HKCU\MyRegKey\", "Top level key"
WSHShell.Popup "Create key HKCU\MyRegKey\Entry with value 'Second level key'"
WSHShell.RegWrite "HKCU\MyRegKey\Entry\", "Second level key
For more info
http:/technet.microsoft.com/
Microsoft Knowledge Base:http://support.microsoft.com
Microsoft Scriting Web page
http://msdn.microsoft.com/scripting/default.htm

by michael roark - ccna/da mcp 3csa

Are you still looking for a way to change the WINS entry in the registry? or did you go straight to DNS? why isn't DHCP an option? and where are you going to put this script? on each machine? or on the server that could be your DHCP server?
What are you trying to accomplish in the end?
Good Luck,

This discussion is closed to new replies.