Ying Li at myITforum.com

PowerShell & System Center

Powershell script to get Nic Driver Information

Here is a powershell script to get Nic Driver Information for a list of machines:

Foreach ($strComputer in get-content C:\MachineList.Txt)
{
$PnP = Get-WMIObject Win32_PnPSignedDriver -computer $strcomputer |where {$_.Devicename -like "HP NC*"}
$strComputer
foreach ($Nic in $PnP)
{
"NetWork Adapter Name: $($Nic.Devicename)"
"Network Adapter Driver Version: $($Nic.DriverVersion)"
}
}

 

Posted: Apr 27 2007, 08:25 PM by yli628 | with no comments
Filed under:

Comments

No Comments