-
Quickly find WWN of a HBA on Server 2012
While doing work on Fiber Channel fabric I ran into the need to find the wwn of an HBA installed in my server. Here is the quickest way to find that info: Run this PowerShell cmdlet: Get-InitiatorPort Oh, remember to run PS as administrator, otherwise you will get PermissionDenied!
-
Find location of your VMs
Ok so now you have many, many VMs running on your Hyper-V hosts. You wanna know where are they actually running from… I mean on which SAN, which LUN or which local disk array are they running. There is no easy way to find out that information from the VMM Manager console. You can open up the properties of each and every VM and look at the config but it is not practical. PowerShell to the rescue! Here is a small PS code snippet which will show you the information quickly. Get-VM –ComputerName HOSTNAME1, HOSTNAME2 | Get-VMHardDiskDrive | Select-Object -Property VMName, ComputerName, ControllerType, Path | Sort-Object -Property VMName | Out-GridView…
-
Device management using PowerShell
There are some cmdlets available for device management. They are useful on a server core type installation like Hyper-V 2012 First you need to download and import the cmdlet modules from here Then you can run commands like get-device. However a more useful command is: Get-Device | Sort-Object -Property Name | ft Name, DriverVersion, DriverProvider, IsPresent, HasProblem –AutoSize More command examples are here
-
Managing storage or disks using PowerShell
You can manage disks using powershell. Here is more info on the cmdlets available to you.
-
No access to device manager remotely in Hyper-V 2012
If you are using server core or Hyper-V 2012 (the one without the GUI installed) there is no graphical interface to device manager. You have to use PowerShell for that. Here are the details