I'm trying to update my systems to allow copy and paste and a few other things. The settings get changed but don't seem to apply until I open the configuration in the web browser and close it. I figure the browser thing is 'saving' the settings. How can I go about getting my settings to save in my powershell script?
PowerShell Code |
---|
$folder = Get-Folder "LAB" | where {$_.Parent.Name -eq "DEVELOPMENT"} $vms = $folder | Get-VM ForEach ($vm in $vms){ if ($advancedsettings.Name -notcontains "suspend.disabled"){ if ($advancedsettings.Name -notcontains "isolation.tools.copy.disable"){ if ($advancedsettings.Name -notcontains "isolation.tools.paste.disable"){ } |
Try with the Reload method.
$vm.ExtensionData.Reload()
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try with the Reload method.
$vm.ExtensionData.Reload()
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I tried applying it to a system I haven't 'touched' with the web interface. That didn't seem to do anything.
What exactly do you mean by "Open the configuration"?
Because the Web Client nor the HTML5 client allows you to edit the advanced settings when the VM is powered on.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That was it. I had to have the system shutdown while running the command. Thank you.