Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 246952

Re: Who Built the vm

$
0
0

Hey LucD,

 

thanks for the input. Can you suggest me how to create a custom attribute. Also the from the below code i am able to retrive the notes of the VM.

 

 

Get-View -ViewType VirtualMachine -Property Name,
        Runtime.Host,
        Guest.GuestFullName,
        Config.Annotation |
      Select @{N="VM";E={$_.Name}},
        @{N="VMHost";E={(Get-View -Id $_.Runtime.Host -Property Name).Name}},
        @{N="Guest OS";E={$_.Guest.GuestFullName}},
        @{N="Notes";E={$_.Config.Annotation}}   |
Export-Csv "C:\VMscreated.csv" -NoTypeInformation -UseCulture
can we do automation for the new virtual machines that are deployed by automation are users?
say i want to add username(whoever spins), time ,date when anybody(User) tries to spin a new virtual machine in the environment.
Thanks
VK

Viewing all articles
Browse latest Browse all 246952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>