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 | 1,992 views | 27/09/2013 10:11

You can get WWN information from servers like this:

1
2
3
4
5
6
7
$Servers = "VMHOST01","VMHOST02","VMHOST03","VMHOST04"
Foreach ($Server in $Servers)
{
	Write-Host $Server
	Invoke-Command -ComputerName $Server -ScriptBlock {&C:\StorageTools\fcinfo\fcinfo}
	Write-Host " "
}

You must deploy fcinfo.exe to hosts before you execute this script. You may also use WMI to get WWNs.