Re: Set Domain Name.
- From: "Andrew Staley" <andrew@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Jun 2007 12:18:06 +0100
I'm looking for a way to add the machine to the domain. I've tried the
script on the MS site and cant seem to get it to work.
Andrew.
"Dan" <Dan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:54B30EE5-0D45-438C-843F-4F1D52A69855@xxxxxxxxxxxxxxxx
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:
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).
----------------------------------------------------------------------------------------
@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.
.
- Follow-Ups:
- Re: Set Domain Name.
- From: Dan
- Re: Set Domain Name.
- Prev by Date: Re: Need to check for running services
- Next by Date: Re: Set Domain Name.
- Previous by thread: Re: Logon Hours
- Next by thread: Re: Set Domain Name.
- Index(es):
Relevant Pages
|