Search The Web

Sunday, February 17, 2013

Windows 2008 Sever Core / Dos Networking Netsh Commands

Windows 2008 Sever Core / Dos Networking Netsh Commands

Some Common command line tools for Networking in Server 2008 and Dos:
  • to set IP in Dos / 2008 server core: netsh interface ipv4 set address name=2 source=static address= mask= gateway=
  • use netshell to verify the "name" of the interface: netsh interface ipv4 show interfaces
  • to set DNS server IP in server core: netsh interface ipv4 add dnsserver name=2 address= index=1
  • to name a server in server core: netsh renamecomputer %computername% /newname: /userd: /passwordd: /reboot:0  .  Note: the dd in passwordd is not a mistype, its the spelling that is used the reboot:0 will force the machine to reboot
  • to join a domain:
    netdom join %computername% /domain: /username: /passwordd /reboot:0

  • to disable firewall: netsh advfirewall set allprofiles state off

  • use ocsetup command to add / remove roles
  • to uninstall DNS: ocsetup DNS-Server-Core-Role /uninstall
  • to uninstall DHCP: ocsetup DHCPServercore /uninstall
  • to enable remote management so it can be be administered from remote computer:  
    1. WinRM quickconfig (on the remote comp)

No comments:

Post a Comment