title: How do I completely wipe out NIC settings with Powershell?
body: <p>Have a smidge of a problem. I am trying to completely blank out the IP address, subnet mask, and default gateway of a single NIC on one of my VMs. </p>
  
  <p>I open up IPv4 Properties on that NIC and set it to DHCP (there is no DHCP server available to it and it isn't getting a Windows APIPA address) and then I look in Advanced and make sure there aren't alternate addresses assigned. I close out all of the windows. Then, I open up CMD and type <code>ipconfig</code> and it shows that it has an IP address, subnet mask, and a default gateway. I even tried Disabling and Enabling the NIC and typing <code>Restart-NetAdapter -Name "Ethernet"</code> and there are no changes.</p>
  
  <p>In PS, I type <code>Get-NetAdapterAdvancedProperty -DisplayName "Network Address"</code> and it shows <code>--</code> under the DisplayValue.</p>
  
  <p>For some reason, and I'm not sure why (I didn't give it the ol' College Try), but when I type <code>Set-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "0.0.0.0"</code> it shows red. I try putting in a valid address to see if maybe the cmdlet won't take all zeros and it does the same thing. I checked the <code>man</code> page and I'm fairly sure that the format is correct (I tried <code>$ip = @("0.0.0.0")</code> and gave it $ip and $ip[0] but it still, no joy).</p>
  
  <p>I just want all of the NIC settings wiped and it seems like it is but <code>ipconfig</code> and <code>Get-NetIPAddress</code>, and <code>Get-NetIPConfiguration</code> keep showing addresses whereas <code>Get-NetAdapterAdvancedProperty -DisplayName "Network Address"</code> show that it's blank.</p>
  
  <p>Why won't it let me wipe the configs (without doing an OOBE SysPrep)? I feel like the answer is probably something simple that I'm just overlooking but I haven't really found anything online--it's mostly just ways to work with your NIC configurations within Powershell.</p>
  
  <p>Could anyone help shine some light on what is actually going on?</p>
  
  <p>Thanks.</p>