V
V
Vetal_12016-01-15 15:11:40
Domain Name System
Vetal_1, 2016-01-15 15:11:40

How to replace receiving DNS statically with DHCP through AD?

There are about 40 computers, you need to replace getting DNS by statics with getting it by DHCP, somehow I'm not eager to do it with my hands. All computers in the domain.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Galaktionov, 2016-01-15
@Vetal_1

1. Enable Remote Management via GPO
2. Write a script using winrs and netsh
3. PROFIT!

P
partial, 2016-01-15
@partial

Use vbs.
Listing 37

C
Cool Admin, 2016-01-15
@ifaustrue

The script is simple, you just need to know the name of the interface (I think it's easy to get it with the same command and pass it on), running it through the GPO will not be difficult.

netsh interface ip set address "Local Area Connection" dhcp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question