Last active
March 28, 2018 18:57
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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