Quantcast
Channel: System Center – ITPROCentral.com
Viewing all articles
Browse latest Browse all 40

Managing features at Network Adapter level using PowerShell

$
0
0

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.

Please join our ITPROCentral.com community at http://ITPROCentral.com/Community


Viewing all articles
Browse latest Browse all 40

Trending Articles