PowerShell Logo Small

Set-NetAdapter



This is the built-in help made by Microsoft for the command 'Set-NetAdapter', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Sets the basic network adapter properties.

SYNTAX


Set-NetAdapter [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-IncludeHidden] [-MacAddress <String>] [-NoRestart] [-PassThru] [-ThrottleLimit <Int32>] [-Vl
anID <UInt16>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-NetAdapter [-AsJob] [-CimSession <CimSession[]>] [-IncludeHidden] [-MacAddress <String>] [-NoRestart] [-PassThru] [-ThrottleLimit <Int32>] [-VlanID <UInt16>] -Int
erfaceDescription <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Set-NetAdapter [-AsJob] [-CimSession <CimSession[]>] [-MacAddress <String>] [-NoRestart] [-PassThru] [-ThrottleLimit <Int32>] [-VlanID <UInt16>] -InputObject <CimInst
ance[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-NetAdapter cmdlet sets the basic properties of a network adapter such as virtual LAN (VLAN) identifier (ID) and MAC address. Note: These changes could disrupt
proper networking functionality. Other network adapter properties may be settable by using a cmdlet such as the Set-NetAdapterRss, Set-NetAdapterLso, or Set-NetAdapt
erAdvancedProperty cmdlets.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287418
Disable-NetAdapter
Enable-NetAdapter
Get-NetAdapter
Rename-NetAdapter
Restart-NetAdapter
Set-NetAdapterAdvancedProperty
Set-NetAdapterLso
Set-NetAdapterRss

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Set-NetAdapter –Name "Ethernet 1" -VlanID 10



This example sets the network adapter named Ethernet 1 to have VLAN ID 10.




EXAMPLE 2

PS C:\>Set-NetAdapter –Name "Ethernet 1" -MacAddress "00-10-18-57-1B-0D"



This example sets the MAC Address of the network adapter named Ethernet 1.




EXAMPLE 3

PS C:\>Set-NetAdapter -InterfaceDescription B*2 -MacAddress "00-10-18-57-1B-0D"



This example sets the MAC address of a network adapter with the interface description matching the pattern B*2.