Google Answers Logo
View Question
 
Q: Windows Script Needed ( No Answer,   4 Comments )
Question  
Subject: Windows Script Needed
Category: Computers
Asked by: grahamz-ga
List Price: $25.00
Posted: 15 Dec 2004 12:28 PST
Expires: 14 Jan 2005 12:28 PST
Question ID: 443092
I need a script that converts the information provided (given) to a
host via a DHCP server, into "static".

I need to have all the options passed from the DHCP server (IP
address, subnet mask, default gateway, WINS servers, etc.) to be set
statically on the host.

When I initially build a new Windows host it receives all the DHCP
info. One of the build steps stipulates taking the IP address and
other DHCP options and making them static via the TCP/IP Properties
page.

I would like the script to preferrably work on Windows 2000 & 2003,
but would settle for 2003 only.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Windows Script Needed
From: crythias-ga on 16 Dec 2004 08:45 PST
 
I think the better answer would be to tell your DHCP server to treat
the MAC address of the PC's NIC as static rather than telling the PC
to hold the information. Of course, that generally means that you
can't do *that* automatically, either, but at least it's a one-to-one
thing in one interface on the DHCP server rather than on a per machine
basis.

However, in most circumstances, DHCP is generally faithful to assign
the same address to the same MAC over and over (the client generally
requests the same address), unless the conditions of DHCP make the
scope near to the quantity of used IP addresses (overlap).

The other issue that needs to be addressed with your request is that
you still need to remove that IP address from being available in your
DHCP scope. This means you still have to make changes on your DHCP
server for every IP address manually assigned. In short, what is the
point of having a DHCP server if you are doing what you are doing?

This is a free comment.
Subject: Re: Windows Script Needed
From: grahamz-ga on 16 Dec 2004 08:54 PST
 
Thank you for the feedback.

After the IP information is statically entered on the host, we
instruct the DHCP server to convert the lease to a reservation. This
does two things: 1) it allows the client to receive the same address
if someone were to accidentally switch the client from static to DHCP.
2) it makes the DNS entry associated with the lease/reservation
static.

Thanks again for your response.
Subject: Re: Windows Script Needed
From: crythias-ga on 16 Dec 2004 10:03 PST
 
OK, but why bother with the workstation at all? If you're going to
convert the DHCP lease to reservation, then you're done, unless
someone changes the workstation's IP manually to, say, your server's
IP address. Besides which, it'll be a lot easier on you if you happen
to have to change your Gateway Address or DNS servers for whatever
reason.

I realize that you have your reasons and specifications for doing
this, and as such I am not attempting to undermine your process. I'd
actually like to know for my own information as a system administrator
what the security or other benefits are for the changes you are
making.
Subject: Re: Windows Script Needed
From: grahamz-ga on 16 Dec 2004 10:51 PST
 
The process is only applied to servers. The workstations and laptops are all DHCP.

We manage in excess of 2000 servers. Most of the applications depend
on static IP addressing and will balk at a DHCP setting. Security also
dictates that we have static entries on all servers. We don't want
other users changing the address of their workstations or personal
servers to an already reserved address.

Thanks for the feedback!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy