I know this is probably simple fix but I am coming to a blank.
What I need to do is check the ESXi version to make sure it is above 6.x before running code and running different code on 5.x hosts. My pseudo code is below.
If (host level = version 6.x)
{
run code set 1
}
else
{
run code set 2
}
Thanks in advance.
You have to use the -eq operator, like this
If ($esx.Version -eq '6.0.0')
{
# run code set 1
}
else
{
# run code set 2
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You have to use the -eq operator, like this
If ($esx.Version -eq '6.0.0')
{
# run code set 1
}
else
{
# run code set 2
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference