So are you looking for a way to add the machine to the domain or a way to set the domain suffix search order?
"Andrew Staley" wrote:
[Quoted Text] > Currently I am working on a script to setup new PC's for our network. So > far I have a working script that sets up the network addresses, what I need > though is a way to set the Domain Name. > > I have looked around on the net and cant find an answer to what I'm looking > for, so hopefully someone here can help. > > So far my script is fairly basic, essentially just running a bat file (not > being a script writer and only just starting out in IT I've had to work this > out from scratch and make things as simple as possible). > > ---------------------------------------------------------------------------------------- > > [ at ]echo off > netsh interface ip set address local static 192.168.1.87 255.255.255.0 > 192.168.1.240 1 > netsh interface ip set dns "Local Area Connection" static 192.168.1.100 > primary > netsh interface ip add dns name="Local Area Connection" addr=192.168.1.200 > index=2 > exit > > ---------------------------------------------------------------------------------------- > > This will get the PC on the network simply enough, and all I need to do is > change the IP address as needed. What I need though is a way to set the > domain name to "DOMAIN_SERVER" and allow it to connect, any help is greatly > appreciated. > > Andrew. > > >
|