Advertisement
guyrleech

Copy Advanced NIC properties between machines

May 14th, 2021
1,459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## On source machine
  2. Get-NetAdapterAdvancedProperty|Select *|Export-Clixml -Path \\nas\Transfer\NetAdapterAdvancedProperty.$env:COMPUTERNAME.xml
  3.  
  4. ## On destination machine (backup settings to a separate xml first as per the above)
  5. Import-Clixml -Path \\nas\Transfer\NetAdapterAdvancedProperty.grl-FLXX01.xml|? {$null -ne $_.RegistryValue }|%{ $_.RegistryKeyword ; Set-NetAdapterAdvancedProperty -Name Ethernet0 -RegistryKeyword $_.RegistryKeyword -RegistryValue $_.RegistryValue -NoRestart }
  6.  
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement