All pastes #440887 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-15 11:10 UTC
rendered paste body
PS L:\PowerShell> Get-WmiObject Win32_NetworkAdapter | Format-Table name, macaddress
                                                                                    
name                                                        macaddress              
----                                                        ----------              
WAN Miniport (L2TP)                                                                 
WAN Miniport (PPTP)                                         50:50:54:50:30:30       
WAN Miniport (PPPOE)                                        33:50:6F:45:30:30       
WAN Miniport (IPv6)                                                                 
Realtek RTL8139/810x Family Fast Ethernet NIC               00:C0:26:AA:45:9A       
isatap.{5C12CC7B-1044-40E6-9BFA-21BCA9DDCF9B}                                       
WAN Miniport (IP)                                                                   
Microsoft Windows Mobile Remote Adapter                                             
Virtual Machine Network Services Driver                     00:14:85:1D:11:63       
RAS Async Adapter                                           20:41:53:59:4E:FF       
Broadcom NetLink (TM) Gigabit Ethernet                      00:14:85:1D:11:63       
isatap.{B5D85335-082A-454A-A13C-0B8E2128EEED}                                       
Teredo Tunneling Pseudo-Interface                           02:00:54:55:4E:01       
Virtual Machine Network Services Driver                     00:C0:26:AA:45:9A       
Microsoft Windows Mobile Remote Adapter                                             


PS L:\PowerShell> $a= Get-WmiObject Win32_NetworkAdapter |?{$_.name -eq "Broadcom NetLink (TM) Gigabit Ethernet"}
PS L:\PowerShell> $a.MACAddress                                                                                  
00:14:85:1D:11:63                                                                                                
PS L:\PowerShell> $a.MACAddress = "00:14:85:1D:11:65"                                                            
PS L:\PowerShell> $a.Put()                                                                                       
                                                                                                                 
                                                                                                                 
Path          : \\localhost\root\cimv2:Win32_NetworkAdapter.DeviceID="10"                                        
RelativePath  : Win32_NetworkAdapter.DeviceID="10"                                                               
Server        : localhost                                                                                        
NamespacePath : root\cimv2                                                                                       
ClassName     : Win32_NetworkAdapter                                                                             
IsClass       : False                                                                                            
IsInstance    : True                                                                                             
IsSingleton   : False                                                                                            
                                                                                                                 
                                                                                                                 
                                                                                                                 
PS L:\PowerShell> Get-WmiObject Win32_NetworkAdapter |?{$_.name -eq "Broadcom NetLink (TM) Gigabit Ethernet"}
                                                                                                             
                                                                                                             
ServiceName      : b57nd60x                                                                                  
MACAddress       : 00:14:85:1D:11:63                                                                         
AdapterType      : Ethernet 802.3                                                                            
DeviceID         : 10                                                                                        
Name             : Broadcom NetLink (TM) Gigabit Ethernet                                                    
NetworkAddresses :                                                                                           
Speed            : 100000000