Windows Static IP Command Generator
Set a static IP, gateway and DNS on Windows 10/11 or Windows Server – as netsh or PowerShell commands, plus the commands to switch back to DHCP.
Set a static IP, gateway and DNS servers from the command line – faster than clicking through adapter settings, and perfect for Server Core, scripts and remote sessions. You get both the PowerShell and the classic netsh version, plus the commands to switch back to DHCP.
Find the adapter name
Run Get-NetAdapter in PowerShell (or netsh interface show interface) and use the exact name in the first column, such as Ethernet or Ethernet 2.
Frequently asked questions
Do I need an administrator prompt?
Yes. Right-click Windows Terminal or PowerShell and choose “Run as administrator”, otherwise the commands fail with “access denied”.
More tools
All tools →Robocopy Command Builder
Build a safe Robocopy command for migrations, mirrors and backups – multithreaded, with retries, logging and an optional dry run.
Open tool WindowsWindows Repair Command Generator
Pick the problem – corrupt system files, update failures, network trouble, disk errors – and get the right SFC, DISM, chkdsk or netsh sequence in the right order.
Open tool NetworkMAC Address Converter
Reformat a MAC address for Windows, Linux or Cisco, check its unicast/multicast and local/global bits, and derive the EUI-64 IPv6 link-local address.
Open tool