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

Creating a PowerShell Function to display error me... When writing your code using PowerShell, and based on the complexity of the script we need to create output to troubleshoot/debug the code.We can alwa...
How to activate synchronization in Office365 We are going over the process to enable synchronization in the new Office 365 Administration Center and also using PowerShell.  Solution In s...
How to rename an AWS EC2 instance during provision... In the Cloud era the VM/instance name is not that important, especially when we have a fleet of servers doing the same work, and that is key for scena...
Performing Backup on your DHCP Server In this Tutorial we will be checking the process to protect the DHCP Server database using the automatic configuration, Graphical User Interface and P...