Hi Experts,
I have below PowerCLI comment to set "isolation.tools.autoInstall.disable" to false. But I don't know how to set for multiple VMs.
Get-AdvancedSetting -Name isolation.tools.autoInstall.disable |
Set-AdvancedSetting -Value false
I have multiple VM's in my vCenter; I just need PowerCLI script to check whether the "isolation.tools.autoInstall.disable" setting is set to "false" incase this setting is "true", As part of script, it have to be set as "false"
Kindly help me to fix this
I am looking forward to hearing from you
Thanks in advance
Your question is a bit dubious I'm afraid.
Does it now have to be set to False or True?
In any case, if it needs to be set to True, use the following.
Get-VM | Get-AdvancedSetting -Name 'isolation.tools.autoInstall.disable' |
where{$_.Value -eq 'False'} |
Set-AdvancedSetting -Value 'True' -Confirm:$false
If you want the reverse, just swap the True and False values
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Did you just duplicate this thread?
I see 2 threads from you with the same content.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Your question is a bit dubious I'm afraid.
Does it now have to be set to False or True?
In any case, if it needs to be set to True, use the following.
Get-VM | Get-AdvancedSetting -Name 'isolation.tools.autoInstall.disable' |
where{$_.Value -eq 'False'} |
Set-AdvancedSetting -Value 'True' -Confirm:$false
If you want the reverse, just swap the True and False values
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
@LucD
Hi Lucd,
Means a lot. Thanks a lot for your reply,.
Let me test and confirm you soon
Did you just duplicate this thread?
I see 2 threads from you with the same content.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
@LucD
Hello Expert,
Sorry maybe mistakenly created twice. Apologize for that.
You are so good at PowerCLI. You are fantastic.
Your code is working well. ::)
Thanks very much LucD.
I will mark your answer as "Correct Answer"