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

Listing the drive letters, size and free space usi... Using PowerShell, the administrator is able to retrieve a lot of information from the operating system. In Today’s Tutorial, we are going the process ...
Managing Hyper-V Server remotely through PowerShel... Working with PowerShell can be very common for daily tasks and Hyper-V Server management. However, as there is more than one server to be managed, som...
Removing Azure Active Directory users using Azure ... Cloud Shell is one of the new features in Azure Portal, and it is accessible from virtually any browser and even from Azure App. In this Tutorial, we ...
Using PowerShell as default option in Windows 10 m... By default in Windows 10 (well, on previous versions as well) when we either use right-click on the lower-left corner or Windows + X , we will have a ...