Community discussions

MikroTik App
 
User avatar
cfikes
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Mon Dec 08, 2014 9:14 pm
Location: Texas
Contact:

DHCP Windows to Mikrotik Migration Script

Fri Jan 20, 2023 11:24 pm

Figured someone may find this useful. Created a PowerShell script that will take all DHCP scopes on a Windows Server and create an RSC script to move the service to RouterOS. Moves all the reservations, keeps the lease times, creates an Options List from the Windows Server Options, and uses the scope options to fill in the DHCP Network. Tear it apart and let me know where I can improve.

Run it as such.
./DHCP-Win2Mikrotik.ps1 -ComputerName SRV-DHCP -OutFile "C:\Users\Bob\Desktop\script.rsc"

Script is on GitHub
https://raw.githubusercontent.com/cfike ... krotik.ps1
 
K0NCTANT1N
newbie
Posts: 48
Joined: Thu Jun 08, 2023 9:35 pm

Re: DHCP Windows to Mikrotik Migration Script

Tue Aug 01, 2023 1:38 pm

Where was he before?! Thank you. I put it in my piggy bank.

Who is online

Users browsing this forum: No registered users and 20 guests