Showing posts with label Windows 2008 r2. Show all posts
Showing posts with label Windows 2008 r2. Show all posts

Thursday, 15 September 2016

PowerShell Commmand to Disable DHCP on the Network Interface

PowerShell Commmand to Disable DHCP on the Network Interface

  • In Server we generally dont use DHCP to assign IP address.
  • We usuall set Static IP Address to Server.
  • So we need to disable the DHCP.
  • To disable DHCP from Powershell use the Command "Set-NetIPInterface" with option -DHCP Disabled

Set-NetIPInterface -InterfaceAlias "Admin" -DHCP Disabled -PassThru

  • You should specifyf or which interface you want to disable the DHCP, So you have to give the InterfaceAlias as well.

Thursday, 14 July 2016

How to find which servers are allowed to do DNS Scavenging

How to find which servers are allowed to do DNS Scavenging


To see which servers are currently allowed to scavenge, run the command 

DNSCmd /ZoneInfo

  • If there is a section “Scavenge Servers” at the bottom of the output, then those DNS servers whose IP addresses are listed are the only ones that can perform scavenging on the specified zone. 

  • If there is no “Scavenge Servers” section present, then any DNS server otherwise permitted can perform scavenging on the zone.