Zum Inhalt springen
Windows

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.

Find it with: Get-NetAdapter
Läuft in Ihrem Browser – nichts wird gesendet oder gespeichert.

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.

Häufige Fragen

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”.