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

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Windows Powershell, Windows Server | No Comment | 5,872 views | 09/07/2013 09:45

If you have “HP ProLiant Smart Array SAS/SATA Controller Driver for Windows Server 2012 x64 Edition (HPCISSS2.SYS) Version 62.26.0.64”, then you need to downgrade it to version 62.24.2.64. Otherwise you will see some problems and unexpected shutdowns on your Windows Servers and Hyper-V hosts.

But if you have many servers, it will not be easy to see which servers has latest version. So you use this script to get driver versions:

1
2
3
4
5
6
7
8
$Servers = Get-Content C:\Servers.txt
foreach ($Server in $Servers)
{
	Write-Host $Server
	$ProductVersion = (Get-Item \\$Server\C$\Windows\System32\Drivers\HPCISSs2.sys).VersionInfo.ProductVersion
	$Value = $Server + "," + $ProductVersion
	Add-Content -Value $Value -Path C:\driverversions.txt
}

You need to add your all servers into Servers.txt file.