PowerShell Question Get-NetAdapeterAdvancedProperties
I am trying to use Get-NetAdapeterAdvancedProperties to query remote devices to check the settings. Right now I am just trying to get a single line command to work on a remote device but have had no luck. The command I use on the localhost is

Get-NetAdapterAdvancedProperty-NameEth*|Format-TableDisplayName,DisplayValue This displays what I want so I just need help getting it to query a remote device. Thanks.

August 3rd, 2015 11:15am

try this :

Invoke-Command -ComputerName YourComputer -ScriptBlock {Get-netAdapterAdvancedProperty -Name Eth* | F
ormat-Table DisplayName,DisplayValue}

Free Windows Admin Tool Kit Click here and download it now
August 3rd, 2015 11:30am

Well I'm glad to see I was doing it right. When I run that I get an error stating that Get-NetAdapterAdvancedProperty is not recognized as the name of a cmdlet. The PCs that will be queried are Windows 7 machines. So I guess I either need to run it in a way that it is processed on my machine or so the module is loaded onto that machine first from my PC or one of the 2012 servers?
August 3rd, 2015 12:05pm

you are correct this command is not avaliable in windows 7

Will this help ?

Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-List *

Free Windows Admin Tool Kit Click here and download it now
August 3rd, 2015 12:41pm

I think it might, that was the next route I was going to try. I will let you know how it turns out. Thanks for the help.
August 3rd, 2015 12:45pm

Unfortunately that doesn't seem to give me what I am after. My goal is to be able to check the speed and duplex setting of a computer and change it if need be. Our network admin is rather set in his ways and had us locking the PCs at 100/full which was fine for the most part while we were on XP but since we deployed Windows 7 auto negotiation works a lot better. From what we have found it has been blamed on the firmware of gigabyte switches and NICs not playing nice. I'm sure this can still be done through WMI or CIM, just got to figure out how.
Free Windows Admin Tool Kit Click here and download it now
August 3rd, 2015 1:29pm

Hi DagoRed7

Its supposed to be related to the NIC manufactured driver level, because certain devices will not have a speed/duplex

this thread will have better explanation

https://social.technet.microsoft.com/Forums/scriptcenter/en-US/9446bf15-bdbd-470c-a04c-11f2f4e1d9f3/using-powershell-to-get-nic-settings?forum=ITCG

Check the reply from Ed Briggs

In Windows 8 and Windows Server 2012,  we've added extensive PowerShell Support that directly addresses this requirment, and makes it easy to get and set all the NIC parameters on single or multiple NICs, located on your local machine, or on one or more remote machines.

For further information, please have a look at the following:

Using PowerShell for NIC Configuration Tasks

http://blogs.technet.com/b/wincat/archive/2012/08/27/using-powershell-for-nic-configuration-tasks.aspx

Network Adapter Cmdlets in Windows PowerShell

http://technet.microsoft.com/en-us/library/jj134956

August 6th, 2015 1:32am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics