Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $hostname = "localhost:8333"
- $vms = "VmName"
- $vm = get-vm $vms
- $vmid = $vm.id
- $gvm = Get-View $vmid
- $vmrc = "C:Program Files (x86)Common FilesVMwareVMware Remote Console Plug-invmware-vmrc.exe"
- $vmrcargs = '-h ' + $hostname + ' -m "' + $gvm.Config.Files.VmPathName + '"'
- [Diagnostics.Process]::Start($vmrc, $vmrcargs)
- $name = $env:COMPUTERNAME
- $ports = ":8333"
- $hostname = $name + $ports
Add Comment
Please, Sign In to add comment