Re: Set Domain Name.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.





.



Relevant Pages

  • Re: create database fatal error
    ... error message. ... In that your script would try to overwrite system01.dbf with a file of ... Thats because I cant read your mind, so I dont know what you need to ... Jorge Corvazar'. ...
    (comp.databases.oracle.server)
  • Re: Internally generated spam - but from where?
    ... I have found the script that is responsible for this *, ... data posted to it so i cant see how they are actually breaking it but I ... How can i track down what is causing ... this single process to use up so much CPU? ...
    (comp.mail.sendmail)
  • .CopyFile to User TEMP - Permission Denied??
    ... I cant copy a file to a users %TEMP% variable using vbscript? ... I am running and testing this script from my local desktop and a full ...
    (microsoft.public.scripting.vbscript)
  • portal rows - row selection quirk
    ... Just came across a weird "quirk" in a db of mine.. ... where I want to select a row and then run a script based on a field in ... try to select row 10 then I cant select it. ... any clarification would be great! ...
    (comp.databases.filemaker)
  • Re: Enable DHCP using GP...?
    ... You can assign a startup script via GPO to the computer objects that will ... netsh interface ip set WINS "Local Area Connection" dhcp ...
    (microsoft.public.win2000.group_policy)