search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Getting QLogic Driver Versions of HP Servers via PowerShell
Posted in Windows Powershell, Windows Server | No Comment | 1,259 views | 14/02/2014 17:39

You can get QLogic Driver Versions of HP Servers with following script:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$Clusters = Get-Content C:\Clusters.txt
 
foreach ($Cluster in $Clusters)
{
	$Servers = (Get-Cluster $Cluster | Get-ClusterNode).Name
	foreach ($Server in $Servers)
	{
		try
		{
			$ProductVersion = $Null;
			$ProductVersion = (Get-Item \\$Server\C$\Windows\System32\Drivers\ql2300.sys).VersionInfo.ProductVersion
		}
		catch
		{
		}
 
		$Value = $Server + ";" + $ProductVersion
		Add-Content -Value $Value -Path C:\Results.txt
	}
}

Script will output all results into C:\Results.txt.



Leave a Reply