VMware Cloud Community
Leo0601
Enthusiast
Enthusiast
Jump to solution

Need PowerCLI script to set "isolation.tools.autoInstall.disable" false

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

VMware_Config.JPG

0 Kudos
2 Solutions

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

4 Replies
LucD
Leadership
Leadership
Jump to solution

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

Leo0601
Enthusiast
Enthusiast
Jump to solution

@LucD 

Hi Lucd,

Means a lot. Thanks a lot for your reply,. 

Let me test and confirm you soon

0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

Leo0601
Enthusiast
Enthusiast
Jump to solution

@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"


0 Kudos