< Back

Get-MrVmHost

Sat Jan 18, 2020 4:36 pm

NAME Get-MrVmHost



SYNOPSIS

Determines the HyperV host virtualization server for the specified virtual machines.





SYNTAX

Get-MrVmHost [-ComputerName] <String[]> [[-Credential] <Object>] [<CommonParameters>]





DESCRIPTION

Get-MrVmHost is an advanced function for determining the HyperV host virtualiztion server for one

or more VMs (virtual machines).





PARAMETERS

-ComputerName <String[]>

The name of the VM (virtual machine) to determine the HyperV host for.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <Object>

Specifies a user account that has permission to perform this action. The default is the current user.



Type a user name, such as User01 or Domain01\\User01. Or, enter a PSCredential object, such as one generated by

the

Get-Credential cmdlet. If you type a user name, this cmdlet prompts you for a password.



Required? false

Position? 2

Default value [System.Management.Automation.PSCredential]::Empty

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None





OUTPUTS

PSCustomObject





NOTES





Author: Mike F Robbins

Website: http://mikefrobbins.com

Twitter: @mikefrobbins



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-MrVmHost -ComputerName Server01, Server02, Server03













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-MrVmHost -ComputerName Server01, Server02, Server03 -Credential (Get-Credential)















RELATED LINKS