In
hi,
thanks for your help, not a VB person but i hope the lines of code
below explains what i am trying to achieve.
Unfortunatly the script below fails to execute, can help with this.
The whole path to editing this manually on registry is fine, but the
"Local Area Connection 2" appears as a set of numbers, on the script i
have typed the full name as it appears.
Can you help with the syntax
On Error Resume Next
SET WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
\Local Area Connection 2\domain=data:mycorp.com"
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
\Local Area Connection 2\RegisterAdapterName=data:1"
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
\Local Area Connection 2\RegistrationEnabled=data:1"
SET WSHShell = Nothing
Sorry, not a VB scripter myself either. I usually ask for help with
scripting, such as the microsoft.public.scripting.vbscript newsgroup.
But from what I see, is that what the connection name is on every machine,
"Local Area Connection 2"? The names "Local Area..." show up in
HKLM\System\CCS\Control\Network\Some-GUID-Identifier for the network ID so I
can't see how your script works, unless I am not understanding if it works
like that or not. Maybe the folks in the script newsgroup can better assist.
Check this link out for more info.
Automating TCP/IP Networking on Clients - Part 5: Scripting DNS on Clients:
http://www.microsoft.com/technet/scriptcenter/topics/networking/05_atnc_dns.mspx
I would still think netsh, as Herb originally suggested in his post, is your
better bet for network configuration scripts.
I am also cross-posting this to the VBScript newsgroup to see if those folks
can better assist. When you reply to group, it will auto reply to both
groups as long as whoever replies doesn't delete the groups in the list.
Ace
Some of the previous posts in this thread:
------------------------------------------------
In
If the clients are AD members, you could set the PrimaryDNSSuffix, which
essentially will use that name as the machine'sconnectionsuffix, by using
a GPO. You'll find that in:
Computer Configuration
-Administrative Templates
-Network
-DNSClient
-DNSSuffixsearch list
--
Ace
Innovative IT Concepts, Inc (IITCI)
Willow Grove, PA
This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.
Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Directory Services
Microsoft Certified Trainer
Having difficulty reading or finding responses to your post?
Instead of the website you're using, I suggest to use OEx (Outlook Express
or any other newsreader), and configure a news account, pointing to
news.microsoft.com. This is a direct link to the Microsoft Public
Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows
you
to easily find, track threads, cross-post, sort by date, poster's name,
watched threads or subject.
It's easy:
How to Configure OEx for Internet
Newshttp://support.microsoft.com/?id=171164
Infinite Diversities in Infinite Combinations
Assimilation Imminent. Resistance is Futile
"Very funny Scotty. Now, beam down my clothes."
The only constant in life is change...
Sorry, i forgot to mention that there is no AD infrastructure, all the
clients log on to NDS for file and print. So far I have been able to
make IP Setting all set to DHCP by issuing the NETSH command via
PSEXEC. This is a success, I just need to enter the Name of "DNS
suffix for this connection:"
using a script / command and also enable the checkbox for "Register
this
connection's addresses in DNS" and "Use this connection's DNS suffix
in DNS registration"