< Back

Connect-d00mVm

Mon Jan 13, 2020 8:30 am

NAME Connect-d00mVm



SYNOPSIS

Connect to a VM





SYNTAX

Connect-d00mVm [[-ServerName] <String>] [-VmName] <String> [<CommonParameters>]





DESCRIPTION

Connect to a VM on a remote/local Hyper-V host using default credentials



THE SERVER MUST BE RUNNING SERVER 2016+





PARAMETERS

-ServerName <String>



Required? false

Position? 1

Default value $env:COMPUTERNAME

Accept pipeline input? false

Accept wildcard characters? false



-VmName <String>



Required? true

Position? 2

Default value

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



OUTPUTS



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



PS C:\\>Connect-d00mVm -VmName vm1



This example will connect to the local Hyper-V host to a virtual machine

named vm1 using the default credentials









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



PS C:\\>Connect-d00mVm -ServerName server1 -VmName vm1



This example will connect to the remote Hyper-V host named server1 to a

virtual machine named vm1 using the default credentials











RELATED LINKS