2

This is for learning purposes:

I'm running a Server r2 machine and I'm trying to remove feature WINS. I run uninstall-windowsfeature WINS -restart -remove, I then restart, and then run get-windowsfeature | where installstate -eq removed and I see that the WINS binaries are removed from the role store.

I then run install-windowsfeature WINS locally and the role is then installed.. So why did this happen? I thought the binaries were removed--apparantly not. Any ideas on why this is? Thank you.

user1330287
  • 187
  • 1
  • 2
  • 7

1 Answers1

3

Because Install-WindowsFeature will download data from Windows Update if the required data is not available locally. For more detail, type Get-Help Install-WindowsFeature -Full and then read up on the -Source parameter.

Ryan Ries
  • 55,011
  • 9
  • 138
  • 197
  • Is there a way to disallow the cmdlet from downloading from windows update if no files exist locally and on remote share? – user1330287 Apr 15 '16 at 18:17
  • @user1330287 Yes, by not using that cmdlet, or by disconnecting the computer from the internet. Or by using a hosts file to redirect Windows Update to 127.0.0.1. ;) – Ryan Ries Apr 15 '16 at 18:31