En cours

Change fixed IP to multiple devices

I know how to change IP information with a command:

netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAY

netsh interface ipv4 set dns name="YOUR INTERFACE NAME" static DNS_SERVER

But I must change IP information from multiple devices, and I would like to automatise this process with a script.


1. Manage this problem with a DHCP server is not an option.

2. All this information is currently fixed in each computer: IP address, subnet mask, gateway, primary dns and secondary dns.

3. Windows (7 and 10) with active directory environment. I have domain admin rights and remote connection to all my computers. All computers are under the same domain.

4. I should be able to launch remotely the script to all computers in the same location from a central server locate in that same location.

5. The script should change information from devices from IP .1 to .254

6. The network interface name is not the same in all the cases.

7. Some devices have multiples active network interfaces, but only network interface with fixed IP should be changed.

8. The fixed IP address should remain the same.

9. It only changes the last octet of:

9.1. Subnet Mask:

9.1.1. Example: [login to view URL] to [login to view URL]

9.2. Gateway:

9.2.1. Example: [login to view URL] to [login to view URL]

9.3. But it changes (subnet mask and gateway) according to their range:

9.3.1. Example: computers from .201 to .217: Mask: [login to view URL] Gateway: [login to view URL]

9.3.2. Example: computers from .81 to .95 and .106 to .123: Mask: [login to view URL] Gateway: [login to view URL]

10. The DNS (primary and secondary) should change for a new one in all the computers:

10.1. Example DNS1: to [login to view URL]

10.2. Example DNS2: to [login to view URL]

11. I should be able to use this script in a few more locations, those location have the same configuration, that’s why only the last octet of Subnet mask and Gateway should be changed.

Best regards,

Compétences : Powershell, Microsoft, Administration de réseaux, Administration Système, Serveur Windows

Concernant l'employeur :
( 0 commentaires ) Madrid, Spain

Nº du projet : #32762095

Décerné à:


Hello , So fine ? My Name is Pedro , i Work for I.T. it's a 2 Years , and become a Love computer it's a 18 Years OLD. I love a taked the project , no hard but need a time , please call-me in messsages for discuss

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% EUR en 1 jour
(0 Commentaires)

6 freelances font une offre moyenne de 119 € pour ce travail


Hello Dear, I am an Expert Network Engineer and I am working as Professor and Expert Network Engineer at a Multinational ISP. I have great hands-on experience for more than 15 years in various network technologies. Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% EUR en 1 jour
(123 Commentaires)
(17 Commentaires)

Hello, I am senior network engineer with 14 years powershell experience on active directory directory services, exchange server, windows clients, I made countless automation and system administration scripts for huge Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% EUR en 1 jour
(4 Commentaires)
(1 Évaluation)

I can Handle it.. get in touch with me.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 7 jours
(0 Commentaires)