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).
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
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
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.
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