bowulf
Enthusiast
Enthusiast

Determine Disk.UuidEnabled status?

I am trying to write a script to determine disk.uuidenable current status?  I am apparently missing a piece of knowledge on how to gather the config information using the get-view command on these configuration.  Thanks!

0 Kudos
1 Reply
LucD
Leadership
Leadership

Did you already check out this thread Update disk.EnableUUID, script not working ?

It shows which Key to use.

To list the current settings you can do

Get-VM | Select Name,@{N="EnableUUID";E={($_.Extensiondata.Config.ExtraConfig | where {$_.Key -eq "disk.EnableUUID"}).Value}}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos