Skip to content

Instantly share code, notes, and snippets.

@Dapacruz
Last active March 28, 2018 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dapacruz/d0b7213f9eaf2e027dfb824d3b44b726 to your computer and use it in GitHub Desktop.
Save Dapacruz/d0b7213f9eaf2e027dfb824d3b44b726 to your computer and use it in GitHub Desktop.
Enable Copy/Paste Between the Guest Operating System and VMware Virtual Machine Remote Console
$vm = 'vm1', 'vm2'
Get-VM $vm | New-AdvancedSetting -name "isolation.tools.paste.disable" -Value $false -Confirm:$false -Force
Get-VM $vm | New-AdvancedSetting -name "isolation.tools.copy.disable" -Value $false -Confirm:$false -Force
# Power off the VM and back on
Stop-VMGuest -VM $vm -Confirm:$false | Out-Null
while ((Get-VM -Name $vm).PowerState -ne 'PoweredOff') {Start-Sleep 2}
Start-VM -VM $vm -ErrorAction SilentlyContinue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment