Managing features at Network Adapter level using PowerShell

Share this:

Using PowerShell to manage features at network adapter level, the tasks that we are going over on this Tutorial may be required when managing a larger number of servers, using additional scripts to configure your Virtual Network created by VMM, or just want to keep the consistency on your environment.

Solution

 


The traditional way to configure features at network adapter level, is getting its properties and unchecking the items (which could be a Client, Service or Protocol).

image

Using PowerShell is much simpler, and we can get a list of the network adapter or list a specific one using just the name of the adapter. In the first example below all adapters will be listed, and on the second just the adapter with MGMT name.

Get-NetAdapter

Get-NetAdapter MGMT

In order to disable the File and Printer Sharing for Microsoft Networks the following cmdlet can be used.

Get-NetAdapter MGMT | Set-NetAdapterBinding –ComponentID ms_server –Enabled $False

image

You may be wondering, how do I know the componentID of any specific adapter, right? That is easy, just run the following cmdlet and it will list all items and their status

Get-NetAdapter MGMT | Get-NetAdapterBinding

image

The results can be seen on the graphical user interface as well, just looping back make sure that we are all on the same page and changing the same settings.

image

This couple of cmdlets can help administrator to create scripts to automate the process of network configuration. The key here is to keep name consistency on all the servers.

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

Azure Virtual Network Service Azure virtual network is the networking service that lets everyone create and manage virtual private networks in Microsoft Azure and securely link the...
Statistics of a NIC Teaming If the UI window is sufficiently tall a statistics tile appears at the bottom of the Team tile and the Adapters and Interfaces tile. These statistics ...
Network Virtualization and DNS registration using ... Using a simple PowerShell cmdlet to remove the DNS registration on Virtual NIC (vNICs) created by Virtual Machine Manager. Solution This Tutor...
PowerShell and logon Scripts In this Tutorial we are going over the process to create a logon script using PowerShell and that will work for all systems running at least Windows S...